pip installation is broken

230 views
Skip to first unread message

generalov

unread,
May 23, 2014, 2:17:05 AM5/23/14
to pypubs...@googlegroups.com
Hello! I want to install PyPubSub with pip:

$ virtualenv python --system-site-packages
$ . python/bin/activate

$ pip --version
pip 1.5.4 from /tmp/q/python/local/lib/python2.7/site-packages (python 2.7)

$ python --version
Python 2.7.6

$ pip install pypubsub
Downloading/unpacking pypubsub
  Could not find any downloads that satisfy the requirement pypubsub
  Some externally hosted files were ignored (use --allow-external pypubsub to allow).
Cleaning up...
No distributions at all found for pypubsub
Storing debug log for failure in /home/lucky/.pip/pip.log

I added the --allow-all-external argument:

$ pip install --allow-all-external pypubsub
Downloading/unpacking pypubsub
  pypubsub an externally hosted file and may be unreliable
  Downloading PyPubSub-3.2.0.zip (78kB): 78kB downloaded
  Running setup.py (path:/tmp/q/python/build/pypubsub/setup.py) egg_info for package pypubsub
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/q/python/build/pypubsub/setup.py", line 2, in <module>
        import ez_setup
    ImportError: No module named ez_setup
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/q/python/build/pypubsub/setup.py", line 2, in <module>

    import ez_setup

ImportError: No module named ez_setup

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/q/python/build/pypubsub
Storing debug log for failure in /home/lucky/.pip/pip.log


1. Version is 3.2.0 is outdated. Current version is 3.3.0
2. Installation is broken

I can install package 3.3.0 with direct link:



Oliver

unread,
Jun 8, 2014, 3:35:59 PM6/8/14
to pypubs...@googlegroups.com
Hi Generalov, thanks for posting the issue re pip installation. It is fixed now: I keep forgetting that pypi requires the "direct link" rather than the "download link" (which shows a temporary add page). I was able to do "pip install --allow-external pypubsub pypubsub". Please let us know that it works (or not!) for you now. The requirement for allowing external is recent, I didn't use to have to do this, I do recall pypi notification about this though so I guess the pypi devs have finally implemented this. I will have to update the docs sometime. 
Oliver

Reply all
Reply to author
Forward
0 new messages