[E 17:15:32.052 NotebookApp] Uncaught exception GET /notebooks/ML/Mod.ipynb (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/notebooks/ML/Mod.ipynb', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/tornado/web.py", line 1541, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/usr/local/lib/python3.4/dist-packages/tornado/web.py", line 2949, in wrapper
return method(self, *args, **kwargs)
File "/usr/local/lib/python3.4/dist-packages/notebook/notebook/handlers.py", line 59, in get
get_custom_frontend_exporters=get_custom_frontend_exporters
File "/usr/local/lib/python3.4/dist-packages/notebook/base/handlers.py", line 424, in render_template
return template.render(**ns)
File "/usr/local/lib/python3.4/dist-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/usr/local/lib/python3.4/dist-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.4/dist-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.4/dist-packages/notebook/templates/notebook.html", line 1, in top-level template code
{% extends "page.html" %}
File "/usr/local/lib/python3.4/dist-packages/notebook/templates/page.html", line 154, in top-level template code
{% block header %}
File "/usr/local/lib/python3.4/dist-packages/notebook/templates/notebook.html", line 117, in block "header"
{% for exporter in get_custom_frontend_exporters() %}
File "/usr/local/lib/python3.4/dist-packages/notebook/notebook/handlers.py", line 19, in get_custom_frontend_exporters
from nbconvert.exporters.base import get_export_names, get_exporter
ImportError: No module named 'nbconvert.exporters.base'
[E 17:15:32.058 NotebookApp] {
"Cookie": "jenkins-timestamper-offset=-7200000; portainer.pagination_images=100; _xsrf=2|e14b81f3|51d2a266d38d404e570607fb51489a3e|1525957823; username-localhost-8888=\"2|1:0|10:1526829321|23:username-localhost-8888|44:NTQ2ZDBjNjA2ZDU1NDEyMTkzZDk3YWMyMmU4OTExNzg=|8a7e992430c91807f0d902a01fbe79755623840da06cc2f650d8515f6edf8d91\"",
"Upgrade-Insecure-Requests": "1",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"Accept-Encoding": "gzip, deflate",
"Host": "localhost:8888",
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0",
"Referer": "http://localhost:8888/tree/ML",
"Connection": "keep-alive",
"Accept-Language": "en-US,en;q=0.5"
}
I also ran into this issue, which turned out to be caused by having older version of nbconvert (4.2.0) with a newer version of notebook (5.5.0). I originally had notebook and nbconvert installed through Debian packages, but then (accidentally, or indirectly through another dependency, I suppose) installed a newer version of notebook. Since the dependency declared by notebook is only
nbconvert
, without any version constraints, pip did not install a newer version of nbconvert too.For me the fix was to upgrade the nbconvert package manually:
pip3 install --upgrade --user nbconvert
Perhaps the real bug here is that the nbconvert dependency is not versioned, though I’m not sure what conventions pip/pypy uses for that?
This fixed it for me:
it fixed for me.
pip install nbconvert==5.4.1
I think we should use
conda
where possible.worked for me.
If it helps, I just got this error, and restarting
jupyter lab
fixed it. I suspect it was from runningconda update
while jupyter was running.This is the right way to go for me, solved!
This worked for me too and solved the issue
I am also suffering from this issue now. The Jupyter is running on a server and I am opening it from my browser.
Hey @dmitrykdev , what did you do exactly? I have the same error
[E 16:28:19.573 NotebookApp] Uncaught exception GET /notebooks/Untitled1.ipynb?kernel_name=python3 (172.17.0.1)
`
`[E 16:28:19.589 NotebookApp] { “Accept-Language”: “es-ES,es;q=0.9,en;q=0.8”,
[E 16:28:19.591 NotebookApp] 500 GET /notebooks/Untitled1.ipynb?kernel_name=python3 (172.17.0.1) 21.65ms referer=http://localhost:9000/tree
Fixed via python3.4 modules wipe. Probably error occurred because some libraries was not deleted completely
Try to start it with sudo jupyter notebook --allow-root
Dear Sirs(lovettchris & kevin-bates) ,
I respect and appreciate your replies but just a moment before I install the anaconda and my problem finally ended.
Thank you to both of you for your precious time and help full replies.
Best Regards,
Rishabh Gupta
Apparently there is now a new step you have to do to register the nbextensions, does this help?
I am also seeing this issue after updating all of my packages using conda on 3.6.8.