riogroup / SORA

MIT License
15 stars 12 forks source link

jupyter notebook fails #86

Open massafin opened 1 year ago

massafin commented 1 year ago

jupyter notebook


| | | |_ | | | | __ | || | ' \/ / _ | / -) _/| ./_,_,|_\| |_|

Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions.

https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html

Please note that updating to Notebook 7 might break some of your extensions.

[W 23:33:28.793 NotebookApp] Error loading server extension jupyterlab Traceback (most recent call last): File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/requests/compat.py", line 11, in import chardet ModuleNotFoundError: No module named 'chardet'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/notebook/notebookapp.py", line 2047, in init_server_extensions
    mod = importlib.import_module(modulename)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/jupyterlab/__init__.py", line 7, in <module>
    from .handlers.announcements import (  # noqa
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/jupyterlab/handlers/announcements.py", line 15, in <module>
    from jupyterlab_server.translation_utils import translator
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/jupyterlab_server/__init__.py", line 5, in <module>
    from .app import LabServerApp
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/jupyterlab_server/app.py", line 10, in <module>
    from .handlers import LabConfig, add_handlers
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/jupyterlab_server/handlers.py", line 18, in <module>
    from .listings_handler import ListingsHandler, fetch_listings
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/jupyterlab_server/listings_handler.py", line 8, in <module>
    import requests
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/requests/__init__.py", line 45, in <module>
    from .exceptions import RequestsDependencyWarning
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/requests/exceptions.py", line 9, in <module>
    from .compat import JSONDecodeError as CompatJSONDecodeError
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/requests/compat.py", line 13, in <module>
    import charset_normalizer as chardet
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/charset_normalizer/__init__.py", line 23, in <module>
    from charset_normalizer.api import from_fp, from_path, from_bytes, normalize
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/charset_normalizer/api.py", line 10, in <module>
    from charset_normalizer.md import mess_ratio
  File "charset_normalizer/md.py", line 5, in <module>
    from charset_normalizer.utils import is_punctuation, is_symbol, unicode_range, is_accentuated, is_latin, \
ImportError: cannot import name 'COMMON_SAFE_ASCII_CHARACTERS' from 'charset_normalizer.constant' (/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/charset_normalizer/constant.py)

[I 23:33:28.795 NotebookApp] Serving notebooks from local directory: /home/marcelo/WORKS/03_SORA_160 [I 23:33:28.795 NotebookApp] Jupyter Notebook 6.5.4 is running at: [I 23:33:28.795 NotebookApp] http://localhost:8888/?token=78febbd5776bb7c067931578d48c950a6dc99831149154dd [I 23:33:28.795 NotebookApp] or http://127.0.0.1:8888/?token=78febbd5776bb7c067931578d48c950a6dc99831149154dd [I 23:33:28.795 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 23:33:28.815 NotebookApp]

To access the notebook, open this file in a browser:
    file:///home/marcelo/.local/share/jupyter/runtime/nbserver-46405-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/?token=78febbd5776bb7c067931578d48c950a6dc99831149154dd
 or http://127.0.0.1:8888/?token=78febbd5776bb7c067931578d48c950a6dc99831149154dd

0.00s - Debugger warning: It seems that frozen modules are being used, which may 0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off 0.00s - to python to disable frozen modules. 0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. [E 23:34:16.402 NotebookApp] Uncaught exception GET /notebooks/Teste_Shape3D.ipynb (127.0.0.1) HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/notebooks/Teste_Shape3D.ipynb', version='HTTP/1.1', remote_ip='127.0.0.1') Traceback (most recent call last): File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/bs4/dammit.py", line 28, in import cchardet as chardet_module ModuleNotFoundError: No module named 'cchardet'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/bs4/dammit.py", line 33, in <module>
    import chardet as chardet_module
ModuleNotFoundError: No module named 'chardet'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/tornado/web.py", line 1786, in _execute
    result = await result
             ^^^^^^^^^^^^
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/tornado/gen.py", line 786, in run
    yielded = self.gen.send(value)
              ^^^^^^^^^^^^^^^^^^^^
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/notebook/notebook/handlers.py", line 94, in get
    self.write(self.render_template('notebook.html',
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/notebook/base/handlers.py", line 515, in render_template
    return template.render(**ns)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/notebook/templates/notebook.html", line 1, in top-level template code
    {% extends "page.html" %}
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/notebook/templates/page.html", line 187, in top-level template code
    {% block header %}
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/notebook/templates/notebook.html", line 115, in block 'header'
    {% for exporter in get_frontend_exporters() %}
    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/notebook/notebook/handlers.py", line 23, in get_frontend_exporters
    from nbconvert.exporters.base import get_export_names, get_exporter
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/nbconvert/__init__.py", line 3, in <module>
    from . import filters, postprocessors, preprocessors, writers
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/nbconvert/filters/__init__.py", line 8, in <module>
    from .markdown import *
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/nbconvert/filters/markdown.py", line 13, in <module>
    from .markdown_mistune import markdown2html_mistune
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/nbconvert/filters/markdown_mistune.py", line 23, in <module>
    import bs4
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/bs4/__init__.py", line 37, in <module>
    from .builder import (
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/bs4/builder/__init__.py", line 9, in <module>
    from bs4.element import (
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/bs4/element.py", line 13, in <module>
    from bs4.formatter import (
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/bs4/formatter.py", line 1, in <module>
    from bs4.dammit import EntitySubstitution
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/bs4/dammit.py", line 37, in <module>
    import charset_normalizer as chardet_module
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/charset_normalizer/__init__.py", line 23, in <module>
    from charset_normalizer.api import from_fp, from_path, from_bytes, normalize
  File "/home/marcelo/anaconda3/envs/sora/lib/python3.11/site-packages/charset_normalizer/api.py", line 10, in <module>
    from charset_normalizer.md import mess_ratio
AttributeError: partially initialized module 'charset_normalizer' has no attribute 'md__mypyc' (most likely due to a circular import)

[E 23:34:16.410 NotebookApp] { "Host": "localhost:8888", "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.7", "Referer": "http://localhost:8888/tree", "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36" } [E 23:34:16.410 NotebookApp] 500 GET /notebooks/Teste_Shape3D.ipynb (127.0.0.1) 134.860000ms referer=http://localhost:8888/tree [I 23:35:23.522 NotebookApp] Shutting down on /api/shutdown request. [I 23:35:23.523 NotebookApp] Shutting down 0 kernels [I 23:35:23.523 NotebookApp] Shutting down 0 terminals (sora) marcelo@NCC1701D:~/WORKS/03_SORA_160$ (sora) marcelo@NCC1701D:~/WORKS/03_SORA_160$ jupyter notebook -Xfrozen_modules=off [W 23:35:37.605 NotebookApp] Unrecognized alias: 'Xfrozen_modules', it will have no effect. [C 23:35:37.605 NotebookApp] Bad config encountered during initialization: Error loading argument Xfrozen_modules=['off'], values whose keys begin with an uppercase char must be Config instances: 'Xfrozen_modules', DeferredConfigString('off')