ubarsc / python-fmask

A set of command line utilities and Python modules that implement the ‘fmask’ algorithm
https://www.pythonfmask.org
GNU General Public License v3.0
75 stars 21 forks source link

Cannot import name '_fillminima' #1

Closed gillins closed 8 years ago

gillins commented 8 years ago

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'

gillins commented 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)

gillins commented 8 years ago

Original comment by Neil Flood (Bitbucket: neilflood, GitHub: neilflood).


Since we never heard any more from the original raiser of this issue, I am assuming it was resolved by Sam's suggestion.