Installation requiring bitbucket login #108

Closed
richleland opened this Issue Mar 8, 2012 · 7 comments

Projects

None yet

3 participants

@richleland

If I do a pip install riak I am prompted for a bitbucket login:

pip install riak
Downloading/unpacking riak
User for bitbucket.org: 
Password: 
Operation cancelled by user
Storing complete log in /Users/rleland/.pip/pip.log

I started to dig in to see what's going on here. It doesn't appear to be a problem with the riak packaging. From what I've been able to discern from my pip logs there is an issue with the data that is currently on PyPI:

cat ~/.pip/pip.log
------------------------------------------------------------
/Users/rleland/.virtualenvs/riak-testing/bin/pip run on Thu Mar  8 14:47:44 2012
Downloading/unpacking riak==1.3.0
  Getting page http://pypi.python.org/simple/riak
  URLs to search for versions for riak==1.3.0:
  * http://pypi.python.org/simple/riak/1.3.0
  * http://pypi.python.org/simple/riak/
  Getting page http://pypi.python.org/simple/riak/1.3.0
  Getting page https://bitbucket.org/basho/riak-python-client
  Could not fetch URL http://pypi.python.org/simple/riak/1.3.0: HTTP Error 404: Not Found (riak/1.3.0)
  Will skip URL http://pypi.python.org/simple/riak/1.3.0 when looking for download links for riak==1.3.0
  Getting page https://github.com/basho/riak-python-client
  Could not fetch URL https://bitbucket.org/basho/riak-python-client (from http://pypi.python.org/simple/riak/): HTTP Error 401: UNAUTHORIZED
  Will skip URL https://bitbucket.org/basho/riak-python-client when looking for download links for riak==1.3.0
Operation cancelled by user

Looking at that output it just appears that something is goofed on the PyPI end of things. I'm wondering if just re-running python setup.py sdist register upload will fix it up. Obviously I can't do that but let me know when you do and I'll test from my end.

@kencochrane

I had the same issue so I spent a little bit of time to try and figure out what is going on. This is what I found out.

Pip looks at this page to find out what version to install: http://pypi.python.org/simple/riak/

It reads the page and starts parsing the links, and on that page it lists all of the versions in pypi: 1.0.0 to 1.3.0.

For releases up to 1.2.1 the home page was on bitbucket.

The page it is trying to get to is https://bitbucket.org/basho/riak-python-client

if you curl that page:

$ curl -v https://bitbucket.org/basho/riak-python-client
....
< HTTP/1.1 401 UNAUTHORIZED
....

You get the unauthorized page, which prompts the bitbucket login.

If you go to that url in your browser it will redirect you to this page. https://bitbucket.org/basho/riak-python-client/wiki/Home telling you that this is a private repo and that it has moved to github.

So the way that you can fix this issue is to do the following.

  1. Login to pypi: http://pypi.python.org/pypi?%3Aaction=login
  2. On the upper right hand corner you should see a list of your packages, click on riak, the url will look something like this. http://pypi.python.org/pypi?%3Aaction=pkg_edit&name=riak This will take you to the Package 'riak' Editing page
  3. On this page you will notice all of the versions for riak that are installed in pypi. Click on the edit links for 1.0.0, 1.0.1, 1.1.0, and 1.1.1.
  4. This will take you to the page where you can edit the PKG-INFO for riak. Change the Home Page from bitbucket to https://github.com/basho/riak-python-client
  5. At the bottom of the page click "add information" button
  6. repeat for the other versions until 1.0.0, 1.0.1, 1.1.0, and 1.1.1. all have the github home page.

Once this is done, it will take a little bit (not sure how long) but it will update the http://pypi.python.org/simple/riak/ page and all of the bitbucket links will be gone.

once those links are gone, so will the bitbucket login during pip install.

Hope this helps,

Ken

@seancribbs

@kencochrane Thanks for the information, I have fixed those links.

@seancribbs seancribbs closed this Apr 2, 2012
@kencochrane

Thank you for fixing those links. Now we just need to wait until the PyPI mirrors are updated. unfortunately some are over 4 months out of date.

http://pastebin.com/wt9MYwPJ

@seancribbs

@kencochrane I suppose there's no way to effect that propagation?

@kencochrane

I have submitted a ticket to see if they can get the mirrors updated.

https://sourceforge.net/tracker/?func=detail&atid=513503&aid=3515213&group_id=66150

@seancribbs

@kencochrane You rock.

@kencochrane

Down to only 1 mirror being out of date. I created a simple website to track the mirror statuses, so hopefully it won't be long now before they are all in sync.

http://pypimirrors-kencochrane.dotcloud.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment