You are not logged in.
Hi all,
I recently tried to run jupyter-notebook from the command line and got the following:
> jupyter-notebook
Traceback (most recent call last):
File "/usr/bin/jupyter-notebook", line 33, in <module>
sys.exit(load_entry_point('notebook==6.1.1', 'console_scripts', 'jupyter-notebook')())
File "/home/tzanakis/.local/lib/python3.8/site-packages/jupyter_core/application.py", line 270, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/home/tzanakis/.local/lib/python3.8/site-packages/traitlets/config/application.py", line 663, in launch_instance
app.initialize(argv)
File "<decorator-gen-7>", line 2, in initialize
File "/home/tzanakis/.local/lib/python3.8/site-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/usr/lib/python3.8/site-packages/notebook/notebookapp.py", line 2029, in initialize
self.init_webapp()
File "/usr/lib/python3.8/site-packages/notebook/notebookapp.py", line 1667, in init_webapp
self.web_app = NotebookWebApplication(
File "/usr/lib/python3.8/site-packages/notebook/notebookapp.py", line 183, in __init__
settings = self.init_settings(
File "/usr/lib/python3.8/site-packages/notebook/notebookapp.py", line 302, in init_settings
nbextensions_path=jupyter_app.nbextensions_path,
File "/usr/lib/python3.8/site-packages/notebook/notebookapp.py", line 1284, in nbextensions_path
from IPython.paths import get_ipython_dir
File "/home/tzanakis/.local/lib/python3.8/site-packages/IPython/__init__.py", line 56, in <module>
from .terminal.embed import embed
File "/home/tzanakis/.local/lib/python3.8/site-packages/IPython/terminal/embed.py", line 16, in <module>
from IPython.terminal.interactiveshell import TerminalInteractiveShell
File "/home/tzanakis/.local/lib/python3.8/site-packages/IPython/terminal/interactiveshell.py", line 19, in <module>
from prompt_toolkit.enums import DEFAULT_BUFFER, EditingMode
File "/home/tzanakis/.local/lib/python3.8/site-packages/prompt_toolkit/__init__.py", line 16, in <module>
from .application import Application
File "/home/tzanakis/.local/lib/python3.8/site-packages/prompt_toolkit/application/__init__.py", line 1, in <module>
from .application import Application
File "/home/tzanakis/.local/lib/python3.8/site-packages/prompt_toolkit/application/application.py", line 39, in <module>
from prompt_toolkit.buffer import Buffer
File "/home/tzanakis/.local/lib/python3.8/site-packages/prompt_toolkit/buffer.py", line 29, in <module>
from .application.run_in_terminal import run_in_terminal
File "/home/tzanakis/.local/lib/python3.8/site-packages/prompt_toolkit/application/run_in_terminal.py", line 7, in <module>
from prompt_toolkit.eventloop import run_in_executor_with_context
File "/home/tzanakis/.local/lib/python3.8/site-packages/prompt_toolkit/eventloop/__init__.py", line 2, in <module>
from .inputhook import (
File "/home/tzanakis/.local/lib/python3.8/site-packages/prompt_toolkit/eventloop/inputhook.py", line 34, in <module>
from prompt_toolkit.utils import is_windows
File "/home/tzanakis/.local/lib/python3.8/site-packages/prompt_toolkit/utils.py", line 19, in <module>
from wcwidth import wcwidth
File "/home/tzanakis/.local/lib/python3.8/site-packages/wcwidth/__init__.py", line 12, in <module>
from .wcwidth import ZERO_WIDTH # noqa
File "/home/tzanakis/.local/lib/python3.8/site-packages/wcwidth/wcwidth.py", line 72, in <module>
import pkg_resources
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3268, in <module>
def _initialize_master_working_set():
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3251, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3280, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 582, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 899, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 785, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'argon2-cffi' distribution was not found and is required by notebookRunning the following fixed the issue:
sudo pacman -S python-argon2_cffiSo, it seems that this extra dependency should be listed in https://www.archlinux.org/packages/comm … -notebook/
But there is no option of posting over there to ask about it.
Can other people recreate this or is it just me? If indeed python-argon2_cffi should be listed as a dependency, with whom do I raise the issue?
Thanks a lot
Offline
I have a similar problem with python-argon2_ciffi, but jupyter notebook still run fine.
I am able to run jupyter notebook in terminal and everything works. But when I try to download a ipynb file as html, This error message occur:
failed: The 'argon2-cffi' distribution was not found and is required by notebookAfter installing "python-argon2_cffi" package, downloading works fine.
Maybe it should be a optional dependency?
Not quite the same problem, but maybe it will help.
Offline
I can confirm the issue. I had it when trying to build `jupyter_contrib_nbextensions` from the AUR. Running jupyter still worked though.
Installing `python-argon2_cffi` fixed the issue.
Offline
Oops.. Ok, this is dumb, but I honestly forgot that I was using my manjaro computer while I started this thread. I'm away from home where my arch computer is and I cannot test it right now.. I'll test it over there in a couple of weeks and if I will open a bug report accordingly, unless somebody does it earlier.
Offline