Description
-
Poetry version:
1.6.1
-
Python version:
3.11.5
-
OS version and name:
docker
imagepython: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 (
-vvv
option) 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.lock
Tested 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 zenml
google-cloud-aiplatform zenml mlflow
google-cloud-aiplatform zenml mlflow gcsfs
google-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...