Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jupyter latest version crashes when installing with conda #1632

Open
willgdjones opened this issue Jul 25, 2016 · 12 comments
Open

Jupyter latest version crashes when installing with conda #1632

willgdjones opened this issue Jul 25, 2016 · 12 comments
Milestone

Comments

@willgdjones
Copy link

willgdjones commented Jul 25, 2016

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!

jupyter/jupyter#184

@minrk
Copy link
Member

minrk commented Jul 25, 2016

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

@minrk minrk added this to the not notebook milestone Jul 25, 2016
@minrk
Copy link
Member

minrk commented Jul 25, 2016

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

@gnestor gnestor added bug and removed bug labels Jul 25, 2016
@willgdjones
Copy link
Author

willgdjones commented Jul 27, 2016

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
Copy link

ernests commented Mar 14, 2018

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
Copy link

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
Copy link

chufuxi commented May 18, 2018

same issue, thanks for advice

@CommonClimate
Copy link

same issue, same solution. Grateful for this thread!

@thomasaarholt
Copy link
Contributor

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
Copy link

same issue. raytheon restart worked for me. thanks!

@jonathan-gabriel
Copy link

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

@caitaozhan
Copy link

Same issue. The following solution worked for me.

conda install libsodium

@Autoom
Copy link

Autoom commented Aug 24, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests