Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyMETRIC scripts can't find required modules #78

Open
MrDrinkwater opened this issue Jul 4, 2020 · 0 comments
Open

PyMETRIC scripts can't find required modules #78

MrDrinkwater opened this issue Jul 4, 2020 · 0 comments

Comments

@MrDrinkwater
Copy link

MrDrinkwater commented Jul 4, 2020

I am trying to run pyMETRIC on my system.
I followed precisely every step of the installation guide whithout receiving any error or warning.
However when I try to run pymetric scripts i get a ModuleNotFoundError relative to requests and drigo, even if they are correctly installed in my environment.

Any idea on the possible cause?
Thanks in advance

EDIT

I found out that the scripts in pymetric/code/local seem to work. (e.g. typing: landsat_prep_ini.py -h correctly shows the help for that script).
All the other scripts in other folders (i tried many of them, but not relly all of them) throw a ModuleNotFoundError. In addition to drigo and requests, i get also the same error for pandas and matplotlib (which ofc are already installed).

Pythonpaths looks fine:
echo %PYTHONPATH%
C:\pymetric\code\support

echo %GDAL_DATA%
C:\Users\LabFlux\miniconda3\envs\pymetric\Library\share\gdal

I am using miniconda, if it may help here's the output of conda info:

 active environment : pymetric
active env location : C:\Users\LabFlux\miniconda3\envs\pymetric
        shell level : 2
   user config file : C:\Users\LabFlux\.condarc

populated config files : C:\Users\LabFlux.condarc
conda version : 4.8.3
conda-build version : not installed
python version : 3.7.7.final.0
virtual packages : __cuda=10.0
base environment : C:\Users\LabFlux\miniconda3 (writable)
channel URLs : https://conda.anaconda.org/conda-forge/win-64
https://conda.anaconda.org/conda-forge/noarch
https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\Users\LabFlux\miniconda3\pkgs
C:\Users\LabFlux.conda\pkgs
C:\Users\LabFlux\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\LabFlux\miniconda3\envs
C:\Users\LabFlux.conda\envs
C:\Users\LabFlux\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.8.3 requests/2.24.0 CPython/3.7.7 Windows/10 Windows/10.0.18362
administrator : False
netrc file : None
offline mode : False

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant