-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$ poetry update
failes when there is [[tool.poetry.source]] source
#5637
Comments
$ poetry update
failes when $PYTHONPATH isn't set and there is [[tool.poetry.source]] source$ poetry update
failes when there is [[tool.poetry.source]] source
From what I can tell the issue is that name from a package already installed in your environment is not retrieved.
Maybe try recreating your venv? |
I have done that both with python 3.9 and 3.10. |
Can you post the full logs from command with Also, is this any better with the version from master? |
The |
Unless I'm missing something, you have only posted the stack trace. Or are you saying that is all you are getting? |
Yea this "First here is the stack trace of the issue: https://gist.github.com/wiltso/f06c06987d199e440e1cd257b4fcdcb7" is the hole |
This is a duplicate of #3628 #4311 #3625. The root cause here seems to be stray installations (empty dist-info/egg-info) directories in site-packages of the virtual environment used by the project. Unable to reproduce this issue in a clean environment. podman run --rm -i --entrypoint bash docker.io/ubuntu:21.10 <<EOF
set -xe
export DEBIAN_FRONTEND=noninteractive
apt-get -yqq update
apt-get -yqq install python3 python3-pip curl
python3 -m pip install --disable-pip-version-check -q --pre poetry
poetry --version
install -d foobar
pushd foobar
curl -sL --output pyproject.toml https://gist.githubusercontent.com/wiltso/64f597cdb30dce0f61166efc84d2a781/raw/fdaedb6b2e1dd426d7ffc2d95a485b1b0786f3df/toml
poetry install
poetry update
EOF console output:
+ export DEBIAN_FRONTEND=noninteractive
+ DEBIAN_FRONTEND=noninteractive
+ apt-get -yqq update
+ apt-get -yqq install python3 python3-pip curl
...
Processing triggers for libc-bin (2.34-0ubuntu3.2) ...
Processing triggers for ca-certificates (20210119ubuntu1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
+ python3 -m pip install --disable-pip-version-check -q --pre poetry
+ poetry --version
Poetry (version 1.2.0b1)
+ install -d foobar
/foobar /
+ pushd foobar
+ curl -sL --output pyproject.toml https://gist.githubusercontent.com/wiltso/64f597cdb30dce0f61166efc84d2a781/raw/fdaedb6b2e1dd426d7ffc2d95a485b1b0786f3df/toml
+ poetry install
Creating virtualenv testing-lWDpn5M1-py3.9 in /root/.cache/pypoetry/virtualenvs
Updating dependencies
Resolving dependencies...
Writing lock file
+ poetry update
Updating dependencies
Resolving dependencies... |
Closing as a duplicate of #3628 as it has more information. |
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. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: Ubuntu 21.10 (64-bit)
Poetry version: 1.2.0b1
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/wiltso/64f597cdb30dce0f61166efc84d2a781
Issue
First here is the stack trace of the issue: https://gist.github.com/wiltso/f06c06987d199e440e1cd257b4fcdcb7
The error only happens when I there is [[tool.poetry.source]] in the pyproject.toml file. If I remove the source everything works fine.
The text was updated successfully, but these errors were encountered: