Skip to content

xmlrpc bug in python 2.7.1 #3

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

Closed
janrito opened this issue Feb 7, 2012 · 5 comments
Closed

xmlrpc bug in python 2.7.1 #3

janrito opened this issue Feb 7, 2012 · 5 comments

Comments

@janrito
Copy link

janrito commented Feb 7, 2012

There is a bug in the with xmlrpclib.py in python 2.7.1:

File "/usr/lib/python2.7/site-packages/yolk/pypi.py", line 65, in request
  return(self.parse_response(fhandle)) 
File "/usr/lib64/python2.7/xmlrpclib.py", line 1449, in parse_response 
  if response.getheader("Content-Encoding", "") == "gzip":  
AttributeError: addinfourl instance has no attribute 'getheader' 

Here is somebody else's patch:
https://bitbucket.org/dbinit/yolk/src/5f679466e2d0/yolk/pypi.py

@cakebread
Copy link
Owner

Thank you, Alejandro.

Can you tell me how to reproduce this with python 2.7, please? I've tried it on a couple systems and I don't get that traceback when trying to query pypi with -L, -C, -D etc.

I've created a hotfix branch with this patch (hotfix/issue3).

@janrito
Copy link
Author

janrito commented Feb 8, 2012

I get the exception when I try to run anything that requires a connection to PyPI, including -L, -C, -D, -U, etc...

The error seems to affect 2.7.1 only, which is the standard on Fedora 15. I have other installations with the latest 2.7.2 python, which run yolk fine. I don't have a 2.7 install to test with.

@janrito
Copy link
Author

janrito commented Feb 10, 2012

PyPy 1.7 is compatible with 2.7.1. It suffers from the same bug.

@cakebread
Copy link
Owner

Thank you, I hadn't tested 2.7.1. I'm moving this weekend but may get
a release out.
I'll see if I can test pypy and add the build on http://cakebread.info/jenkins

On Fri, Feb 10, 2012 at 4:45 AM, Alejandro Giacometti
reply@reply.github.com
wrote:

PyPy 1.7 is compatible with 2.7.1. It suffers from the same bug.


Reply to this email directly or view it on GitHub:
#3 (comment)

@bobbyi
Copy link

bobbyi commented Mar 3, 2012

I just encountered this bug and the patched code linked from janrito's first post worked for me.

scottkmaxwell pushed a commit to scottkmaxwell/yolk that referenced this issue Oct 6, 2014
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

3 participants