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

Fail to install satpy despite the version #2458

Closed
yukaribbba opened this issue Apr 29, 2023 · 6 comments
Closed

Fail to install satpy despite the version #2458

yukaribbba opened this issue Apr 29, 2023 · 6 comments

Comments

@yukaribbba
Copy link
Contributor

Looks like this happened after 0.42 upgrade. It's always solving environment:

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

I'don think there's something wrong with my conda config since other packages like gdal went well.

@djhoese
Copy link
Member

djhoese commented Apr 29, 2023

Could you please give more context? What command are you running? If this was an existing environment what version of python and other tools were inside already? What operating system?

@yukaribbba
Copy link
Contributor Author

@djhoese Sorry for lacking details. I'm using the latest miniconda x64 version (https://repo.anaconda.com/miniconda/Miniconda3-py310_23.3.1-0-Windows-x86_64.exe) on a Windwos 11 22H2 pc. The python is 3.10.10 and the conda is 23.3.1. This is a newly-setup environment. To install satpy I used conda install -c conda-forge satpy.

@yukaribbba
Copy link
Contributor Author

After nearly half an hour solving environment finally ended and packages came up. This is too much longer than I expected.

@pnuu
Copy link
Member

pnuu commented Apr 29, 2023

The default conda package solver is quite slow. Try installing mamba with conda install mamba and using that next time instead of conda when updating/installing packages. Or go directly to mambaforge (my preferred Conda variant). Or as a third option, install Satpy when creating the environment conda env create -n newenv python=3.10 satpy, that way the package solving is much simpler.

As this is not a Satpy issue but a conda package interdependency conflict resolving issue, I'm closing this.

@pnuu pnuu closed this as completed Apr 29, 2023
@djhoese
Copy link
Member

djhoese commented Apr 29, 2023

I just want to add something to this. Satpy is a pure python package so it's binary conda packages are relatively flexible as far as what packages it can be mixed with in an environment. However, it depends on a lot of complex compiled platform-specific packages like rasterio (which depends on gdal), numpy, and it pulls in netcdf and hdf5 in the conda package. These dependencies are the reason this solving is slow, not satpy. You could also speed up the solving by including satpy as one of the packages specified when the environment is created as the solver then has all packages in mind from the initial creation.

@yukaribbba
Copy link
Contributor Author

@pnuu Miniforge is good. Thanks for suggestion! :)

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

3 participants