Skip to content
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

Conflicting versions of altair #136

Open
fairdatasystems opened this issue Aug 29, 2024 · 8 comments
Open

Conflicting versions of altair #136

fairdatasystems opened this issue Aug 29, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@fairdatasystems
Copy link

Description

%pip install -q altair

ValueError: Requested 'typing-extensions>=4.10.0; python_version < "3.13"', but typing-extensions==4.7.1 is already installed

Reproduce

the pip install of altair triggers this warning in my jupyterlite notebooks (that worked fine a few weeks ago!), but it does not trigger in your example notebooks. This happens in Chrome in Windows, and in Chromium in Linux. Also after deleting the IndexedDB for jupyterlite.

???

@fairdatasystems fairdatasystems added the bug Something isn't working label Aug 29, 2024
@martinRenou martinRenou transferred this issue from jupyterlite/jupyterlite Aug 29, 2024
@fairdatasystems
Copy link
Author

Any thoughts on this? I am supposed to do a demo early next week that depends on the notebooks working... and they suddenly stopped!

@jtpio
Copy link
Member

jtpio commented Sep 9, 2024

@fairdatasystems I just tried on https://jupyterlite-pyodide-kernel.readthedocs.io/en/latest/_static/lab/index.html and it seems to be working:

image

Are you able to check if you are using the latest versions of the jupyterlite-* packages?

@markwilkinson
Copy link

Forgive my ignorance, but... I don't know how I would do that. What file contains that information? (and can it change without me editing it?)

@markwilkinson
Copy link

I solved the problem by copy/pasting the requirements.txt from the jupyterlite demo site.

Still worrying that something can break without my knowledge...

@jtpio
Copy link
Member

jtpio commented Sep 9, 2024

@markwilkinson you can run the following code snippets to check the versions:

import pyodide
pyodide.__version__
import pyodide_kernel
pyodide_kernel.__version__

And click on Help > About to check the JupyterLite version:

image

@jtpio
Copy link
Member

jtpio commented Sep 9, 2024

The error was likely because Pyodide includes a version of altair already, and you were probably using an old version of Pyodide with an old jupyterlite-pyodide-kernel. Then maybe there was a new release of altair which caused this error?

One way to fix this could be to explicitly pin the version of altair you would like to use in your notebook (in that %pip install altair command).

@markwilkinson
Copy link

Thank you for the advice! Greatly appreciated!

@agriyakhetarpal
Copy link
Member

The newly-released Pyodide 0.27.0 has updated Altair to version 5.4.1 and typing-extensions to version 4.11.0, if this helps. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants