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

hnn-gui won't launch due to javascript error after clean install #585

Closed
ntolley opened this issue Jan 12, 2023 · 7 comments · Fixed by #586
Closed

hnn-gui won't launch due to javascript error after clean install #585

ntolley opened this issue Jan 12, 2023 · 7 comments · Fixed by #586

Comments

@ntolley
Copy link
Contributor

ntolley commented Jan 12, 2023

Installing hnn-gui in a clean environment produces the following error when trying to launch (tested on both mac and linux):

Failed to load model class 'GridBoxModel' from module '@jupyter-widgets/controls'
loadClass@http://localhost:8866/voila/templates/lab/static/voila.js?v=8db1cadbfba43a6dfc2d64128318e696bcb26b1783db1b991faf7404d438cd53200b6c434c4897064c090b68aa1151cd96c6dab50c3e138553365e6b30889172:458:117211
loadClass@http://localhost:8866/voila/templates/lab/static/voila.js?v=8db1cadbfba43a6dfc2d64128318e696bcb26b1783db1b991faf7404d438cd53200b6c434c4897064c090b68aa1151cd96c6dab50c3e138553365e6b30889172:472:57590
loadModelClass@http://localhost:8866/voila/templates/lab/static/voila.js?v=8db1cadbfba43a6dfc2d64128318e696bcb26b1783db1b991faf7404d438cd53200b6c434c4897064c090b68aa1151cd96c6dab50c3e138553365e6b30889172:458:114981
_make_model@http://localhost:8866/voila/templates/lab/static/voila.js?v=8db1cadbfba43a6dfc2d64128318e696bcb26b1783db1b991faf7404d438cd53200b6c434c4897064c090b68aa1151cd96c6dab50c3e138553365e6b30889172:458:111788
new_model@http://localhost:8866/voila/templates/lab/static/voila.js?v=8db1cadbfba43a6dfc2d64128318e696bcb26b1783db1b991faf7404d438cd53200b6c434c4897064c090b68aa1151cd96c6dab50c3e138553365e6b30889172:458:109385
_loadFromKernel/<@http://localhost:8866/voila/templates/lab/static/voila.js?v=8db1cadbfba43a6dfc2d64128318e696bcb26b1783db1b991faf7404d438cd53200b6c434c4897064c090b68aa1151cd96c6dab50c3e138553365e6b30889172:458:110659
_loadFromKernel@http://localhost:8866/voila/templates/lab/static/voila.js?v=8db1cadbfba43a6dfc2d64128318e696bcb26b1783db1b991faf7404d438cd53200b6c434c4897064c090b68aa1151cd96c6dab50c3e138553365e6b30889172:458:110549

Not sure where the problem is yet. I've played around with down/upgrading voila and ipywidgets with no success yet.

@chenghuzi any ideas?

@ntolley ntolley changed the title hnn-gui won't launch after clean install hnn-gui won't launch due to javascript error after clean install Jan 12, 2023
@chenghuzi
Copy link
Collaborator

Could you tell me the specific version number combinations of voila and ipywidgets you tried?

@ntolley
Copy link
Contributor Author

ntolley commented Jan 12, 2023

Just the versions immediately prior to whatever was installed on a fresh conda environment!

@jasmainak
Copy link
Collaborator

@ntolley I think the exact version numbers will help @chenghuzi debug ... if it's possible to share

@ntolley
Copy link
Contributor Author

ntolley commented Jan 12, 2023

@jasmainak @chenghuzi apologies but I don't remember the combinations top of my head (was quickly trying random older versions on a different computer). It wasn't a very thorough search, I just wanted to confirm that it wasn't a problem that was introduced in the most recent releases of voila or ipywidgets.

@ntolley
Copy link
Contributor Author

ntolley commented Jan 12, 2023

In any case here is what is installed by pip on a clean conda environment:

anyio==3.6.2
argon2-cffi==21.3.0
argon2-cffi-bindings==21.2.0
asttokens==2.2.1
attrs==22.2.0
Babel==2.11.0
backcall==0.2.0
beautifulsoup4==4.11.1
bleach==5.0.1
certifi @ file:///croot/certifi_1671487769961/work/certifi
cffi==1.15.1
charset-normalizer==3.0.1
comm==0.1.2
contourpy==1.0.6
cycler==0.11.0
debugpy==1.6.5
decorator==5.1.1
defusedxml==0.7.1
entrypoints==0.4
executing==1.2.0
fastjsonschema==2.16.2
fonttools==4.38.0
-e git+https://github.com/ntolley/hnn-core@01f4bce769fb6cf814c7a96c118d1d021e294cab#egg=hnn_core
idna==3.4
importlib-metadata==6.0.0
importlib-resources==5.10.2
ipykernel==6.20.1
ipympl==0.8.8
ipython==8.8.0
ipython-genutils==0.2.0
ipywidgets==7.6.5
jedi==0.18.2
Jinja2==3.1.2
json5==0.9.11
jsonschema==4.17.3
jupyter-server==1.23.5
jupyter_client==7.4.1
jupyter_core==5.1.3
jupyterlab==3.4.0
jupyterlab-pygments==0.2.2
jupyterlab-widgets==3.0.0
jupyterlab_server==2.18.0
kiwisolver==1.4.4
MarkupSafe==2.1.1
matplotlib==3.6.3
matplotlib-inline==0.1.6
mistune==2.0.4
nbclassic==0.4.8
nbclient==0.7.2
nbconvert==7.2.7
nbformat==5.7.3
nest-asyncio==1.5.6
NEURON==8.2.2
nlopt==2.7.1
notebook==6.5.2
notebook_shim==0.2.2
numpy==1.24.1
packaging==23.0
pandocfilters==1.5.0
parso==0.8.3
pexpect==4.8.0
pickleshare==0.7.5
Pillow==9.4.0
pkgutil_resolve_name==1.3.10
platformdirs==2.6.2
prometheus-client==0.15.0
prompt-toolkit==3.0.36
psutil==5.9.4
ptyprocess==0.7.0
pure-eval==0.2.2
pycparser==2.21
Pygments==2.14.0
PyOpenGL==3.1.6
pyparsing==3.0.9
PyQt5==5.15.7
PyQt5-Qt5==5.15.2
PyQt5-sip==12.11.0
pyqtgraph==0.12.4
pyrsistent==0.19.3
python-dateutil==2.8.2
pytz==2022.7
pyzmq==25.0.0
requests==2.28.2
scipy==1.10.0
Send2Trash==1.8.0
six==1.16.0
sniffio==1.3.0
soupsieve==2.3.2.post1
stack-data==0.6.2
terminado==0.17.1
tinycss2==1.2.1
tomli==2.0.1
tornado==6.2
traitlets==5.8.1
urllib3==1.26.14
voila==0.4.0
wcwidth==0.2.5
webencodings==0.5.1
websocket-client==1.4.2
websockets==10.4
widgetsnbextension==3.5.2
zipp==3.11.0

@ntolley
Copy link
Contributor Author

ntolley commented Jan 15, 2023

Update: I was wrong! voila was actually the culprit.

Downgrading to voila==0.3.6 fixes the issue. Unfortunately this means that we need to pin both ipywidgets and voila to be less than the latest versions for the GUI to work with a PyPI release

@ntolley
Copy link
Contributor Author

ntolley commented Jan 15, 2023

Relevant discussion of the issue:

voila-dashboards/voila#1271

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

Successfully merging a pull request may close this issue.

3 participants