MintPy icon indicating copy to clipboard operation
MintPy copied to clipboard

miniforge m1 mac UnsatisfiableError with mintpy package

Open TonySl opened this issue 3 years ago • 1 comments

Hi, thanks for developing this very useful package. I use miniforge on m1 mac Monterey 12.6. When I install the mintpy package, I got an error

Full script that generated the error

conda create -n sbas141 python=3.8
conda activate sbas141
conda install -c conda-forge mintpy gdal

Full error message

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: | 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                                                                                      

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

Package ca-certificates conflicts for:
gdal -> openssl[version='>=3.0.5,<4.0a0'] -> ca-certificates
python=3.9 -> openssl[version='>=3.0.3,<4.0a0'] -> ca-certificates

Package gdal conflicts for:
mintpy -> gdal[version='>=3']
gdal

Package setuptools conflicts for:
python=3.9 -> pip -> setuptools
mintpy -> joblib -> setuptools[version='>=3.2|>=40.4']

System information

miniforge m1 mac Monterey OSX/12.6

TonySl avatar Oct 15 '22 11:10 TonySl

👋 Thanks for opening your first issue here! Please filled out the template with as much details as possible. We appreciate that you took the time to contribute! Make sure you read our contributing guidelines.

welcome[bot] avatar Oct 15 '22 11:10 welcome[bot]

@TonySl I see you have python 3.8 specified, but the conda install is looking at python 3.9. Can you try specifying python 3.9?

Also, support for the M1 mac is still a work in progress so you may want to try the Rosetta x86 emulation and install it in an x86 environment:

https://towardsdatascience.com/how-to-manage-conda-environments-on-an-apple-silicon-m1-mac-1e29cb3bad12

jhkennedy avatar Oct 15 '22 18:10 jhkennedy

Thanks! Changing to python 3.9 gave the same error but x86 emulation works!

TonySl avatar Oct 16 '22 07:10 TonySl

Thanks to @scottstanie, pysolid is now available on conda-forge/osx-arm64 for Apple Silicon chips (https://github.com/insarlab/PySolid/issues/61), thus we could conda install mintpy on Mac M1 & M2 ARM chips as well. Cheers!

yunjunz avatar Aug 10 '23 12:08 yunjunz