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

"500 : Internal Server Error" response while opening any notebook #3629

Closed
hmunnin opened this issue May 20, 2018 · 38 comments · Fixed by #6286
Closed

"500 : Internal Server Error" response while opening any notebook #3629

hmunnin opened this issue May 20, 2018 · 38 comments · Fixed by #6286

Comments

@hmunnin
Copy link

hmunnin commented May 20, 2018

[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"
    }

@hmunnin
Copy link
Author

hmunnin commented May 21, 2018

Fixed via python3.4 modules wipe.
Probably error occurred because some libraries was not deleted completely

@hmunnin hmunnin closed this as completed May 21, 2018
@jarascript
Copy link

jarascript commented May 27, 2018

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)

HTTPServerRequest(protocol='http', host='localhost:9000', method='GET', uri='/notebooks/Untitled1.ipynb?kernel_name=python3', version='HTTP/1.1', remote_ip='172.17.0.1')
Traceback (most recent call last):

  File "/opt/conda/lib/python3.5/site-packages/tornado/web.py", line 1541, in _execute
    result = method(*self.path_args, **self.path_kwargs)

  File "/opt/conda/lib/python3.5/site-packages/tornado/web.py", line 2949, in wrapper
    return method(self, *args, **kwargs)

  File "/opt/conda/lib/python3.5/site-packages/notebook/notebook/handlers.py", line 59, in get
    get_custom_frontend_exporters=get_custom_frontend_exporters

  File "/opt/conda/lib/python3.5/site-packages/notebook/base/handlers.py", line 424, in render_template
    return template.render(**ns)

  File "/opt/conda/lib/python3.5/site-packages/jinja2/environment.py", line 1008, in render
    return self.environment.handle_exception(exc_info, True)

  File "/opt/conda/lib/python3.5/site-packages/jinja2/environment.py", line 780, in handle_exception
    reraise(exc_type, exc_value, tb)

  File "/opt/conda/lib/python3.5/site-packages/jinja2/_compat.py", line 37, in reraise
    raise value.with_traceback(tb)

  File "/opt/conda/lib/python3.5/site-packages/notebook/templates/notebook.html", line 1, in top-level template code
    {% extends "page.html" %}

  File "/opt/conda/lib/python3.5/site-packages/notebook/templates/page.html", line 154, in top-level template code
    {% block header %}
  File "/opt/conda/lib/python3.5/site-packages/notebook/templates/notebook.html", line 117, in block "header"
    {% for exporter in get_custom_frontend_exporters() %}

  File "/opt/conda/lib/python3.5/site-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 16:28:19.589 NotebookApp] {
