python-notebook

Edit Package python-notebook
No description set
Refresh
Refresh
Source Files
Filename Size Changed
_multibuild 0000000053 53 Bytes
notebook-7.0.4.tar.gz 0003928907 3.75 MB
python-notebook-rpmlintrc 0000000142 142 Bytes
python-notebook.changes 0000050603 49.4 KB
python-notebook.spec 0000005862 5.72 KB
Revision 28 (latest revision is 35)
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1113305 from Benjamin Greiner's avatar Benjamin Greiner (bnavigator) (revision 28)
- Update to 7.0.4
  * Update to JupyterLab 4.0.6 #7049 (@jtpio)
  * Fix app_version #7061 (@jtpio)
  * fix trusted status indication #7036 (@adigaboy)
- Release 7.0.3
  * Require importlib_resources for testing on Python < 3.10 #7016 (@bnavigator)
  * Fix Python 3.12 compatibility #6965 (@frenzymadness)
- Drop notebook-issue7014-fixtests.patch
Comments 2

David Inostroza's avatar

Jupyter Notebook stopped working in the latest snapshot, with the following error: AttributeError: module 'mistune' has no attribute 'BlockGrammar. I'm using the latest openSUSE Tumbleweed 20220102.

I've included the full debug output:

deivid@deivid-pc:~> jupyter-notebook
[I 23:56:35.986 NotebookApp] Serving notebooks from local directory: /home/deivid
[I 23:56:35.987 NotebookApp] Jupyter Notebook 6.4.6 is running at:
[I 23:56:35.987 NotebookApp] http://localhost:8888/?token=84a9b0fc44f9c64bae59475c93f7f3fcac1dd3c7bc682954
[I 23:56:35.987 NotebookApp]  or http://127.0.0.1:8888/?token=84a9b0fc44f9c64bae59475c93f7f3fcac1dd3c7bc682954
[I 23:56:35.987 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 23:56:36.005 NotebookApp] 

    To access the notebook, open this file in a browser:
        file:///home/deivid/.local/share/jupyter/runtime/nbserver-7044-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=84a9b0fc44f9c64bae59475c93f7f3fcac1dd3c7bc682954
     or http://127.0.0.1:8888/?token=84a9b0fc44f9c64bae59475c93f7f3fcac1dd3c7bc682954
