conda-forge / rasterio-feedstock

A conda-smithy repository for rasterio.
BSD 3-Clause "New" or "Revised" License
42 stars 22 forks source link

conda install fails with Python 3.9 #241

Closed andrea-bistacchi closed 2 years ago

andrea-bistacchi commented 2 years ago

Solution to issue cannot be found in the documentation.

Issue

Hello, I cannot install with conda in a Python 3.9 freshly installed and updated environment (on Windows).

>> conda install -c conda-forge rasterio

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: \

... and it runs forever ...

Note that on 3.8 it is OK.

Thanks very much!

Installed packages

Python 3.9

Environment info

clean environment just created
xylar commented 2 years ago

@andrea-bistacchi thanks for reporting. We really do need the output about the environment to help you debug this. A likely cause would be mixing the conda-forge and the defaults channels.

Can you try creating a new environment and installing rasterio at the same time?

conda create -n test -c conda-forge python=3.9 rasterio

You can include other packages along the way.

You should also strongly consider adding:

conda config --add channels conda-forge
conda config --set channel_priority strict

This can help to prevent getting different packages from different channels. See https://conda-forge.org/#about

akrherz commented 2 years ago

I was able to create a test environment with python3.9 and rasterio on windows without issue, so I am with @xylar's suggestion about conda-forge configurations needing set to make this work.

andrea-bistacchi commented 2 years ago

Hello, like that it works. Just Python 3.9 and rasterio.

Now I'll try to load other packages afterwards.

Thanks!

xylar commented 2 years ago

@andrea-bistacchi, glad to hear it! I'll close this for now but please re-open if you still have trouble.