-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
beginners_doc - get_rgi.sh fails if libraries are not added to PATH #18
Comments
Thanks for posting your solution to this issue. I am also following the beginner's document and receiving a very similar error when i run
I have added demcoreg, pygeotools and imview to my path, but this doesn't seem to solve the issue. The first three entries in my path (
Here is a screenshot of the full error. Any help would be greatly appreciated! |
It looks like you do not have
If that doesn't work, just google for other ways to install wget (or ways to install brew if it's not installed, and then you can run the command above). |
Nice catch– that fixed it. Thanks for your help! :) |
Thanks for reporting @elischwat. Sorry it's so convoluted and that those steps were not documented. Can you help to clean up that doc, add missing steps/notes, and submit a PR? We should probably make the RGI download optional, and move most of the download steps to a separate wrapper, as mentioned in #17 Much of this stack was developed for specific projects over the years in my own environment, often with the "I just need to get the job done" requirement. So it's good to have fresh perspective from new users, and to be reminded of all of the hurdles to get up and running. As always, I appreciate any help to simplify, fix, and/or better document setup and tools. |
Also, @meghansharp, |
I followed the beginners_doc, but did not add paths to the three libraries (pygeotools, demcoreg, imview) to my PATH env var.
Upon trying to run
dem_align.py
, I was advised to run theget_rgi.sh
script.I ran the script and, after the large download completed, a "command not found" error then an OGR error was thrown.
The script is failing because it calls pygeotools'
ogr_merge.sh
script on line 80. If you have not added pygeotools to PATH, those files are not created, and we also get the red herring OGR errorbecause that file does not exist.
I resolved the issue by adding the paths to the three libraries to my PATH env var. Maybe the beginner docs could be updated to say that adding the libraries to your path is a requirement or perhaps
get_rgi.sh
can be modified as to not require that. No real bug here but I think walking through the beginner docs would be smoother if this was mentioned.The text was updated successfully, but these errors were encountered: