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

Failed to load model class 'CanvasModel' from module 'ipycanvas' in Binder #343

Open
Voranto opened this issue Mar 1, 2024 · 0 comments

Comments

@Voranto
Copy link

Voranto commented Mar 1, 2024

Doing an OCR project, which im using ipycanvas as a Canvas to draw the number, and the knn algorithm to guess the number. Im using binder to render the notebook, and everything seems to work except the canvas.

Error:

[Open Browser Console for more detailed log - Double click to close this message] Failed to load model class 'CanvasModel' from module 'ipycanvas' Error: No version of module ipycanvas is registered at f.loadClass (https://notebooks.gesis.org/binder/jupyter/user/voranto-ocr-proyect-6hzwv5uh/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.a63a8d293fb35a52dc25.js?v=a63a8d293fb35a52dc25:1:74936) at f.loadModelClass (https://notebooks.gesis.org/binder/jupyter/user/voranto-ocr-proyect-6hzwv5uh/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.ebc7a55ea1768712771f.js?v=ebc7a55ea1768712771f:1:10729) at f._make_model (https://notebooks.gesis.org/binder/jupyter/user/voranto-ocr-proyect-6hzwv5uh/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.ebc7a55ea1768712771f.js?v=ebc7a55ea1768712771f:1:7517) at f.new_model (https://notebooks.gesis.org/binder/jupyter/user/voranto-ocr-proyect-6hzwv5uh/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.ebc7a55ea1768712771f.js?v=ebc7a55ea1768712771f:1:5137) at f.handle_comm_open (https://notebooks.gesis.org/binder/jupyter/user/voranto-ocr-proyect-6hzwv5uh/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.ebc7a55ea1768712771f.js?v=ebc7a55ea1768712771f:1:3894) at _handleCommOpen (https://notebooks.gesis.org/binder/jupyter/user/voranto-ocr-proyect-6hzwv5uh/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.a63a8d293fb35a52dc25.js?v=a63a8d293fb35a52dc25:1:73473) at b._handleCommOpen (https://notebooks.gesis.org/binder/jupyter/user/voranto-ocr-proyect-6hzwv5uh/static/lab/jlab_core.c3f88431949a8243d08c.js?v=c3f88431949a8243d08c:2:1040031) at async b._handleMessage (https://notebooks.gesis.org/binder/jupyter/user/voranto-ocr-proyect-6hzwv5uh/static/lab/jlab_core.c3f88431949a8243d08c.js?v=c3f88431949a8243d08c:2:1042021)

Any issues on to why and any way to fix it?
image

Code for the project (don't think it adds much but if it helps):
https://github.com/Voranto/OCR-proyect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant