-
Notifications
You must be signed in to change notification settings - Fork 22
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
jupyter-events
break JupyterLab due to lack of jsonschema
version pin/incompatibility with newer versions
#99
Comments
Downgrading
In this case it only happens when importing |
I agree, I tried all there was on Github issues and StackOverflow, none worked |
Has this issue been resolved at all? I think there is a compatibility issue with jsonschema and jupyter_events. I have mentioned an issue as well. jupyter/jupyter_core#407 |
I don't think this is due to a lack of a pin. I tried many things to reproduce this. It's a very subtle issue, but the only way I can see this is if, after installing a Jupyter web application (e.g. Lab or Notebook), I downgrade jsonschema manually to < 4.18. This is consistent with what we'd expect given the backward incompatible API introduced in the jsonschema package in 4.18 (and the deprecation warnings that appeared to signal this change). This can easily happen if users install a dependency after e.g. JupyterLab that pins jsonschema, thereby downgrading jsonschema to < 4.18. I think a lot of libraries did exactly that (pin jsonschema) when this new "registry" API was released, because it introduced a backwards incompatible change. In Jupyter, we handled this new API and updated our pin in #80. Any version equal or above jsonschema 4.18 doesn't seem to trigger this issue. The various threads reporting this issue are difficult to determine what version of jsonschema is running. For example, this comment suggests it happens in a later version; however, they then report after downgrading and upgrading again, things worked. My hunch is that their original report of a higher version (4.20) was inaccurate. I think the only thing we do here to improve things is add a version check on jsonschema when jupyter_events is imported and raise an error forcing users to upgrade jsonschema. This might cause conflicts with packages that pin jsonschema, but such is life in the Python work 😅. At least, this would be a more clear error. |
Thank you for looking into this! |
See:
But briefly:
As per:
Current version is 4.22
The text was updated successfully, but these errors were encountered: