Repository navigation
Description
-
Poetry version:
1.6.1 -
Python version:
3.11.5 -
OS version and name:
dockerimagepython:3.11.5 -
pyproject.toml: Providing reproducible docker command instead
-
I am on the latest stable Poetry version, installed using a recommended method.
-
I have searched the issues of this repo and believe that this is not a duplicate.
-
I have consulted the FAQ and blog for any relevant entries or release notes.
-
If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption) and have included the output below.
Issue
The following combination of packages never resolves: google-cloud-aiplatform kfp
Poetry is stuck in Resolving dependencies... after >10h.
Reproduced in both Native Macos 13.5.1 (22G90) and in Docker.
In Macos envs, cache and poetry.lock was removed like this, but despite this the error persists:
poetry env remove --all \
&& poetry cache clear --all -q . \
&& rm -rf $(poetry config cache-dir)/artifacts \
&& rm -f poetry.lockTested package combinations
❌ Doesn't resolve (within reasonable time)
google-cloud-aiplatform zenml mlflow gcsfs kfp<-- This combo was left running >10hgoogle-cloud-aiplatform kfp
✅ Does resolve
google-cloud-aiplatform zenmlgoogle-cloud-aiplatform zenml mlflowgoogle-cloud-aiplatform zenml mlflow gcsfsgoogle-cloud-aiplatform gcsfs
How to reproduce
docker run --rm python:3.11.5 sh -c " \
curl -sSL https://install.python-poetry.org | python3 - --version=1.6.1 \
&& poetry --version \
&& mkdir app && cd app \
&& /root/.local/bin/poetry init --name=app --description=app --author=test@localhost --python='>=3.10,<3.12' -n \
&& /root/.local/bin/poetry add google-cloud-aiplatform kfp"Output
Retrieving Poetry metadata
# Welcome to Poetry!
This will download and install the latest version of Poetry,
a dependency and package manager for Python.
It will add the `poetry` command to Poetry's bin directory, located at:
/root/.local/bin
You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.
Installing Poetry (1.6.1)
Installing Poetry (1.6.1): Creating environment
Installing Poetry (1.6.1): Installing Poetry
Installing Poetry (1.6.1): Creating script
Installing Poetry (1.6.1): Done
Poetry (1.6.1) is installed now. Great!
To get started you need Poetry's bin directory (/root/.local/bin) in your `PATH`
environment variable.
Add `export PATH="/root/.local/bin:$PATH"` to your shell configuration file.
Alternatively, you can call Poetry explicitly with `/root/.local/bin/poetry`.
You can test that everything is set up by executing:
`poetry --version`
Creating virtualenv app-9TtSrW0h-py3.11 in /root/.cache/pypoetry/virtualenvs
Using version ^1.33.1 for google-cloud-aiplatform
Using version ^2.3.0 for kfp
Updating dependencies
Resolving dependencies...
Activity
Davidnet commentedon Nov 4, 2023
Still present in 1.7.0
Davidnet commentedon Nov 29, 2023
Now at Nov29, and poetry 1.7.1 the packages:
It fails with:
Davidnet commentedon Nov 29, 2023
Intersting that the following (change from python 3.11 to 3.10) works without any problems:
henry-branco commentedon Feb 16, 2024
I have the same problem:
Issue
To reproduce the issue using the same environment, just run
poetry installIt will fall into infinite dependency resolving.
$ poetry install Creating virtualenv my-project in /home/.../.venv Updating dependencies Resolving dependencies... (2003.3s)The logs using
-vvvoption shows what is the package that is causing the problem:Tons of those conflits appears, but no error or exception is raised.
The
pipwayBut, when I use built-in package
venvinstead ofpoetryit runs smootly.$ python3 -m venv .venv $ source .venv/bin/activate (.venv) $ pip3 install kfp==1.8.22 google-cloud-aiplatform==1.25.0And the most important,
pipcan found a version forgrpcio-status...Attempts
I've tried to use the following attempts with no sucess:
grpcio-status = "1.48.2"inpyproject.tomlkfp = "^1.8"andgoogle-cloud-aiplatform = "^1"poetry cache clear pypi --allandrm -rf ~/.cache/pypoetry/cacheSum up
In short terms: this dependencies in
pyproject.tomlcan't be installed usingpoetry, but they can usingpipExtra information
kfpv2.x andgoogle-cloud-platformit seems to work fine. The issue occurs inkfp v1.xonly.henry-branco commentedon Feb 16, 2024
@Davidnet, could you try to install both
kfpandgoogle-cloud-aiplatformnow? Here it works,kfpreleased v2.7.0 recently, just want to be sure that issue iskfpv1.x related.keithhackbarth commentedon Jun 3, 2024
Still present in Poetry 1.8.3
henry-branco commentedon Jun 3, 2024
I have had the same problem for a long time. My suggestion for the moment is to install both with
pipand wait for any returns on this issue.mminichino commentedon Aug 6, 2024
I had a problem similar to this and I resolved it by adding this to
pyproject.toml:mminichino commentedon Aug 6, 2024
See issue #9293
henry-branco commentedon Sep 30, 2024
@mminichino, did you just add it? Or did you also had to configure the
sourceas described in documentation?radoering commentedon Jun 6, 2026
This should be fixed by python-poetry/poetry-core#939 in the main branch. The fix will be included in Poetry 2.5.
github-actions commentedon Jul 7, 2026
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.