You are not logged in.
Hi Archers,
Since the update a couple of days ago I get, when starting Jupyter
$ jupyter-notebook
[I 17:41:05.022 NotebookApp] JupyterLab extension loaded from /usr/lib/python3.7/site-packages/jupyterlab
[I 17:41:05.022 NotebookApp] JupyterLab application directory is /usr/lib/python3.7/site-packages/jupyterlab
[I 17:41:05.022 NotebookApp] Running JupyterLab in core mode
[I 17:41:05.022 NotebookApp] Running the core application with no additional extensions or settings
[I 17:41:05.029 NotebookApp] Serving notebooks from local directory: /home/davide
[I 17:41:05.029 NotebookApp] 0 active kernels
[I 17:41:05.029 NotebookApp] The Jupyter Notebook is running at:
[I 17:41:05.029 NotebookApp] http://localhost:8888/?token=6373822aee76794555a100909fa6c9ddbbf1c91eb9db8db2
[I 17:41:05.029 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Traceback (most recent call last):
File "/usr/bin/jupyter-notebook", line 11, in <module>
load_entry_point('notebook==5.3.0', 'console_scripts', 'jupyter-notebook')()
File "/usr/lib/python3.7/site-packages/jupyter_core/application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/usr/lib/python3.7/site-packages/traitlets/config/application.py", line 658, in launch_instance
app.start()
File "/usr/lib/python3.7/site-packages/notebook/notebookapp.py", line 1597, in start
browser = webbrowser.get(self.browser or None)
File "/usr/lib/python3.7/webbrowser.py", line 42, in get
register_standard_browsers()
File "/usr/lib/python3.7/webbrowser.py", line 567, in register_standard_browsers
cmd = _synthesize(cmdline, -1)
File "/usr/lib/python3.7/webbrowser.py", line 116, in _synthesize
register(browser, None, controller, update_tryorder)
TypeError: register() takes from 2 to 3 positional arguments but 4 were given
My system is up to date with
$ jupyter --version
4.4.0
$ python --version
Python 3.7.0
I tried uninstalling/installing, also removing jupyterlab from the AUR (version 0.33.6) to no avail. Are there any tips you may have to share on this?
I saw https://bbs.archlinux.org/viewtopic.php?id=239356 but seems unrelated (?)
$ uname -a
Linux n00b 4.17.12-arch1-1-ARCH #1 SMP PREEMPT Fri Aug 3 07:16:41 UTC 2018 x86_64 GNU/Linux
Last edited by flakedave (2018-10-23 10:26:42)
Offline
If you have the BROWSER environment variable set, try `unset BROWSER` and run jupyter again. Seems odd, but I'm pretty sure this is a bug in the python webbrowser module. I found it in urlscan as well after the Python 3.7 update.
Offline
https://bugs.archlinux.org/task/59567
EDIT: By the way I've identified the root cause, and this is a bug in python itself. In fact it is this one: https://bugs.python.org/issue31014
Last edited by eschwartz (2018-08-10 00:00:58)
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
If you have the BROWSER environment variable set, try `unset BROWSER` and run jupyter again. Seems odd, but I'm pretty sure this is a bug in the python webbrowser module. I found it in urlscan as well after the Python 3.7 update.
I have tried this but to no avail. After doing it now I get
$ jupyter-notebook
[I 15:57:30.041 NotebookApp] JupyterLab extension loaded from /usr/lib/python3.7/site-packages/jupyterlab
[I 15:57:30.041 NotebookApp] JupyterLab application directory is /usr/lib/python3.7/site-packages/jupyterlab
[I 15:57:30.041 NotebookApp] Running JupyterLab in core mode
[I 15:57:30.041 NotebookApp] Running the core application with no additional extensions or settings
[I 15:57:30.048 NotebookApp] Serving notebooks from local directory: /home/flakedave
[I 15:57:30.048 NotebookApp] 0 active kernels
[I 15:57:30.048 NotebookApp] The Jupyter Notebook is running at:
[I 15:57:30.048 NotebookApp] http://localhost:8888/?token=e5b07708730140122e3717fc435ac8e2a22486e8b35872c8
[I 15:57:30.048 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Traceback (most recent call last):
File "/usr/lib/python3.7/webbrowser.py", line 58, in get
command = _browsers[browser.lower()]
KeyError: '/usr/bin/firefox'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/jupyter-notebook", line 11, in <module>
load_entry_point('notebook==5.3.0', 'console_scripts', 'jupyter-notebook')()
File "/usr/lib/python3.7/site-packages/jupyter_core/application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/usr/lib/python3.7/site-packages/traitlets/config/application.py", line 658, in launch_instance
app.start()
File "/usr/lib/python3.7/site-packages/notebook/notebookapp.py", line 1597, in start
browser = webbrowser.get(self.browser or None)
File "/usr/lib/python3.7/webbrowser.py", line 60, in get
command = _synthesize(browser)
File "/usr/lib/python3.7/webbrowser.py", line 116, in _synthesize
register(browser, None, controller, update_tryorder)
TypeError: register() takes from 2 to 3 positional arguments but 4 were given
I tried running with jupyter-notebook --no-browser. That gives me a notebook I can visit with a browser but that is unresponsive.
At the moment this is still not [SOLVED] for me..
https://bugs.archlinux.org/task/59567
EDIT: By the way I've identified the root cause, and this is a bug in python itself. In fact it is this one: https://bugs.python.org/issue31014
That bug looks fixed now! I assume that once this is in the Arch repos I will get the fix? (<-- should I just wait?)
Thanks both!
Last edited by flakedave (2018-08-29 09:51:09)
Offline
Yes, hopefully Felix will soon provide a new version of the python package which backports this fix.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
I am getting same crashes. I tried even using Jupyter from conda installation but it gets to exact same error, so I can conform to that it is Python package problem
Offline
I am getting same crashes. I tried even using Jupyter from conda installation but it gets to exact same error, so I can conform to that it is Python package problem
jupyter-notebook --no-browser
now works for me (as no new Python was pushed in the repos yet,
jupyter-notebook
still crashes instead)
Offline
Solved with the latest Python update.
Offline