CLIMADA-project / climada_python

Python (3.8+) version of CLIMADA
GNU General Public License v3.0
306 stars 120 forks source link

Could not solve for environment specs, incompatible packages #907

Closed haicyu closed 2 months ago

haicyu commented 3 months ago

Describe the bug climada and pin-1 depend on different versions of python 3.9 and 3.12 respectively

Solving environment: | warning libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE failed

LibMambaUnsatisfiableError: Encountered problems while solving:

Could not solve for environment specs The following packages are incompatible ├─ climada is installable and it requires │ └─ python 3.9. , which can be installed; └─ pin-1 is not installable because it requires └─ python 3.12. , which conflicts with any installable versions previously reported.

To Reproduce

  1. conda install climada

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Climada Version: [Version or branch]

System Information (please complete the following information):

Additional context Add any other context about the problem here.

emanuel-schmid commented 3 months ago

Hi @haicyu. Thanks for the notification. Could you provide some more information about the conda environment where you want to climada? In theory, this should not happen in a clean environment, as the python version for climada is currently pinned to 3.9. If you need python 3.12 I'm afraid climada is currently not compatible. If you can do with python 3.11, you can follow the Advanced instructions of the installation guide, i.e., update the environment with the requirements/env_climada.yml file and install climada itself with pip: pip install climada will install climada 4.1.1

haicyu commented 3 months ago

Hi @emanuel-schmid, Thank you for your reply. I have solved the problem. It was related to the environment as you suggested. When I started from 0 with a fresh environment, I was able to build successfully.