jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.8k stars 5.01k forks source link

Jupyter latest version crashes when installing with conda #1632

Open willgdjones opened 8 years ago

willgdjones commented 8 years ago

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

minrk commented 8 years ago

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

minrk commented 8 years ago

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
willgdjones commented 8 years ago

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

ernests commented 6 years ago

Had the same issue with libzmq.5.dylib

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

remove/install worked

yitong239 commented 6 years ago

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

chufuxi commented 6 years ago

same issue, thanks for advice

CommonClimate commented 6 years ago

same issue, same solution. Grateful for this thread!

thomasaarholt commented 6 years ago

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.

amcasari commented 6 years ago

same issue. raytheon restart worked for me. thanks!

jonathan-gabriel commented 6 years ago

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

caitaozhan commented 5 years ago

Same issue. The following solution worked for me.

conda install libsodium
Autoom commented 3 years ago

same issue, conda remove zeromq # step1 conda install zeromq #step2 conda install notebook #step3