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

httplib2 doesn't have HttpLib2ErrorWithResponse #2

Open
GoogleCodeExporter opened this issue Jul 8, 2015 · 0 comments
Open

httplib2 doesn't have HttpLib2ErrorWithResponse #2

GoogleCodeExporter opened this issue Jul 8, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Download and install trunk
2. Install python-httplib2 (on ubuntu)
3. Edit session.py, change line 391 to say "except Exception, e:"
4. Run the test suite

What is the expected output? What do you see instead?

Expected "all tests passed"
Got:

ERROR: test_write (__main__.TestFreebase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_all.py", line 74, in test_write
    mss.login()
  File "/usr/lib/python2.5/site-packages/freebase/api/session.py", line
392, in login
    raise MetawebError("login error: %s", e)
MetawebError: ('login error: %s', AttributeError("'module' object has no
attribute 'HttpLib2ErrorWithResponse'",))

try again in the Python interpreter:

Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import httplib2
>>> httplib2.HttpLib2ErrorWithResponse
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'HttpLib2ErrorWithResponse'
>>>

What version of the product are you using? On what operating system?

trunk on Ubuntu 8.04

Please provide any additional information below.

This may be a documentation issue. If you require a particular version of
httplib2 (i.e. not the one that comes with Ubuntu 8.04), you may get that
particular Exception, which I see does actually exist in httplib2's trunk.

Original issue reported on code.google.com by frey...@gmail.com on 7 Sep 2008 at 4:54

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

No branches or pull requests

1 participant