Skip to content
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

'os' is not defined - windows machine #40

Open
cdhasselerharm opened this issue Mar 11, 2019 · 2 comments
Open

'os' is not defined - windows machine #40

cdhasselerharm opened this issue Mar 11, 2019 · 2 comments

Comments

@cdhasselerharm
Copy link

Anyone had this problem?
import os is at the start of the script so no idea why it's not defined....

python Sentinel_download.py --lat 43.6 --lon 1.44 --downloader aria2 -a apihub.txt -o 51 -s S2

Traceback (most recent call last):
File "Sentinel_download.py", line 178, in
# prepare wget command line to search catalog
NameError: name 'os' is not defined

@olivierhagolle
Copy link
Owner

Sorry Chris,
I am not able to reproduce this error on linux, trying the same command line.
I hope you will manage to find out what is wrong.
Olivier

@syulianto
Copy link

Sorry for being late to reply, but who knows help others.
the same thing happened to me. What I did was move the "import os" instruction right above the "if len (sys.argv) == 1:" instruction and the problem was resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants