python-poetry / poetry

Python packaging and dependency management made easy
https://python-poetry.org
MIT License
31.61k stars 2.26k forks source link

Cannot Install Poetry on Conda with Python 3.13 #9747

Closed da1910 closed 3 weeks ago

da1910 commented 3 weeks ago

Description

Installing poetry's conda package with python 3.13 fails.

conda create -n test313 python==3.13
conda activate test313
conda install poetry
Could not solve for environment specs
The following packages are incompatible
├─ pin-1 is installable and it requires
│  └─ python 3.13.* , which can be installed;
└─ poetry is not installable because there are no viable options
   ├─ poetry 1.1.15 would require
   │  ├─ importlib-metadata >=1.6.0,<2.0.0  with the potential options
   │  │  ├─ importlib-metadata [1.6.0|1.6.1|1.7.0|4.11.4] would require
   │  │  │  └─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously reported;
   │  │  ├─ importlib-metadata [1.6.0|1.6.1|1.7.0|4.11.4] would require
   │  │  │  └─ python >=3.8,<3.9.0a0 , which conflicts with any installable versions previously reported;
   │  │  ├─ importlib-metadata 1.7.0, which can be installed;
   │  │  └─ importlib-metadata [1.6.0|1.6.1|1.7.0] would require
   │  │     └─ python >=3.6,<3.7.0a0 , which conflicts with any installable versions previously reported;
   │  └─ keyring >=21.2.0  but there are no viable options
   │     ├─ keyring [21.2.1|23.11.0|...|25.0.0] would require
   │     │  └─ python >=3.10,<3.11.0a0 , which conflicts with any installable versions previously reported;
   │     ├─ keyring [21.2.1|23.11.0|...|25.0.0] would require
   │     │  └─ python >=3.11,<3.12.0a0 , which conflicts with any installable versions previously reported;
   │     ├─ keyring [21.2.1|21.3.0|...|23.2.1] would require
   │     │  └─ python >=3.6,<3.7.0a0 , which conflicts with any installable versions previously reported;
   │     ├─ keyring [21.2.1|21.3.0|...|23.9.3] would require
   │     │  └─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously reported;
   │     ├─ keyring [21.2.1|21.3.0|...|25.0.0] would require
   │     │  └─ python >=3.8,<3.9.0a0 , which conflicts with any installable versions previously reported;
   │     ├─ keyring [21.2.1|21.4.0|...|25.0.0] would require
   │     │  └─ python >=3.9,<3.10.0a0 , which conflicts with any installable versions previously reported;
   │     ├─ keyring 24.2.0 would require
   │     │  └─ python >=3.12.0rc3,<3.13.0a0  but there are no viable options
   │     │     ├─ python [3.12.0|3.12.1|...|3.12.7] conflicts with any installable versions previously reported;
   │     │     └─ python 3.12.0rc3 would require
   │     │        └─ _python_rc, which does not exist (perhaps a missing channel);
   │     ├─ keyring [24.3.0|24.3.1|25.0.0] would require
   │     │  └─ python >=3.12,<3.13.0a0 , which conflicts with any installable versions previously reported;
   │     ├─ keyring [25.0.0|25.1.0|...|25.4.1] would require
   │     │  └─ __osx, which is missing on the system;
   │     ├─ keyring [25.0.0|25.1.0|...|25.4.1] would require
   │     │  └─ __win, which is missing on the system;
   │     └─ keyring [25.0.0|25.1.0|...|25.4.1] would require
   │        ├─ importlib-metadata >=4.11.4  but there are no viable options
   │        │  ├─ importlib-metadata 5.0.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 4.11.4 would require
   │        │  │  └─ python >=3.10,<3.11.0a0 , which conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata [1.6.0|1.6.1|1.7.0|4.11.4], which cannot be installed (as previously explained);
   │        │  ├─ importlib-metadata [1.6.0|1.6.1|1.7.0|4.11.4], which cannot be installed (as previously explained);
   │        │  ├─ importlib-metadata 4.11.4 would require
   │        │  │  └─ python >=3.9,<3.10.0a0 , which conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 4.13.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 5.1.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 5.2.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 6.0.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 6.1.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 6.10.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 6.2.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 6.2.1 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 6.3.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 6.4.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 6.4.1 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 6.5.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 6.5.1 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 6.6.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 6.7.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 6.8.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 6.9.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 7.0.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 7.0.1 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 7.0.2 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 7.1.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 7.2.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 7.2.1 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 8.0.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 8.1.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 8.2.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 8.3.0 conflicts with any installable versions previously reported;
   │        │  ├─ importlib-metadata 8.4.0 conflicts with any installable versions previously reported;
   │        │  └─ importlib-metadata 8.5.0 conflicts with any installable versions previously reported;
   │        └─ importlib_metadata >=4.11.4  but there are no viable options
   │           ├─ importlib_metadata 4.11.4 would require
   │           │  └─ importlib-metadata >=4.11.4,<4.11.5.0a0 , which cannot be installed (as previously explained);
   │           ├─ importlib_metadata 5.0.0 would require
   │           │  └─ importlib-metadata >=5.0.0,<5.0.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 4.13.0 would require
   │           │  └─ importlib-metadata >=4.13.0,<4.13.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 5.1.0 would require
   │           │  └─ importlib-metadata >=5.1.0,<5.1.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 5.2.0 would require
   │           │  └─ importlib-metadata >=5.2.0,<5.2.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 6.0.0 would require
   │           │  └─ importlib-metadata >=6.0.0,<6.0.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 6.1.0 would require
   │           │  └─ importlib-metadata >=6.1.0,<6.1.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 6.10.0 would require
   │           │  └─ importlib-metadata >=6.10.0,<6.10.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 6.2.0 would require
   │           │  └─ importlib-metadata >=6.2.0,<6.2.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 6.2.1 would require
   │           │  └─ importlib-metadata >=6.2.1,<6.2.2.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 6.3.0 would require
   │           │  └─ importlib-metadata >=6.3.0,<6.3.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 6.4.0 would require
   │           │  └─ importlib-metadata >=6.4.0,<6.4.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 6.4.1 would require
   │           │  └─ importlib-metadata >=6.4.1,<6.4.2.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 6.5.0 would require
   │           │  └─ importlib-metadata >=6.5.0,<6.5.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 6.5.1 would require
   │           │  └─ importlib-metadata >=6.5.1,<6.5.2.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 6.6.0 would require
   │           │  └─ importlib-metadata >=6.6.0,<6.6.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 6.7.0 would require
   │           │  └─ importlib-metadata >=6.7.0,<6.7.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 6.8.0 would require
   │           │  └─ importlib-metadata >=6.8.0,<6.8.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 6.9.0 would require
   │           │  └─ importlib-metadata >=6.9.0,<6.9.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 7.0.0 would require
   │           │  └─ importlib-metadata >=7.0.0,<7.0.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 7.0.1 would require
   │           │  └─ importlib-metadata >=7.0.1,<7.0.2.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 7.0.2 would require
   │           │  └─ importlib-metadata >=7.0.2,<7.0.3.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 7.1.0 would require
   │           │  └─ importlib-metadata >=7.1.0,<7.1.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 7.2.0 would require
   │           │  └─ importlib-metadata >=7.2.0,<7.2.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 7.2.1 would require
   │           │  └─ importlib-metadata >=7.2.1,<7.2.2.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 8.0.0 would require
   │           │  └─ importlib-metadata >=8.0.0,<8.0.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 8.1.0 would require
   │           │  └─ importlib-metadata >=8.1.0,<8.1.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 8.2.0 would require
   │           │  └─ importlib-metadata >=8.2.0,<8.2.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 8.3.0 would require
   │           │  └─ importlib-metadata >=8.3.0,<8.3.1.0a0 , which conflicts with any installable versions previously reported;
   │           ├─ importlib_metadata 8.4.0 would require
   │           │  └─ importlib-metadata >=8.4.0,<8.4.1.0a0 , which conflicts with any installable versions previously reported;
   │           └─ importlib_metadata 8.5.0 would require
   │              └─ importlib-metadata >=8.5.0,<8.5.1.0a0 , which conflicts with any installable versions previously reported;
   ├─ poetry [0.12.10|0.12.11|...|1.0.3] would require
   │  └─ python >=2.7,<2.8.0a0 , which conflicts with any installable versions previously reported;
   ├─ poetry [0.12.10|0.12.11|...|1.1.8] would require
   │  └─ python >=3.6,<3.7.0a0 , which conflicts with any installable versions previously reported;
   ├─ poetry [0.12.10|0.12.11|...|1.1.8] would require
   │  └─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously reported;
   ├─ poetry [0.12.17|1.0.0|...|1.3.1] would require
   │  └─ python >=3.8,<3.9.0a0 , which conflicts with any installable versions previously reported;
   ├─ poetry [1.1.10|1.1.11|...|1.3.1] would require
   │  └─ python >=3.9,<3.10.0a0 , which conflicts with any installable versions previously reported;
   ├─ poetry [1.1.11|1.1.12|...|1.3.1] would require
   │  └─ python >=3.10,<3.11.0a0 , which conflicts with any installable versions previously reported;
   ├─ poetry [1.3.0|1.3.1] would require
   │  └─ python >=3.11,<3.12.0a0 , which conflicts with any installable versions previously reported;
   ├─ poetry [1.3.1|1.3.2] would require
   │  └─ keyring >=23.9.0,<24.0.0 , which cannot be installed (as previously explained);
   ├─ poetry [1.3.1|1.3.2|...|1.8.3] would require
   │  └─ __osx, which is missing on the system;
   ├─ poetry [1.3.1|1.3.2|...|1.8.3] would require
   │  └─ __win, which is missing on the system;
   ├─ poetry [1.4.0|1.4.1|1.4.2|1.5.0|1.5.1] would require
   │  └─ dulwich >=0.21.2,<0.22.0  but there are no viable options
   │     ├─ dulwich [0.21.2|0.21.3|...|0.21.7] would require
   │     │  └─ python >=3.10,<3.11.0a0 , which conflicts with any installable versions previously reported;
   │     ├─ dulwich [0.21.2|0.21.3|...|0.21.7] would require
   │     │  └─ python >=3.11,<3.12.0a0 , which conflicts with any installable versions previously reported;
   │     ├─ dulwich [0.21.2|0.21.3|...|0.21.7] would require
   │     │  └─ python >=3.8,<3.9.0a0 , which conflicts with any installable versions previously reported;
   │     ├─ dulwich [0.21.2|0.21.3|...|0.21.7] would require
   │     │  └─ python >=3.9,<3.10.0a0 , which conflicts with any installable versions previously reported;
   │     └─ dulwich [0.21.6|0.21.7] would require
   │        └─ python >=3.12,<3.13.0a0 , which conflicts with any installable versions previously reported;
   └─ poetry [1.6.0|1.6.1|...|1.8.3] would require
      └─ keyring >=24.0.0,<25.0.0 , which cannot be installed (as previously explained).

Workarounds

None that I can determine, other than installing it with pip which defeats the point of using conda.

Poetry Installation Method

other

Operating System

Ubuntu 2204

Poetry Version

1.8.3

Poetry Configuration

... (Cannot install poetry)

Python Sysconfig

No response

Example pyproject.toml

No response

Poetry Runtime Logs

... (Cannot install poetry)
da1910 commented 3 weeks ago

See https://github.com/conda-forge/poetry-feedstock/issues/102 for some additional context

Secrus commented 3 weeks ago

We don't maintain the conda package, so you should take it to their repo. As to the suggestions in the linked issue, we will release Poetry 2.0 when it is ready, there are still some things to be done.

da1910 commented 3 weeks ago

We don't maintain the conda package, so you should take it to their repo. As to the suggestions in the linked issue, we will release Poetry 2.0 when it is ready, there are still some things to be done.

Thats exactly where I started, but its a valid point that they don't want different dependencies between the conda package and the pip version. That is not a maintainable or sensible solution to this issue.