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 'CytoscapeModel' from module 'pyvipr' on a fresh install #226

Open
kaisengit opened this issue Feb 23, 2023 · 4 comments

Comments

@kaisengit
Copy link

Hey there,

following the the example found on https://pyvipr.readthedocs.io/en/latest/tellurium_examples.html

import tellurium as te
import pyvipr.tellurium_viz as tviz

r = te.loada("""
    J1:S1 -> S2; k1*S1;
    J2:S2 -> S3; k2*S2;
    J3:S4 -> S3; k2*S4;

    k1= 0.1; k2 = 0.2;
    S1 = 10; S2 = 0; S3 = 0; S4 = 20;
""")

tviz.sp_view(r)

I get the following error:

Failed to load model class 'CytoscapeModel' from module 'pyvipr'
loadClass@http://localhost:8890/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.40eaa5b8e976096d50b2.js?v=40eaa5b8e976096d50b2:1:74856
loadModelClass@http://localhost:8890/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.b0e841b75317744a7595.js?v=b0e841b75317744a7595:1:10729
_make_model@http://localhost:8890/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.b0e841b75317744a7595.js?v=b0e841b75317744a7595:1:7517
new_model@http://localhost:8890/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.b0e841b75317744a7595.js?v=b0e841b75317744a7595:1:5137
handle_comm_open@http://localhost:8890/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/150.b0e841b75317744a7595.js?v=b0e841b75317744a7595:1:3894
134/v/this._handleCommOpen@http://localhost:8890/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/134.40eaa5b8e976096d50b2.js?v=40eaa5b8e976096d50b2:1:73393
_handleCommOpen@http://localhost:8890/static/lab/jlab_core.a10b9b009324ae53c035.js?v=a10b9b009324ae53c035:2:1001314

pyvipr 1.0.7
tellurium 2.2.7
jupyterlab 3.5.3

And the jupyerlab plugin was installed yesterday via:

conda install pyvipr -c ortegas
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install pyvipr

@ortega2247
Copy link
Contributor

Hi, sorry for the delay! I’ll take a look this weekend!

@ortega2247
Copy link
Contributor

what python version are you using and are you using mac/linux or windows?

@kaisengit
Copy link
Author

I am on Fedora 37 and use python 3.10.5

@blakeaw
Copy link

blakeaw commented Oct 9, 2023

Hi Oscar (@ortega2247), were you able to figure out what was going on with this issue?

I'm getting a similar error

Failed to load model class 'CytoscapeModel' from module 'pyvipr'

with a recent install of pyvipr and running in JupyterLab.

I'm working in a conda environment on Windows.

Additional Context

OS: Windows 11
Python 3.11.3
JupyterLab 4.0.6
pyvipr 1.0.7
nodejs 20.8.0 (conda-forge)

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

3 participants