GeoscienceAustralia / PyRate

A Python tool for estimating velocity and time-series from Interferometric Synthetic Aperture Radar (InSAR) data.
https://geoscienceaustralia.github.io/PyRate/
Apache License 2.0
199 stars 69 forks source link

Installation issue with Docker Desktop Windows #383

Open mprevi opened 2 years ago

mprevi commented 2 years ago

I’m a newbie and I’m trying to install Pyrate on Windows 10 by using Docker as suggested in the installation guide. I’ve installed Git and Docker Desktop for Windows. Then in the Windows PowerShell I’ve executed the following commands:

git clone https://github.com/GeoscienceAustralia/PyRate.git
cd PyRate
docker build -t pyrate-image .

Here some problems with the installation of GDAL appears. Here the error message:

#21 78.54 Collecting GDAL==3.0.2
#21 78.59   Downloading GDAL-3.0.2.tar.gz (576 kB)
#21 78.64      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 576.2/576.2 KB 14.1 MB/s eta 0:00:00
#21 78.69   Preparing metadata (setup.py): started
#21 79.52   Preparing metadata (setup.py): finished with status 'error'
#21 79.53   error: subprocess-exited-with-error
#21 79.53
#21 79.53   × python setup.py egg_info did not run successfully.
#21 79.53   │ exit code: 1
#21 79.53   ╰─> [5 lines of output]
#21 79.53       /venvs/pyrate/lib/python3.7/site-packages/setuptools/_distutils/dist.py:275: UserWarning: Unknown distribution option: 'use_2to3_fixers'
#21 79.53         warnings.warn(msg)
#21 79.53       /venvs/pyrate/lib/python3.7/site-packages/setuptools/_distutils/dist.py:275: UserWarning: Unknown distribution option: 'use_2to3_exclude_fixers'
#21 79.53         warnings.warn(msg)
#21 79.53       error in GDAL setup command: use_2to3 is invalid.
#21 79.53       [end of output]
#21 79.53
#21 79.53   note: This error originates from a subprocess, and is likely not a problem with pip.
#21 79.53 error: metadata-generation-failed
#21 79.53
#21 79.53 × Encountered error while generating package metadata.
#21 79.53 ╰─> See above for output.
#21 79.53
#21 79.53 note: This is an issue with the package mentioned above, not pip.
#21 79.53 hint: See above for details.
------
executor failed running [/bin/bash -c source /usr/local/bin/virtualenvwrapper.sh     && mkvirtualenv -p python3.7 pyrate     && cd PyRate     && sed -i '/^GDAL/d' requirements.txt     && workon pyrate     && pip install -r requirements.txt -r requirements-dev.txt -r requirements-test.txt     && pip install GDAL==$(gdal-config --version)     && python setup.py install]: exit code: 1
>

image