ProtocolError for python.org/pypi: 301 Moved Permanently

Bug #1316521 reported by Yuriy Syrovetskiy
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
stdeb (Debian)
Fix Released
Unknown
stdeb (Ubuntu)
Fix Released
High
Unassigned
Precise
Won't Fix
High
Luke Faraone
Trusty
Fix Released
High
Luke Faraone

Bug Description

$ pypi-install --verbose=1000 flower
downloading to /tmp/tmpIxm_Pz
querying PyPI (http://python.org/pypi) for package name "flower"
Traceback (most recent call last):
  File "/usr/bin/pypi-install", line 142, in <module>
    main()
  File "/usr/bin/pypi-install", line 110, in main
    tarball_fname = get_source_tarball(package_name,verbose=options.verbose)
  File "/usr/bin/pypi-install", line 61, in get_source_tarball
    verbose=verbose)
  File "/usr/bin/pypi-install", line 30, in find_tar_gz
    releases = pypi.package_releases(package_name)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1312, in single_request
    response.msg,
xmlrpclib.ProtocolError: <ProtocolError for python.org/pypi: 301 Moved Permanently>

[Test Case]

"pypi-install hello-world" installs without errors

[Regression Potential]

The package is currently unusable, so there is no regression pontential.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in stdeb (Ubuntu):
status: New → Confirmed
Revision history for this message
hamish (hamish-b) wrote :

Hi,

ver 0.6.0+20100620-4 confirmed broken on trusty.

this has been fixed in the latest package from debian/unstable. (0.6.0+20100620-5)

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=609404

you can download the .deb from the debian repos and 'dpkg -i' it if you are facing a deadline and just can't wait for a fix..

wget http://ftp.us.debian.org/debian/pool/main/s/stdeb/python-stdeb_0.6.0+20100620-5_all.deb

Hamish

Revision history for this message
hamish (hamish-b) wrote :

oops, I quoted the wrong bug number, the correct one is:

https://bugs.debian.org/744097

Revision history for this message
hamish (hamish-b) wrote :

and here is the patch:

https://github.com/astraw/stdeb/commit/f9f8a9027fae0241f4adfd8b0660c7f361c50166

end users can just edit the URL in /usr/bin/pypi-install

Changed in stdeb (Debian):
status: Unknown → Fix Released
Revision history for this message
Luke Faraone (lfaraone) wrote :

Fixed in 0.6.0+20100620-5, available in utopic.

Changed in stdeb (Ubuntu):
importance: Undecided → High
status: Confirmed → Fix Released
Changed in stdeb (Ubuntu Trusty):
status: New → Triaged
importance: Undecided → High
Luke Faraone (lfaraone)
Changed in stdeb (Ubuntu Trusty):
assignee: nobody → Luke Faraone (lfaraone)
status: Triaged → In Progress
Luke Faraone (lfaraone)
description: updated
Luke Faraone (lfaraone)
Changed in stdeb (Ubuntu Precise):
assignee: nobody → Luke Faraone (lfaraone)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Chris J Arges (arges) wrote : Please test proposed package

Hello Yuriy, or anyone else affected,

Accepted stdeb into trusty-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/stdeb/0.6.0+20100620-4ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in stdeb (Ubuntu Trusty):
status: In Progress → Fix Committed
tags: added: verification-needed
Changed in stdeb (Ubuntu Precise):
status: In Progress → Fix Committed
Revision history for this message
Chris J Arges (arges) wrote :

Hello Yuriy, or anyone else affected,

Accepted stdeb into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/stdeb/0.6.0+20100620-2ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
Mathew Hodson (mhodson) wrote :

With 0.6.0+20100620-4ubuntu1 from trusty-proposed, I can install hello-world, and there is no traceback.

$ pypi-install hello-world
running sdist_dsc
running egg_info
writing hello_world.egg-info/PKG-INFO
writing top-level names to hello_world.egg-info/top_level.txt
writing dependency_links to hello_world.egg-info/dependency_links.txt
reading manifest file 'hello_world.egg-info/SOURCES.txt'
writing manifest file 'hello_world.egg-info/SOURCES.txt'
CALLING dpkg-source -b hello-world-0.2 (in dir deb_dist)
[...]

tags: added: verification-done
removed: verification-needed
tags: added: verification-done-trusty verification-needed-precise
removed: verification-done
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package stdeb - 0.6.0+20100620-4ubuntu1

---------------
stdeb (0.6.0+20100620-4ubuntu1) trusty-proposed; urgency=medium

  * Backport fix for PyPi URL due to python.org site changes. LP: #1316521
 -- Luke Faraone <email address hidden> Tue, 29 Jul 2014 22:21:47 -0700

Changed in stdeb (Ubuntu Trusty):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for stdeb has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote : [stdeb/precise] verification still needed

The fix for this bug has been awaiting testing feedback in the -proposed repository for precise for more than 90 days. Please test this fix and update the bug appropriately with the results. In the event that the fix for this bug is still not verified 15 days from now, the package will be removed from the -proposed repository.

tags: added: removal-candidate
Revision history for this message
Steve Langasek (vorlon) wrote : Proposed package removed from archive

The version of stdeb in the proposed pocket of Precise that was purported to fix this bug report has been removed because the bugs that were to be fixed by the upload were not verified in a timely (105 days) fashion.

tags: removed: verification-needed-precise
Changed in stdeb (Ubuntu Precise):
status: Fix Committed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.