-
Notifications
You must be signed in to change notification settings - Fork 237
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
nox-poetry crashes with TypeError: slice indices must be integers or None or have an __index__ method
#1050
Comments
See pypa/packaging#482 for the upstream discussion. |
Just FYI the linked PR is unrelated. This is a regression in pyparsing 3.0.5 and cutting a new packaging release without excluding 3.0.5 will break packaging for everyone (!). |
Thanks for the heads up @layday |
I can confirm that the issue persists with release 2021.11.8. This does not surprise me, as #1051 only touches the CI). |
@heiderich Can you post the output of The latest release of packaging (21.2) depends on pyparsing < 3, so you should only see this if you have an older version of packaging. #1051 isolated the environments of Poetry and nox-poetry because Poetry forced the older version of packaging, triggering the crash in nox-poetry. |
It turned out that I did not follow the installation instructions closely and did not install the requirements (nox, poetry) in separate environments. Indeed I had an older version of packaging (20.9). Sorry for the noise! |
Thanks for reporting back @heiderich |
nox-poetry crashes in the GA workflow when parsing requirements with packaging < 21.1 and pyparsing >= 3:
The latest version for packaging is not installed because Poetry depends on packaging < 21.0.
There is a workaround for this, adding
pyparsing < 3
to.github/workflows/constraints.txt
.A better fix would be to install Poetry and Nox in separate environments, using a tool like pipx.
Traceback
The text was updated successfully, but these errors were encountered: