Closed fekenzofugi closed 2 weeks ago
This is not related to the .SAFE folder. It looks like something has gone wrong with the installation, and you are missing parts of the gdal package.
How did you install conda? Was it with miniconda, or with the full anaconda package? And did you configure the conda-forge channel?
If you had not configured conda-forge as the default channel, try this. Remove the myenv environment, and re-create it with this command
conda create -c conda-forge -n myenv python-fmask
It worked! Thank you.
But i'm receiving this error right now:
Traceback (most recent call last):
File "/home/fekenzofugi/anaconda3/envs/myenv/bin/fmask_sentinel2Stacked", line 7, in <module>
from fmask.cmdline.sentinel2Stacked import mainRoutine
File "/home/fekenzofugi/Documents/python-fmask/fmask/cmdline/sentinel2Stacked.py", line 38, in <module>
from fmask import fmask
File "/home/fekenzofugi/Documents/python-fmask/fmask/fmask.py", line 64, in <module>
from . import fillminima
File "/home/fekenzofugi/Documents/python-fmask/fmask/fillminima.py", line 37, in <module>
from . import _fillminima
ImportError: cannot import name '_fillminima' from 'fmask' (/home/fekenzofugi/Documents/python-fmask/fmask/__init__.py)
You appear to be pulling in fmask from your Documents directory instead of the conda install. Do you have a clone of the source in there? Can you try running from a folder without fmask source in it...
It worked, thank you.
I've followed the download process on https://www.pythonfmask.org/en/latest/index.html#downloads. Using anaconda
But when i run the followed command
I got this error
But i've already installed the
gdal
package.How to solve this error?
Where should the sentinel2 .SAFE folder be placed?