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

Unable to install pyzmq in virtualenv #637

Closed
Cereal2nd opened this issue Jan 16, 2015 · 6 comments
Closed

Unable to install pyzmq in virtualenv #637

Cereal2nd opened this issue Jan 16, 2015 · 6 comments

Comments

@Cereal2nd
Copy link

pip install pyzmq --no-clean
DEPRECATION: --no-install, --no-download, --build, and --no-clean are deprecated.  See https://github.com/pypa/pip/issues/906.
Downloading/unpacking pyzmq
  Downloading pyzmq-14.4.1.tar.gz (995kB): 995kB downloaded
  Running setup.py (path:/home/cereal/domogik-mq/venv/build/pyzmq/setup.py) egg_info for package pyzmq
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/home/cereal/domogik-mq/venv/build/pyzmq/setup.py", line 1226, in <module>
        setup(**setup_args)
      File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
        dist.run_commands()
      File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "<string>", line 12, in replacement_run
      File "/home/cereal/domogik-mq/venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2310, in load
        return self.resolve()
      File "/home/cereal/domogik-mq/venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2316, in resolve
        module = __import__(self.module_name, fromlist=['__name__'], level=0)
    ImportError: No module named version
    Complete output from command python setup.py egg_info:
    running egg_info

but if i go to the build subdir, and execute (in the pyzmq subdir) python setup.py install then the package is installed correctly and its working ....

@minrk
Copy link
Member

minrk commented Jan 17, 2015

That looks like something is wrong in the pkg_resources data, and may not have to do with pyzmq.

Can you do:

python -c 'import pkg_resources'

?

@Cereal2nd
Copy link
Author

works:
(venv)cereal@igor:/domogik-mq$ python -c 'import pkg_resources'
(venv)cereal@igor:
/domogik-mq$ python
Python 2.7.8 (default, Oct 18 2014, 12:50:18)
[GCC 4.9.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import pkg_resources
pkg_resources
<module 'pkg_resources' from '/venv/local/lib/python2.7/site-packages/pkg_resources/init.pyc'>

@minrk
Copy link
Member

minrk commented Jan 17, 2015

What about pip list? Does it work if you leave out the deprecated --no-clean arg?

@minrk
Copy link
Member

minrk commented Jan 19, 2015

Can you provide more information about the system? What distro, are you using the system Python, etc.? How exactly did you create the virtualenv? Do you see the same error if you create a brand new virtualenv with no packages in it (and no --system-site-packages)?

@Cereal2nd
Copy link
Author

we can close the issue, it was a problem with the installed version of python-daemon, when we switched to another version of this package it got solved

@minrk
Copy link
Member

minrk commented Jan 20, 2015

Thanks for checking.

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

2 participants