Notebook: Jupyter latest version crashes when installing with conda

Created on 25 Jul 2016  路  11Comments  路  Source: jupyter/notebook

Going to repost here as there seems to be more activity.

The most recent release of jupyter seems to have some library linking issues.

After a clean install of anaconda, and
conda create -n test jupyter

then

jupyter notebook

gives me

File "/Users/fonz/anaconda/envs/test/bin/jupyter-notebook", line 4, in
import notebook.notebookapp
File "/Users/fonz/anaconda/envs/test/lib/python2.7/site-packages/notebook/notebookapp.py", line 31, in
from zmq.eventloop import ioloop
File "/Users/fonz/anaconda/envs/test/lib/python2.7/site-packages/zmq/init.py", line 49, in
from zmq import backend
File "/Users/fonz/anaconda/envs/test/lib/python2.7/site-packages/zmq/backend/init.py", line 41, in
reraise(*exc_info)
File "/Users/fonz/anaconda/envs/test/lib/python2.7/site-packages/zmq/backend/init.py", line 29, in
ns = select_backend(first)
File "/Users/fonz/anaconda/envs/test/lib/python2.7/site-packages/zmq/backend/select.py", line 27, in select_backend
mod = __import_(name, fromlist=public_api)
File "/Users/fonz/anaconda/envs/test/lib/python2.7/site-packages/zmq/backend/cython/init.py", line 6, in
from . import (constants, error, message, context,
ImportError: dlopen(/Users/fonz/anaconda/envs/test/lib/python2.7/site-packages/zmq/backend/cython/constants.so, 2): Library not loaded: @rpath/libsodium.4.dylib
Referenced from: /Users/fonz/anaconda/envs/test/lib/libzmq.4.dylib
Reason: image not found

Thanks in advance!

https://github.com/jupyter/jupyter/issues/184

Most helpful comment

Since this is an issue with the conda libzmq package not loading its dependency properly, it is possible that conda install libsodium would fix it, or perhaps remove and reinstall zeromq:

conda remove zeromq
conda install zeromq

All 11 comments

This wouldn't be related to Jupyter, but one of its dependencies. What do you see in conda list?

Since this is an issue with the conda libzmq package not loading its dependency properly, it is possible that conda install libsodium would fix it, or perhaps remove and reinstall zeromq:

conda remove zeromq
conda install zeromq

Hi @minrk

conda remove zeromq; conda install zeromq

worked a charm. Thanks for your help! This seems to be an eq fix of 'turning it off and on again' so I should have thought of that earlier.

Will

Had the same issue with libzmq.5.dylib

Referenced from: anaconda/envs/test/lib/libzmq.5.dylib
Reason: image not found

remove/install worked

had the same issue, after i set the environment with conda, the jupyter notebook cannot launch by itself.
remove / install worked, that is great~ thanks

same issue, thanks for advice

same issue, same solution. Grateful for this thread!

Just to add to this, just uninstall zeromq by conda uninstall zeromq --force did not work. I had to fully uninstall:

>>> conda uninstall zeromq
    ipykernel:           4.8.2-py36_0          conda-forge
    ipympl:              0.2.1-py36_0          conda-forge
    ipyparallel:         6.0.2-py36_0          conda-forge
    ipywidgets:          7.0.1-py_2            conda-forge
    jupyter:             1.0.0-py36_0          conda-forge
    jupyter_client:      5.2.3-py_1            conda-forge
    jupyter_console:     5.1.0-py36_0          conda-forge
    jupyterlab:          0.32.1-py36_0         conda-forge
    jupyterlab_launcher: 0.10.5-py36_0         conda-forge
    nbconvert:           5.3.1-py_1            conda-forge
    notebook:            5.5.0-py36_0          conda-forge
    pyzmq:               17.1.0-py36hae99301_0 conda-forge
    qtconsole:           4.3.1-py36_0          conda-forge
    widgetsnbextension:  3.2.1-py36_0          conda-forge
    zeromq:              4.2.5-hfc679d8_3      conda-forge

followed by a reinstall of the above.

same issue. raytheon restart worked for me. thanks!

I have updated zeromq from the Anaconda Navigator and the issue was resolved on a Mac iOS High Sierra 10.13.6.

Same issue. The following solution worked for me.

conda install libsodium
Was this page helpful?
0 / 5 - 0 ratings