Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6468

sys.excepthook AssertionError when trying to start Jupyter server

$
0
0

After having pip installed jupyter on a VM (Linux Ubuntu 22.10, Python 3.10.7), running jupyter notebook gives the error

  File "/home/username/.local/bin/jupyter-notebook", line 5, in <module>    from notebook.app import main  File "/home/username/.local/lib/python3.10/site-packages/notebook/app.py", line 17, in <module>    from jupyter_server.serverapp import flags  File "/home/username/.local/lib/python3.10/site-packages/jupyter_server/serverapp.py", line 114, in <module>    from jupyter_server.services.contents.filemanager import (  File "/home/username/.local/lib/python3.10/site-packages/jupyter_server/services/contents/filemanager.py", line 23, in <module>    from anyio.to_thread import run_sync  File "/home/username/.local/lib/python3.10/site-packages/anyio/__init__.py", line 27, in <module>    from ._core._sockets import connect_tcp as connect_tcp  File "/home/username/.local/lib/python3.10/site-packages/anyio/_core/_sockets.py", line 35, in <module>    from exceptiongroup import ExceptionGroup  File "/home/username/.local/lib/python3.10/site-packages/exceptiongroup/__init__.py", line 20, in <module>    from ._formatting import (  File "/home/username/.local/lib/python3.10/site-packages/exceptiongroup/_formatting.py", line 394, in <module>    assert sys.excepthook is apport_python_hook.apport_excepthookAssertionError

I have tried doing

sys.excepthook = sys.__excepthook__

as mentioned here but this doesn't change the output. How do I fix this?


Viewing all articles
Browse latest Browse all 6468

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>