-
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
Cannot install ipykernel 6.29.4 with poetry #9288
Comments
Thanks, updating Also is this likely to reoccur? I don't see any permanent fix in any of the linked issues. Having a build server suddenly fail and require manual intervention is a bit of a pain. |
Are you likely to downgrade pkginfo? |
No, it wasn't clear what the actual issue was - but if I'm not mistaken it's packages that use the newer "metadata version 2.3 / PEP 685" which requires pkginfo >= 1.10.0 for poetry (but not pip?). Ideally though there would be be some sort of warning at least if poetry encounters package metadata that it doesn't support rather than silently not installing (or in my case uninstalling) dependencies - if that's possible? Otherwise it could happen again when "metadata version 2.4" comes out some time in the distant future? |
Please close |
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 not sure if this is an upstream issue, I have an in-project venv (.venv) and I'm using vscode. I use poetry to maange my dependencies and occasional notebooks for visualization. I prefer to add ipykernel to poetry (vscode will install it automatically but poetry install --sync removes it)
This broke today, after a bit of debugging I discovered that
Works fine. This install
ipykernel==6.29.4
, along with dependencies includingjupyer_core
My poetry.yaml contains
When I run
poetry lock
this doesn't add the required dependencies (jupyer_core etc) topoetry.lock
so they're not included and I get an import error.When I revert to
It works, so I guess there's something about 6.29.4 that breaks a poetry install (but pip install works fine).
This was made worse because the version was specified as "^6.29.3" so it suddenly broke with no indication why. I'd imagine this needs to be reported to the maintainers of ipykernel but I have no idea what to include.
Workarounds
Downgrade ipykernel
Poetry Installation Method
pipx
Operating System
Ubuntu 22.04
Poetry Version
Poetry (version 1.7.1)
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
No response
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: