After updating aiida to version 2.0.1, and migrating my profiles, I cannot use jupyter notebook anymore, whereas the 'verdi shell' seems to work normally and everything appears normal when I type 'verdi status'
[I 14:36:22.557 NotebookApp] Serving notebooks from local directory: <LOCAL_DIR>
[I 14:36:22.557 NotebookApp] Jupyter Notebook 6.4.0 is running at:
[I 14:36:22.557 NotebookApp]
http://localhost:8888/?token=54808fd50a18c4c7f8dab3eb09abbc9548d47e1ad706bd01[I 14:36:22.557 NotebookApp] or
http://127.0.0.1:8888/?token=54808fd50a18c4c7f8dab3eb09abbc9548d47e1ad706bd01[I 14:36:22.557 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 14:36:22.739 NotebookApp]
To access the notebook, open this file in a browser:
file:///home/cadarp02/.local/share/jupyter/runtime/nbserver-1522264-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=54808fd50a18c4c7f8dab3eb09abbc9548d47e1ad706bd01 or
http://127.0.0.1:8888/?token=54808fd50a18c4c7f8dab3eb09abbc9548d47e1ad706bd01[E 14:36:32.385 NotebookApp] Uncaught exception GET <NOTEBOOK_FILE> (127.0.0.1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='
<NOTEBOOK_FILE>
', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "/usr/local/miniconda/envs/aiida/lib/python3.8/site-packages/tornado/web.py", line 1704, in _execute
result = await result
File "/usr/local/miniconda/envs/aiida/lib/python3.8/site-packages/tornado/gen.py", line 775, in run
yielded = self.gen.send(value)
File "/usr/local/miniconda/envs/aiida/lib/python3.8/site-packages/notebook/notebook/handlers.py", line 95, in get
self.write(self.render_template('notebook.html',
File "/usr/local/miniconda/envs/aiida/lib/python3.8/site-packages/notebook/base/handlers.py", line 516, in render_template
return template.render(**ns)
File "/usr/local/miniconda/envs/aiida/lib/python3.8/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/usr/local/miniconda/envs/aiida/lib/python3.8/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/usr/local/miniconda/envs/aiida/lib/python3.8/site-packages/notebook/templates/notebook.html", line 1, in top-level template code
{% extends "page.html" %}
File "/usr/local/miniconda/envs/aiida/lib/python3.8/site-packages/notebook/templates/page.html", line 154, in top-level template code
{% block header %}
File "/usr/local/miniconda/envs/aiida/lib/python3.8/site-packages/notebook/templates/notebook.html", line 115, in block 'header'
{% for exporter in get_frontend_exporters() %}
File "/usr/local/miniconda/envs/aiida/lib/python3.8/site-packages/notebook/notebook/handlers.py", line 23, in get_frontend_exporters
from nbconvert.exporters.base import get_export_names, get_exporter
File "/usr/local/miniconda/envs/aiida/lib/python3.8/site-packages/nbconvert/__init__.py", line 4, in <module>
from .exporters import *
File "/usr/local/miniconda/envs/aiida/lib/python3.8/site-packages/nbconvert/exporters/__init__.py", line 3, in <module>
from .html import HTMLExporter
File "/usr/local/miniconda/envs/aiida/lib/python3.8/site-packages/nbconvert/exporters/html.py", line 14, in <module>
from jinja2 import contextfilter
ImportError: cannot import name 'contextfilter' from 'jinja2' (/usr/local/miniconda/envs/aiida/lib/python3.8/site-packages/jinja2/__init__.py)
[E 14:36:32.389 NotebookApp] {
"Host": "localhost:8888",
"Connection": "keep-alive",
"Sec-Ch-Ua": "\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"101\", \"Google Chrome\";v=\"101\"",
"Sec-Ch-Ua-Mobile": "?0",
"Sec-Ch-Ua-Platform": "\"Linux\"",
"Upgrade-Insecure-Requests": "1",
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 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-User": "?1",
"Sec-Fetch-Dest": "document",
"Referer": "
http://localhost:8888/tree",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "en-US,en;q=0.9",
"Cookie": "_xsrf=2|494f2c8b|caf7de9f2c780990d3ff311f096eabbe|1650878910; username-localhost-8889=\"2|1:0|10:1653297195|23:username-localhost-8889|44:NjIyZGUzMjBmZmIzNDVmMGE0NThmYTc1ZDY3NTFjNzU=|9763872e62e9ad84b37b1b99ffa7dc4b3504c574b3458a4156932fa76067a0bd\"; username-localhost-8888=\"2|1:0|10:1653309384|23:username-localhost-8888|44:NzVkNzk4YjczMTczNGM5MzgxZmE3NmYwNDg2ZGI1MWE=|4bb1230ac88fa0647e438c04c1664373a9d6cefdb813c326601d9d320bbbf938\""
}
[E 14:36:32.389 NotebookApp] 500 GET
<NOTEBOOK_FILE>
(127.0.0.1) 33.020000ms referer=
http://localhost:8888/treeCan you please help me figure out what is wrong ?
Thank you veru much.
Best regards.
Sylvian.