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

pyzmq dependency not properly advertised #46

Closed
staticfloat opened this issue Aug 10, 2013 · 6 comments
Closed

pyzmq dependency not properly advertised #46

staticfloat opened this issue Aug 10, 2013 · 6 comments

Comments

@staticfloat
Copy link
Sponsor Member

I was able to install IJulia just fine, but when I tried to run ipython notebook --profile=julia, I was met with the following error:

ImportError: IPython.html requires pyzmq >= 2.1.11

After a sudo pip install pyzmq, the startup process succeeded.

@Carreau
Copy link
Contributor

Carreau commented Aug 10, 2013

How did you install IPython notebook? Correctly done it should pull pyzmq/jinja/tornado etc... (and sudo is not alway required)

@staticfloat
Copy link
Sponsor Member Author

I installed by downloading the source tarball and running python setup.py install. In this case, sudo is required because my pip comes from the distribution python, which is installed to /usr and is owned by root. :/

@Carreau
Copy link
Contributor

Carreau commented Aug 10, 2013

It does though show optional dependencies

$ python setup.py install
============================================================================
BUILDING IPYTHON
                python: 2.7.5 (default, Jun  1 2013, 18:33:02)  [GCC 4.2.1
                        Compatible Apple LLVM 4.2 (clang-425.0.24)]
              platform: darwin

OPTIONAL DEPENDENCIES
                sphinx: 1.1.3
              pygments: 1.5
                  nose: 1.3.0
               pexpect: no (required for running standalone doctests)
                 pyzmq: 13.1.0   # <------------ pyzmq
               tornado: 3.0.1     # <--- needed for notebook
              readline: yes
                jinja2: 2.6  # <--- needed for notebook too

When installing IPython directly via pip as said in the doc it should pull what is needed if you specify that you want the notebook.

Problem is when you just do python setup.py install we can't guess which part of IPython you want to install.

@staticfloat
Copy link
Sponsor Member Author

I see. Maybe we should advertise pyzmq here then, alongside jinja2 and tornado?

@pannag
Copy link

pannag commented Aug 30, 2014

Try uninstalling pyzmq first.

sudo pip uninstall pyzmq

And then install it again:

sudo pip install pyzmq

I had the same error as you and it worked for me.

@defvol
Copy link

defvol commented Oct 8, 2014

If your working on a virtualenv try exiting and loading again.

E.g. using virtualenvwrapper

% deactivate
% workon IPython

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

4 participants