-
-
Notifications
You must be signed in to change notification settings - Fork 360
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
pip install ipykernel<6
gives incomplete installation, since Traitlets 5.1 release
#759
Comments
ipykernel 6.3.1 was released yesterday I believe that list ipython_genutils as a dependency. it is identical to 6.3.0 otherwise. We'll finish removing ipython_genutils from ipykernel in the future. |
Thanks, @Carreau. If you're planning to make a 5.x bugfix release at any point then this seems like something that could go into that bugfix release (and I can make a PR if that helps), but I'm assuming that all the effort is focused on the 6.x development at this point. In which case this should probably be closed. |
Unless there is a strong reason for people to keep 5.x around I doubt we'll make another release, but it's still possible. Are you sill using 5.x because you are on an older Python ? |
The reason to install |
The Mu Editor uses And we also support older Python versions than 3.7. Even if are soon to drop support for 3.5, 3.6 is still the default version in Ubuntu 18.04. So a 5.x update would be quite welcomed. |
I'm running into a related issue. Happy to file a separate bug if this is unrelated. |
I can cut a release of 5.x if someone is able to make a PR with the added @DonJayamanne, I think that is a bug to report to Anaconda, to ask them to publish the forthcoming version of |
Fixed in #778, thanks again @DonJayamanne! |
With the release of Traitlets 5.1, it appears that an
ipykernel
installed withpip install 'ipykernel < 6'
isn't immediately usable:ipython_genutils
is not installed into the environment, and animport ipykernel
gives aModuleNotFoundError: No module named 'ipython_genutils'
. It looks as thoughipykernel
depends onipython_genutils
and is currently relying on the traitlets dependencies to ensure thatipython_genutils
is installed, but since Traitlets 5.1,ipython_genutils
is no longer a dependency oftraitlets
. Moreover, explicitly installingipython_genutils
seems like the wrong solution, since the PyPI page seems to instruct us that we shouldn't need to know aboutipython_genutils
. :-)It's not clear to me whether this should be classified as a traitlets issue, an ipykernel issue, or a non-issue; it was the Traitlets release that triggered the issue, but presumably if it's deemed worth fixing, then fixing in the 5.x maintenance branch here (e.g., by adding
ipython_genutils
as an explicit dependency) makes most sense. Apologies if I've opened this in the wrong place.Steps to reproduce in a clean Python 3.9 venv:
pip install 'ipykernel < 6'
import ipykernel
. The expectation is that this would succeed, but it fails with aModuleNotFoundError
.Here are the results on my (macOS 10.15.7) machine.
For context: we have some code that works closely with ipykernel. That code currently works with ipykernel 5, but it will take some effort to make it compatible with ipykernel 6. In the meantime, we put an
ipykernel < 6
version restriction in place, and then ran into this issue. This isn't an issue for us: we already have a workaround in place (addingtraitlets < 5.1
to our dependencies), but it seemed worth reporting in case it affects others.The text was updated successfully, but these errors were encountered: