Skip to content

PyMETRIC scripts can't find required modules #78

@MrDrinkwater

Description

@MrDrinkwater

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions