Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

jupyter-flex uncaught exception #78

Closed
tpaixao opened this issue Apr 15, 2021 · 7 comments
Closed

jupyter-flex uncaught exception #78

tpaixao opened this issue Apr 15, 2021 · 7 comments

Comments

@tpaixao
Copy link

tpaixao commented Apr 15, 2021

Jupyter-flex works great on windows, but when I try to deploy it in a linux server (using voila) I get the following error on the console and the application stays on the "loading widget" spinner forever.

Uncaught (in promise) TypeError: Cannot read property 'kernelChanged' of undefined
    at new so (voila.js:455)
    at new Ys (voila.js:469)
    at index.js:90

looking at the network tab of DevTools indicates that everything is loading fine. The dashboard loads fine using the lab template. Perhaps some race condition when loading stuff?

Could really use some help on this!

here's my environment:

anyio==2.2.0
argon2-cffi==20.1.0
async-generator==1.10
attrs==20.3.0
backcall==0.2.0
bleach==3.3.0
cffi==1.14.5
cycler==0.10.0
decorator==5.0.7
defusedxml==0.7.1
entrypoints==0.3
idna==3.1
ipykernel==5.5.3
ipysheet==0.4.4
ipython==7.22.0
ipython-genutils==0.2.0
ipywidgets==7.6.3
jedi==0.18.0
Jinja2==2.11.3
jsonschema==3.2.0
jupyter-client==6.1.12
jupyter-core==4.7.1
jupyter-flex==0.6.4
jupyter-server==1.6.1
jupyterlab-pygments==0.1.2
jupyterlab-widgets==1.0.0
kiwisolver==1.3.1
MarkupSafe==1.1.1
matplotlib==3.4.1
mistune==0.8.4
nbclient==0.5.3
nbconvert==6.0.7
nbformat==5.1.3
nest-asyncio==1.5.1
notebook==6.3.0
numpy==1.20.2
packaging==20.9
pandas==1.2.4
pandocfilters==1.4.3
parso==0.8.2
patsy==0.5.1
pexpect==4.8.0
pickleshare==0.7.5
Pillow==8.2.0
prometheus-client==0.10.1
prompt-toolkit==3.0.18
ptyprocess==0.7.0
pycparser==2.20
Pygments==2.8.1
pyparsing==2.4.7
pyrsistent==0.17.3
python-dateutil==2.8.1
pytz==2021.1
pyzmq==22.0.3
scipy==1.6.2
seaborn==0.11.1
Send2Trash==1.5.0
six==1.15.0
sniffio==1.2.0
statsmodels==0.12.2
terminado==0.9.4
testpath==0.4.4
tornado==6.1
traitlets==5.0.5
voila==0.2.9
voila-gridstack==0.2.0
wcwidth==0.2.5
webencodings==0.5.1
widgetsnbextension==3.5.1

@tpaixao
Copy link
Author

tpaixao commented Apr 15, 2021

an extra comment: the original error seems to come from jupyter-flex-embed.js. The entry in the console briefly flags this file, before changing to index.js .

   at new so (:8866/voila/static/voila.js:455)
    at new Ys (:8866/voila/static/voila.js:469)
    at jupyter-flex-embed.js:972

@tpaixao tpaixao changed the title jupyter-flex uncaught exception when deploying jupyter-flex uncaught exception Apr 15, 2021
@danielfrg
Copy link
Owner

It's good to know it works on windows as we dont do that much testing there :D

Is it possible for you to generate a minimal notebook (as few cells and deps that makes the error happen) that I can use to reproduce the issue?

@tpaixao
Copy link
Author

tpaixao commented Apr 15, 2021

Thanks for taking a look (and obviously for developing this - it's great!)! I have been using the one on the documentation. Attached, together with a requirements.txt that you can use to reproduce the environment.

test.zip

@tpaixao
Copy link
Author

tpaixao commented Apr 16, 2021

so.... today it suddenly started working. not sure what happened, and sorry for the trouble. I will close it now.

@eraldop
Copy link

eraldop commented Apr 26, 2021

@tpaixao did you notice what changed in your configuration that fixed the issue? I'm on macos but I'm experiencing your same issue.

@tpaixao
Copy link
Author

tpaixao commented Apr 26, 2021 via email

@tsdev
Copy link

tsdev commented Apr 28, 2021

I also had some issues for a few days on our hosted Jupyter server running Linux. I would try out the patch merged 2 days ago, but I don't see it showing up on PyPi.

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

No branches or pull requests

4 participants