[W 23:56:37.691 NotebookApp] Error loading kernelspec 'python3'
    Traceback (most recent call last):
      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 568, in _build_master
        ws.require(__requires__)
      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 886, in require
        needed = self.resolve(parse_requirements(requirements))
      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 777, in resolve
        raise VersionConflict(dist, req).with_context(dependent_req)
    pkg_resources.ContextualVersionConflict: (Send2Trash 1.5.0 (/usr/lib/python3.8/site-packages), Requirement.parse('Send2Trash>=1.8.0'), {'notebook'})

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/usr/lib/python3.8/site-packages/jupyter_client/kernelspec.py", line 314, in get_all_specs
        spec = self._get_kernel_spec_by_name(kname, resource_dir)
      File "/usr/lib/python3.8/site-packages/jupyter_client/kernelspec.py", line 247, in _get_kernel_spec_by_name
        from ipykernel.kernelspec import RESOURCES, get_kernel_dict
      File "/usr/lib/python3.8/site-packages/ipykernel/kernelspec.py", line 16, in <module>
        from .ipkernel import _is_debugpy_available
      File "/usr/lib/python3.8/site-packages/ipykernel/ipkernel.py", line 38, in <module>
        from .debugger import Debugger
      File "/usr/lib/python3.8/site-packages/ipykernel/debugger.py", line 20, in <module>
        from debugpy.server import api  # noqa
      File "/usr/lib64/python3.8/site-packages/debugpy/server/__init__.py", line 9, in <module>
        import debugpy._vendored.force_pydevd  # noqa
      File "/usr/lib64/python3.8/site-packages/debugpy/_vendored/force_pydevd.py", line 45, in <module>
        preimport('pydevd', [
      File "/usr/lib64/python3.8/site-packages/debugpy/_vendored/__init__.py", line 128, in preimport
        import_module(name)
      File "/usr/lib64/python3.8/importlib/__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "/usr/lib64/python3.8/site-packages/debugpy/_vendored/pydevd/pydevd_plugins/__init__.py", line 5, in <module>
        __import__('pkg_resources').declare_namespace(__name__)
      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3243, in <module>
        def _initialize_master_working_set():
      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
        f(*args, **kwargs)
      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
        working_set = WorkingSet._build_master()
      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 570, in _build_master
        return cls._build_from_requirements(__requires__)
      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 583, in _build_from_requirements
        dists = ws.resolve(reqs, Environment())
      File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 772, in resolve
        raise DistributionNotFound(req, requirers)
    pkg_resources.DistributionNotFound: The 'Send2Trash>=1.8.0' distribution was not found and is required by notebook
[E 23:56:47.131 NotebookApp] Uncaught exception GET /notebooks/Documentos/Diplomado/4.%20Visualizaci%C3%B3n%20de%20informaci%C3%B3n%20en%20la%20era%20del%20Big%20Data/M%C3%B3dulo%206/Miniproyecto%203/Hoja%20de%20respuestas%20Miniproyecto%203.ipynb (::1)
    HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/notebooks/Documentos/Diplomado/4.%20Visualizaci%C3%B3n%20de%20informaci%C3%B3n%20en%20la%20era%20del%20Big%20Data/M%C3%B3dulo%206/Miniproyecto%203/Hoja%20de%20respuestas%20Miniproyecto%203.ipynb', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "/usr/lib64/python3.8/site-packages/tornado/web.py", line 1704, in _execute
        result = await result
      File "/usr/lib64/python3.8/site-packages/tornado/gen.py", line 775, in run
        yielded = self.gen.send(value)
      File "/usr/lib/python3.8/site-packages/notebook/notebook/handlers.py", line 95, in get
        self.write(self.render_template('notebook.html',
      File "/usr/lib/python3.8/site-packages/notebook/base/handlers.py", line 516, in render_template
        return template.render(**ns)
      File "/usr/lib/python3.8/site-packages/jinja2/environment.py", line 1291, in render
        self.environment.handle_exception()
      File "/usr/lib/python3.8/site-packages/jinja2/environment.py", line 925, in handle_exception
        raise rewrite_traceback_stack(source=source)
      File "/usr/lib/python3.8/site-packages/notebook/templates/notebook.html", line 1, in top-level template code
        {% extends "page.html" %}
      File "/usr/lib/python3.8/site-packages/notebook/templates/page.html", line 154, in top-level template code
        {% block header %}
      File "/usr/lib/python3.8/site-packages/notebook/templates/notebook.html", line 115, in block 'header'
        {% for exporter in get_frontend_exporters() %}
      File "/usr/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/lib/python3.8/site-packages/nbconvert/__init__.py", line 4, in <module>
        from .exporters import *
      File "/usr/lib/python3.8/site-packages/nbconvert/exporters/__init__.py", line 3, in <module>
        from .html import HTMLExporter
      File "/usr/lib/python3.8/site-packages/nbconvert/exporters/html.py", line 18, in <module>
        from nbconvert.filters.highlight import Highlight2HTML
      File "/usr/lib/python3.8/site-packages/nbconvert/filters/__init__.py", line 6, in <module>
        from .markdown import *
      File "/usr/lib/python3.8/site-packages/nbconvert/filters/markdown.py", line 13, in <module>
        from .markdown_mistune import markdown2html_mistune
      File "/usr/lib/python3.8/site-packages/nbconvert/filters/markdown_mistune.py", line 31, in <module>
        class MathBlockGrammar(mistune.BlockGrammar):
    AttributeError: module 'mistune' has no attribute 'BlockGrammar'
[E 23:56:47.138 NotebookApp] {
      "Host": "localhost:8888",
      "Connection": "keep-alive",
      "Sec-Ch-Ua": "\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"96\", \"Google Chrome\";v=\"96\"",
      "Sec-Ch-Ua-Mobile": "?0",
      "Sec-Ch-Ua-Platform": "\"Linux\"",
      "Dnt": "1",
      "Upgrade-Insecure-Requests": "1",
      "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 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/Documentos/Diplomado/4.%20Visualizaci%C3%B3n%20de%20informaci%C3%B3n%20en%20la%20era%20del%20Big%20Data/M%C3%B3dulo%206/Miniproyecto%203",
      "Accept-Encoding": "gzip, deflate, br",
      "Accept-Language": "es-CL,es;q=0.9,en;q=0.8",
      "Cookie": "username-localhost-8889=\"2|1:0|10:1640223093|23:username-localhost-8889|44:ZTRiZjk4YzE5MmMwNDQwNWI0MzE5MDk3YjE4OWFlNDQ=|59047c6bc896f679a98bbf5521172ca7714367039e449b1fb4583578402560bc\"; username-localhost-8890=\"2|1:0|10:1640223105|23:username-localhost-8890|44:NjU2ZWJjMDc3ZTg4NDJkNmEyZjhkMGMwYTM0NWQwNWU=|3cc7b6bfedcac95d1f3b7940c7e5001af76955e92b42594e2ba481df8d90d8a0\"; _xsrf=2|b2cbe6e7|cfc18901efe40d0ea09dd1573b4346c4|1641262479; username-localhost-8888=\"2|1:0|10:1641264997|23:username-localhost-8888|44:ZmZjODYwYTZjODAzNDBkZGE5YzlkYzM5M2M1NmExNDk=|8f6476d97ca2f5aac02485593a343b7ea4f0fd98e7788b6485ea0525ac48edcf\""
    }
[E 23:56:47.138 NotebookApp] 500 GET /notebooks/Documentos/Diplomado/4.%20Visualizaci%C3%B3n%20de%20informaci%C3%B3n%20en%20la%20era%20del%20Big%20Data/M%C3%B3dulo%206/Miniproyecto%203/Hoja%20de%20respuestas%20Miniproyecto%203.ipynb (::1) 56.720000ms referer=http://localhost:8888/tree/Documentos/Diplomado/4.%20Visualizaci%C3%B3n%20de%20informaci%C3%B3n%20en%20la%20era%20del%20Big%20Data/M%C3%B3dulo%206/Miniproyecto%203

openSUSE Build Service is sponsored by