LoLab-MSM / pyvipr

Jupyter widget for the dynamic and static visualizations of systems biology models written in PySB, BNGL, and SBML
MIT License
27 stars 4 forks source link

Failed to load model class 'CytoscapeModel' from module 'pyvipr' on a fresh install #226

Open kaisengit opened 1 year ago

kaisengit commented 1 year ago

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 commented 1 year ago

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

ortega2247 commented 1 year ago

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

kaisengit commented 1 year ago

I am on Fedora 37 and use python 3.10.5

blakeaw commented 12 months ago

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)