Closed ttencate closed 8 months ago
duplicate #6996, #7248, please close
As explained above, I don't believe this is a duplicate. #6996 is supposedly specific to another package. And the second problem is entirely new.
Addendum: I had to remove ~/.cache/pypoetry/cache/
to reliably reproduce the list index out of range
problem.
The list index out of range
seems to have appeared in Poetry 1.8.0. I can't reproduce it with 1.7.1. This is the command I'm using to test it, running in a directory containing only the above pyproject.toml
:
poetry env remove --all && rm -f poetry.lock && poetry run pip uninstall --yes iso-639 && rm -r ~/.cache/pypoetry/cache/ && poetry run pip install iso-639 && poetry lock
inability to install packages whose names end in numbers is #6996, this is clearly an example of that.
if you can reproduce a different problem using a package that does not have that property, please raise a new issue. If what you are seeing only happens for packages with that property, it's a duplicate.
I feel this is being dismissed too quickly but let me try to make my point a third time. The title of #6996 does suggest that it applies to all integer-ended packages, but that is not the case as mentioned on this comment. And the list index out of range
is not mentioned there – I tried the workaround of installing iso-639
manually but it didn't give the result described on #6996. Whether or not it's a separate issue or has the same root cause as #6996, I'm unable to distinguish.
the linked comment is certainly mistaken, it is clearly the case that the issue affects other integer-ending packages including iso-639
yes the "list index out of range" is new, that code has only been added recently. But if you are only able to trigger it for integer-ending packages then it becomes a new symptom in the existing bug: the right thing to do is to leave a comment there saying so, and to close this one.
if you have a new bug that does not involve an integer-ending package then please open a new issue that is not tangled up with the existing one.
Edit: per https://github.com/python-poetry/poetry/issues/6996#issuecomment-1307898568: if you are interested in using poetry to install integer-ending packages - then it probably is not terribly hard to fix. A pull request would surely be welcome
Fair enough! I've added a comment there. I wish I had the time to create a fix for every issue I filed on an open source project, but alas :(
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.
Description
I'm having trouble installing
iso-639
through Poetry. There seem to be two problems.The first is described in #7248, which was marked as a duplicate of #6996. But on #6996, @samthurston wrote "I have tested some other integer-ended packages and it does indeed seem specific to [
flask-restful-swagger-2
]" which would suggest it doesn't apply toiso-639
.Then I run into the second problem, which is that
poetry lock
fails with a useless error message oflist index out of range
.Workarounds
The first problem can be worked around with a manual
poetry run pip install iso-639
.For the second problem, I don't have a workaround.
Poetry Installation Method
system package manager (eg: dnf, apt etc.)
Operating System
Arch Linux
Poetry Version
Poetry (version 1.8.2)
Poetry Configuration
Python Sysconfig
Example pyproject.toml
Poetry Runtime Logs