NASA-DEVELOP / dnppy

DEVELOP National Program Python package for use with NASA data and GIS!
https://nasa-develop.github.io/dnppy/
Other
81 stars 40 forks source link

Getting an error message when running toa reflectance corrections #75

Closed bmrober4 closed 8 years ago

bmrober4 commented 8 years ago

We are running the script for toa_reflectance and keep getting an error that it can not find the grab_meta module. I have not changed anything in the script except to add the file path and the band numbers and I am storing it all in the same folder. I have downloaded the dnnpy package and can find the module in the folder but the script cannot seem to find it.

Jwely commented 8 years ago

Thanks for reporting this issue, an attempted fix has been made. Download and install dnppy again. If an error persists, please come back and copy/paste the precise error.

bmrober4 commented 8 years ago

Hi Jeff, thanks for looking at it. I am still getting the same error (with the object names changed): Traceback (most recent call last): File "<pyshell#0>", line 3, in from landsat_metadata import landsat_metadata ImportError: No module named landsat_metadata

We have reviewed the directories and file locations and it seems like it is setup correctly... Not sure what the issue could be.

Syntaf commented 8 years ago

@bmrober4 how are you calling the script? Are you using an IDE or calling it from the command line?

EDIT: You may want to post just your source code related to this problem as well, that way jeff or I could test it ourselves

bmrober4 commented 8 years ago

@Syntaf we have tried running it from the command line, through an IDE (Liclipse) and from a Python Shell. I have not changed any code except to add the metadata file path to the code from the toa_reflectance.py file in the dnnpy download.

stapleCamel commented 8 years ago

Searching on stackoverflow suggests its a problem with the module's init.py. I don't see anything immediately wrong with landsat/init.py, but there may be a hidden Windows character that messing it up.

Syntaf commented 8 years ago

@bmrober4 Has your issue been resolved?

bmrober4 commented 8 years ago

Hi Grant,

The issue was not completely resolved but we ended up moving in a different direction to resolve our issue.

Thanks