"Accept-Language": "es-ES,es;q=0.9,en;q=0.8",

  "Referer": "http://localhost:9000/tree",

  "Connection": "keep-alive",

  "Upgrade-Insecure-Requests": "1",

  "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
  "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36",

  "Accept-Encoding": "gzip, deflate, br",

  "Host": "localhost:9000",

  "Cookie": "_xsrf=2|30dc6bc1|925f04f0c8e226ab5e57b1903bb65cda|1527375677"
}`

[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

@gaulinmp
Copy link

If it helps, I just got this error, and restarting jupyter lab fixed it. I suspect it was from running conda update while jupyter was running.

@minrk minrk added this to the Reference milestone Jun 15, 2018
@matthijskooijman
Copy link

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?

@jarascript
Copy link

I checked this issue matplotlib/ipympl#9 and it worked for me

@JiaLeXian
Copy link

I had the same problem with 500 error on amazon EC2 with Safari. Problem solved with openning with Chrome.

@sbamin
Copy link

sbamin commented Feb 15, 2019

I ran into similar error but due to a broken symlink (or inaccessible directory) under / location. Since this was on shared linux box, I could not fix that symlink (meant for other groups). So, I changed base directory under which I run jupyter to be home/foo, and then error disappeared. I could then set symlinks to upstream paths from my home directory and access those contents from jupyter session. Doubt if that is a right way for a server (?tornado) to allow traversing upstream of base path, /home/foo even if I've access to those contents.

      File "/anaconda/lib/python3.6/site-packages/notebook/services/contents/filemanager.py", line 337, in _dir_model
        if self.should_list(name) and not is_file_hidden(os_path, stat_res=st):
      File "/anaconda/lib/python3.6/site-packages/notebook/utils.py", line 146, in is_file_hidden_posix
        stat_res = os.stat(abs_path)
    PermissionError: [Errno 13] Permission denied: '/Sequence_pool'

@Ata1362
Copy link

Ata1362 commented Feb 27, 2019

There are many complicated factors that may cause this that experts have mentioned them already. BUT there are some silly matters that may casue this problem as well.
Please disable your AnitVirus or any protecting application you have then try to run Notebook again.
GL

@CicoZhang
Copy link

I am also suffering from this issue now. The Jupyter is running on a server and I am opening it from my browser.

@edumorlom
Copy link

I am also seeing this issue after updating all of my packages using conda on 3.6.8.


[E 16:47:19.988 NotebookApp] Uncaught exception GET /notebooks/DBFS%20normalizer.ipynb (::1)
    HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/notebooks/DBFS%20normalizer.ipynb', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "/usr/local/anaconda3/lib/python3.6/site-packages/tornado/web.py", line 1697, in _execute
        result = method(*self.path_args, **self.path_kwargs)
      File "/usr/local/anaconda3/lib/python3.6/site-packages/tornado/web.py", line 3174, in wrapper
        return method(self, *args, **kwargs)
      File "/usr/local/anaconda3/lib/python3.6/site-packages/notebook/notebook/handlers.py", line 59, in get
        get_custom_frontend_exporters=get_custom_frontend_exporters
      File "/usr/local/anaconda3/lib/python3.6/site-packages/notebook/base/handlers.py", line 519, in render_template
        return template.render(**ns)
      File "/usr/local/anaconda3/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render
        return original_render(self, *args, **kwargs)
      File "/usr/local/anaconda3/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render
        return self.environment.handle_exception(exc_info, True)
      File "/usr/local/anaconda3/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception
        reraise(exc_type, exc_value, tb)
      File "/usr/local/anaconda3/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise
        raise value.with_traceback(tb)
      File "/usr/local/anaconda3/lib/python3.6/site-packages/notebook/templates/notebook.html", line 1, in top-level template code
        {% extends "page.html" %}
      File "/usr/local/anaconda3/lib/python3.6/site-packages/notebook/templates/page.html", line 154, in top-level template code
        {% block header %}
      File "/usr/local/anaconda3/lib/python3.6/site-packages/notebook/templates/notebook.html", line 120, in block "header"
        {% for exporter in get_custom_frontend_exporters() %}
      File "/usr/local/anaconda3/lib/python3.6/site-packages/notebook/notebook/handlers.py", line 19, in get_custom_frontend_exporters
        from nbconvert.exporters.base import get_export_names, get_exporter
      File "/usr/local/anaconda3/lib/python3.6/site-packages/nbconvert/__init__.py", line 7, in <module>
        from . import postprocessors
      File "/usr/local/anaconda3/lib/python3.6/site-packages/nbconvert/postprocessors/__init__.py", line 5, in <module>
        from .serve import ServePostProcessor
      File "/usr/local/anaconda3/lib/python3.6/site-packages/nbconvert/postprocessors/serve.py", line 19, in <module>
        class ProxyHandler(web.RequestHandler):
      File "/usr/local/anaconda3/lib/python3.6/site-packages/nbconvert/postprocessors/serve.py", line 21, in ProxyHandler
        @web.asynchronous
    AttributeError: module 'tornado.web' has no attribute 'asynchronous'
[E 16:47:20.009 NotebookApp] {
      "Host": "localhost:8888",
      "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:67.0) Gecko/20100101 Firefox/67.0",
      "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
      "Accept-Language": "en-US,en;q=0.5",
      "Accept-Encoding": "gzip, deflate",
      "Dnt": "1",
      "Connection": "keep-alive",
      "Referer": "http://localhost:8888/tree",
      "Cookie": "username-localhost-8888=\"2|1:0|10:1552510035|23:username-localhost-8888|44:ZTc2ZjZkZThhNzQzNGZjYmFiMTM1ZGUwODJlMDUxN2U=|675c06a5a24d0422d49d4b17e663cca3d470c3ebd30b58baafd8b5c3ae911697\"; _xsrf=2|de519812|8b1fc2de081e5924cd80858bdbb46db2|1551662662",
      "Upgrade-Insecure-Requests": "1"
    }
[E 16:47:20.010 NotebookApp] 500 GET /notebooks/DBFS%20normalizer.ipynb (::1) 236.74ms referer=http://localhost:8888/tree


@lovettchris
Copy link

This fixed it for me:

pip install nbconvert==5.4.1

@nuistzhou
Copy link

This fixed it for me:

pip install nbconvert==5.4.1

This is the right way to go for me, solved!

@shern2
Copy link

shern2 commented May 21, 2019

I think we should use conda where possible.

conda update nbconvert

worked for me.

@Ata1362
Copy link

Ata1362 commented Jun 13, 2019

I am using Anaconda to run Jupyter notebook.
There are many sources can cause this error in my experience.
But one thing has been common for me: In one specific enviroment, I have not received any error but same time I get 500 ERROR by switching to another Environment.
What is different in these environments? " INSTALLED LIBs"
So try to install not many libs and step by step move on and add new libs to your environment and check the notebook then you will find what is the problem.
GL

@AhmedHany1987
Copy link

I think we should use conda where possible.

conda update nbconvert

worked for me.

This worked for me too and solved the issue

@RebolloM
Copy link

RebolloM commented Jul 8, 2019

conda update conda fixed it for me

@soohyun525
Copy link

it fixed for me.

pip install nbconvert==5.4.1

@fllsuv
Copy link

fllsuv commented Sep 28, 2019

conda update nbconvert fixed for me!

@MariamKA
Copy link

This fixed it for me:

pip install nbconvert==5.4.1

YAY! works!!!

@MHphysicist
Copy link

MHphysicist commented May 1, 2020

Worked for me too
conda update nbconvert

@Rishabh-gupta6
Copy link

Rishabh-gupta6 commented Jul 2, 2020

PLEASE HELP!!!
I tried each and every possible suggestions... but nothing worked!!!

ON BROWSER - 500 : Internal Server Error

ON TERMINAL - (as follows)

[E 19:13:55.998 NotebookApp] Uncaught exception GET /notebooks/Desktop/IBM%20DS/C6/w1/DA0101EN-Review-Introduction.ipynb (::1)
HTTPServerRequest(protocol='http', host='localhost:8889', method='GET', uri='/notebooks/Desktop/IBM%20DS/C6/w1/DA0101EN-Review-Introduction.ipynb', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "c:\users\saurabh bro\appdata\local\programs\python\python38-32\lib\site-packages\tornado\web.py", line 1703, in execute
result = await result
File "c:\users\saurabh bro\appdata\local\programs\python\python38-32\lib\site-packages\tornado\gen.py", line 748, in run
yielded = self.gen.send(value)
File "c:\users\saurabh bro\appdata\local\programs\python\python38-32\lib\site-packages\notebook\notebook\handlers.py", line 95, in get
self.write(self.render_template('notebook.html',
File "c:\users\saurabh bro\appdata\local\programs\python\python38-32\lib\site-packages\notebook\base\handlers.py", line 507, in render_template
return template.render(**ns)
File "c:\users\saurabh bro\appdata\local\programs\python\python38-32\lib\site-packages\jinja2\environment.py", line 1090, in render
self.environment.handle_exception()
File "c:\users\saurabh bro\appdata\local\programs\python\python38-32\lib\site-packages\jinja2\environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "c:\users\saurabh bro\appdata\local\programs\python\python38-32\lib\site-packages\jinja2_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "c:\users\saurabh bro\appdata\local\programs\python\python38-32\lib\site-packages\notebook\templates\notebook.html", line 1, in top-level template code
{% extends "page.html" %}
File "c:\users\saurabh bro\appdata\local\programs\python\python38-32\lib\site-packages\notebook\templates\page.html", line 154, in top-level template code
{% block header %}
File "c:\users\saurabh bro\appdata\local\programs\python\python38-32\lib\site-packages\notebook\templates\notebook.html", line 114, in block "header"
{% for exporter in get_frontend_exporters() %}
File "c:\users\saurabh bro\appdata\local\programs\python\python38-32\lib\site-packages\notebook\notebook\handlers.py", line 23, in get_frontend_exporters
from nbconvert.exporters.base import get_export_names, get_exporter
File "c:\users\saurabh bro\appdata\local\programs\python\python38-32\lib\site-packages\nbconvert_init
.py", line 4, in
from .exporters import *
File "c:\users\saurabh bro\appdata\local\programs\python\python38-32\lib\site-packages\nbconvert\exporters_init_.py", line 6, in
from .latex import LatexExporter
File "c:\users\saurabh bro\appdata\local\programs\python\python38-32\lib\site-packages\nbconvert\exporters\latex.py", line 13, in
from nbconvert.filters.filter_links import resolve_references
File "c:\users\saurabh bro\appdata\local\programs\python\python38-32\lib\site-packages\nbconvert\filters\filter_links.py", line 7, in
from pandocfilters import RawInline, applyJSONFilters
ModuleNotFoundError: No module named 'pandocfilters'
[E 19:13:56.016 NotebookApp] {
"Host": "localhost:8889",
"Connection": "keep-alive",
"Upgrade-Insecure-Requests": "1",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9",
"Sec-Fetch-Site": "same-origin",
"Sec-Fetch-Mode": "navigate",
"Sec-Fetch-User": "?1",
"Sec-Fetch-Dest": "document",
"Referer": "http://localhost:8889/tree/Desktop/IBM%20DS/C6/w1",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "en-IN,en-GB;q=0.9,en-US;q=0.8,en;q=0.7",
"Cookie": "_xsrf=2|5e109279|0aae716fd16eaf00f0e13c942d22b048|1593452570; username-localhost-8888="2|1:0|10:1593697200|23:username-localhost-8888|44:YmI3YzQxOWJiZjhkNDc2NmI2NGZjMDJkZTA4NDllYWU=|cbf9932018c09ecf39cbd0fbef0a6022805d5bfbb754966085f8c45b2567d29a"; username-localhost-8889="2|1:0|10:1593697428|23:username-localhost-8889|44:NTYwYmU2N2ZiZTk2NDhmNmEyYTRhNzMxOTZkZTNkY2M=|529d07b0707e38886547ba08c010a7bc94bc5b3d4fef1d0e0831fab30909a221""
}
[E 19:13:56.017 NotebookApp] 500 GET /notebooks/Desktop/IBM%20DS/C6/w1/DA0101EN-Review-Introduction.ipynb (::1) 190.00ms referer=http://localhost:8889/tree/Desktop/IBM%20DS/C6/w1

@kevin-bates
Copy link
Member

For whatever reason, it looks like you don't have the pandocfilters package - even though nbconvert has an explicit dependency on it. Try pip install pandocfilters.

@Rishabh-gupta6
Copy link

Rishabh-gupta6 commented Jul 3, 2020

For whatever reason, it looks like you don't have the pandocfilters package - even though nbconvert has an explicit dependency on it. Try pip install pandocfilters.

Sir, Thank you for your reply!

but situation is still same...

PS C:\Users\SAURABH BRO> pip install pandocfilters
Requirement already satisfied: pandocfilters in c:\users\saurabh bro\appdata\local\programs\python\python38-32\lib\site-packages (1.4.2)

@lovettchris
Copy link

lovettchris commented Jul 3, 2020

Apparently there is now a new step you have to do to register the nbextensions, does this help?

python -m ipykernel install --user --name=<your_env_name>
jupyter nbextension enable --py --sys-prefix widgetsnbextension

@Rishabh-gupta6
Copy link

Apparently there is now a new step you have to do to register the nbextensions, does this help?

python -m ipykernel install --user --name=<your_env_name>
jupyter nbextension enable --py --sys-prefix widgetsnbextension

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

@Muskan-creator
Copy link

image
C:\Users\ASUS>jupyter notebook
[W 17:22:17.778 NotebookApp] Terminals not available (error was cannot import name 'PtyProcess' from 'winpty' (unknown location))
[I 17:22:17.794 NotebookApp] Loading IPython parallel extension
[I 17:22:17.794 NotebookApp] Serving notebooks from local directory: C:\Users\ASUS
[I 17:22:17.794 NotebookApp] Jupyter Notebook 6.1.3 is running at:
[I 17:22:17.794 NotebookApp] http://localhost:8888/?token=0f1c695284aec9c7c6d3304fb4834c67a6150e14d20480d8
[I 17:22:17.794 NotebookApp] or http://127.0.0.1:8888/?token=0f1c695284aec9c7c6d3304fb4834c67a6150e14d20480d8
[I 17:22:17.794 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 17:22:17.856 NotebookApp]

To access the notebook, open this file in a browser:
    file:///C:/Users/ASUS/AppData/Roaming/jupyter/runtime/nbserver-16916-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/?token=0f1c695284aec9c7c6d3304fb4834c67a6150e14d20480d8
 or http://127.0.0.1:8888/?token=0f1c695284aec9c7c6d3304fb4834c67a6150e14d20480d8

[I 17:22:32.503 NotebookApp] Creating new notebook in
[E 17:22:32.763 NotebookApp] Uncaught exception GET /notebooks/Untitled26.ipynb?kernel_name=python3 (::1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/notebooks/Untitled26.ipynb?kernel_name=python3', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "c:\users\asus\appdata\local\programs\python\python38-32\lib\site-packages\tornado\web.py", line 1703, in execute
result = await result
File "c:\users\asus\appdata\local\programs\python\python38-32\lib\site-packages\tornado\gen.py", line 748, in run
yielded = self.gen.send(value)
File "c:\users\asus\appdata\local\programs\python\python38-32\lib\site-packages\notebook\notebook\handlers.py", line 95, in get
self.write(self.render_template('notebook.html',
File "c:\users\asus\appdata\local\programs\python\python38-32\lib\site-packages\notebook\base\handlers.py", line 512, in render_template
return template.render(**ns)
File "c:\users\asus\appdata\local\programs\python\python38-32\lib\site-packages\jinja2\environment.py", line 1090, in render
self.environment.handle_exception()
File "c:\users\asus\appdata\local\programs\python\python38-32\lib\site-packages\jinja2\environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "c:\users\asus\appdata\local\programs\python\python38-32\lib\site-packages\jinja2_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "c:\users\asus\appdata\local\programs\python\python38-32\lib\site-packages\notebook\templates\notebook.html", line 1, in top-level template code
{% extends "page.html" %}
File "c:\users\asus\appdata\local\programs\python\python38-32\lib\site-packages\notebook\templates\page.html", line 154, in top-level template code
{% block header %}
File "c:\users\asus\appdata\local\programs\python\python38-32\lib\site-packages\notebook\templates\notebook.html", line 115, in block "header"
{% for exporter in get_frontend_exporters() %}
File "c:\users\asus\appdata\local\programs\python\python38-32\lib\site-packages\notebook\notebook\handlers.py", line 23, in get_frontend_exporters
from nbconvert.exporters.base import get_export_names, get_exporter
File "C:\Users\ASUS\AppData\Roaming\Python\Python38\site-packages\nbconvert_init
.py", line 4, in
from .exporters import *
File "C:\Users\ASUS\AppData\Roaming\Python\Python38\site-packages\nbconvert\exporters_init_.py", line 6, in
from .latex import LatexExporter
File "C:\Users\ASUS\AppData\Roaming\Python\Python38\site-packages\nbconvert\exporters\latex.py", line 13, in
from nbconvert.filters.filter_links import resolve_references
File "C:\Users\ASUS\AppData\Roaming\Python\Python38\site-packages\nbconvert\filters\filter_links.py", line 7, in
from pandocfilters import RawInline, applyJSONFilters, stringify
ModuleNotFoundError: No module named 'pandocfilters'
[E 17:22:32.787 NotebookApp] {
"Host": "localhost:8888",
"Connection": "keep-alive",
"Upgrade-Insecure-Requests": "1",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9",
"Sec-Fetch-Site": "same-origin",
"Sec-Fetch-Mode": "navigate",
"Sec-Fetch-Dest": "document",
"Referer": "http://localhost:8888/tree",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "en-GB,en-US;q=0.9,en;q=0.8",
"Cookie": "_xsrf=2|1e7fee18|750e1c2da8a011a90a08a5f05f48107a|1597662801; username-localhost-8889="2|1:0|10:1599023781|23:username-localhost-8889|44:MjMwNDQ2YWYxOGViNDBkNWJkZTQxOGYyOGQyMzEyZDQ=|71348605b7521f6a4cdafe64fb80f0b212dc9b46cfdae05ea935a87281fd5a03"; username-localhost-8888="2|1:0|10:1600084339|23:username-localhost-8888|44:NDViM2EzNmM4ZTQwNDZjMGJmOTY3YThiYTU2ZWMyZWI=|2311e5d0a1e9c52dddb0698001f701da0e65128da8451d531209129fb5ade545""
}
[E 17:22:32.787 NotebookApp] 500 GET /notebooks/Untitled26.ipynb?kernel_name=python3 (::1) 224.63ms referer=http://localhost:8888/tree
Please anyone resolve this issue .I have tried everything but nothing works

@lovettchris
Copy link

> ModuleNotFoundError: No module named 'pandocfilters'

Try creating clean python environment. I just created a new anaconda environment for python 3.6 on windows 10 using anaconda, added "pip install jupyter" and it works fine, and "jupyter notebook" works fine.

@nidhimakdani
Copy link

This fixed it for me:

pip install nbconvert==5.4.1

@hieuxuanta
Copy link

This fixed it for me:

pip install nbconvert==5.4.1

When I try this, I can open .ipynb but when I run my project, The system said "The kernel is starting..." and I can not run the project. Could you guys give me a solution? Thanks!

@Ata1362
Copy link

Ata1362 commented Oct 8, 2020 via email

@vovkapultik
Copy link

Try to start it with sudo jupyter notebook --allow-root

@MingqiangNing
Copy link

This fixed it for me:

pip install nbconvert==5.4.1

it fixed for me too, thx!!~

@abdulsalam-bande
Copy link

This fixed it for me:

pip install nbconvert==5.4.1

This work for me. Thank you

@risanixm
Copy link

This fixed it for me:

pip install nbconvert==5.4.1

This worked for me too! Solved.

@caticoa3
Copy link

caticoa3 commented May 3, 2021

downgrading to 5.4.1 also fixes exporting to html_toc!

@dudesparsh
Copy link

This fixed it for me:

pip install nbconvert==5.4.1

Worked for me too !!

@KooroshTorabi
Copy link

this worked for me, This fixed it :
pip list | grep -i "jupyter-contrib-nbextensions"

@xia0nan
Copy link

xia0nan commented Nov 12, 2021

pip install nbconvert==5.4.1
Worked for me.
Actually, I downgraded from 6.0.7 to 5.4.1

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.