Closed gillins closed 8 years ago
Original comment by Sam Gillingham (Bitbucket: gillins, GitHub: gillins).
Sorry for the delay,
Does it work if you just run fmask_usgsLandsatTOA.py from your home directory or any other place that is not within the source tree?
I think Python is getting confused when you run it from within the source tree and looking there, rather than your install (where _fillminima should be compiled and available)
Original report by Anonymous.
Dear all.
I am trying to work with Fmask in a Xubuntu Machine. I already installed Numpy, scipy and RIOS. GDAL was installed before with Miniconda.
Running the script lines from the documentation I got an error in the third one, any help?:
Python-fmask$ ./bin/fmask_usgsLandsatTOA.py -i ref.img -m LE7*_MTL.txt -o toa.img Traceback (most recent call last): File "./bin/fmask_usgsLandsatTOA.py", line 23, in
from fmask import landsatTOA
File "/Python-fmask/fmask/landsatTOA.py", line 27, in
from . import fmask
File "/Python-fmask/fmask/fmask.py", line 62, in
from . import fillminima
File "/Python-fmask/fmask/fillminima.py", line 33, in
from . import _fillminima
ImportError: cannot import name '_fillminima'