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
74 stars 21 forks source link

cannot import name '_fillminima' from 'fmask' #68

Closed hastaluegoph closed 1 year ago

hastaluegoph commented 1 year ago

I want to run fmask to process the sentinel2 cloud and I install the fmask following the install.txt.and then I get the error: Traceback (most recent call last): File "/home/penghan/work/python_fmask/bin/fmask_sentinel2Stacked.py", line 19, in from fmask.cmdline import sentinel2Stacked File "/home/penghan/work/python_fmask/fmask/cmdline/sentinel2Stacked.py", line 38, in from fmask import fmask File "/home/penghan/work/python_fmask/fmask/fmask.py", line 64, in from . import fillminima File "/home/penghan/work/python_fmask/fmask/fillminima.py", line 37, in from . import _fillminima ImportError: cannot import name '_fillminima' from 'fmask' (/home/penghan/work/python_fmask/fmask/init.py)

gillins commented 1 year ago

You'll need to install python-fmask first with a command line pip install .. Then you should be able to run fmask_sentinel2Stacked.py etc (it pays to cd out of the source after installing). Alternatively you can use conda-forge.

hastaluegoph commented 1 year ago

Thanks a lot! I find it runs well when I change the main directory