-
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 install' fails on Mint with 'system-site-packages' opion #4022
Comments
Considering the issue is, as you have pointed out, in the distro provided package I am wondering what is gained by keeping this one open as there is not real action required on the poetry side. Or are you considering that poetry should handle this less strict? (this will be a step backwads imho) |
@abn , I think we should track: will that issue be resolved or at least be going to be resolved. If no - probably, to don't handle versions naming less strict, but add exception for a specific (python-debian) package. I consider this to be issue with Poetry too, because freshly installed Poetry will crash on freshly installed system (Mint). |
Marked this on Launchpad as affecting me too, so at least it shows The version installed on PyPi with I completely agree that the issue is not with Poetry, but it would be absolutely fantastic if there was an option to be less strict/pedantic in this particular context. This way, we could still adopt and use Poetry today and not be blocked waiting for the distribution to roll out a fix for the versioning. Alternatively, if there was some way of specifying what packages from the system site packages we want included, that would solve my particular issue, e.g. I only need the system
I considered using Pipenv temporarily since it doesn't seem to care about this issue when specifying |
I'm running into the same issue on Ubuntu 20.04 LTS. The project I am working on requires a Python library, |
Dupe #6013 |
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. |
-vvv
option).Issue
poetry install
fails to complete if system-site-packages option was specified to True.Steps to reproduce.
pipx install git+https://github.com/python-poetry/poetry.git
pip list
haspython-debian 0.1.36ubuntu1
package listed, if no - install it (apt install python-debian
)poetry init
poetry config virtualenvs.options.system-site-packages true --local
poetry install
Invalid PEP 440 version: '0.1.36ubuntu1'
It fails only on Linux Mint 20.1, should fail and on Ubuntu 20.04 too.
As I see, this is not actually a Poetry but, but but with
python3-debian
apt package, which specified not PEP 440-compliant version.Reported this to Ubuntu bug tracker
I think this issue should be here until this will be fixed in Ubuntu or Mint or Debian side.
Workaround:
/usr/lib/python3/dist-packages/python_debian-0.1.36ubuntu1.egg-info/PKG-INFO
/usr/lib/python3/dist-packages/debian/_version.py
0.1.36+ubuntu1
The text was updated successfully, but these errors were encountered: