[Python-modules-team] Bug#668634: python-restkit: ImportError with http-parser
Thomas Mayer
thomas at residuum.org
Fri Apr 13 17:05:14 UTC 2012
Package: python-restkit
Version: 4.1.2-1
Severity: important
Dear Maintainer,
I was running a Python script that uses couchdbkit and in turn restkit.
I get the following ImportError:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/restkit/__init__.py", line 13, in
<module>
from restkit.client import Client, MAX_FOLLOW_REDIRECTS
File "/usr/lib/python2.7/dist-packages/restkit/client.py", line 22, in
<module>
pip install http-parser""")
ImportError: http-parser isn't installed.
pip install http-parser
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/couchdbkit/__init__.py", line 9, in
<module>
from .resource import RequestFailed, CouchdbResource
File "/usr/lib/python2.7/dist-packages/couchdbkit/resource.py", line 25, in
<module>
from restkit import Resource, ClientResponse
ImportError: cannot import name Resource
Traceback (most recent call last):
File "./importcsv.py", line 3, in <module>
from couchdbkit import Database
ImportError: cannot import name Database
I had to manually upgrade http-parser to the latest version via
pip install --upgrade http-parser
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (800, 'testing'), (700, 'stable'), (600, 'unstable'), (500, 'stable-updates')
Architecture: i386 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python-restkit depends on:
ii python 2.7.2-10
ii python-http-parser 0.7.1-1
ii python-socketpool 0.3.0-2
ii python2.6 2.6.7-4
ii python2.7 2.7.2-8
python-restkit recommends no packages.
python-restkit suggests no packages.
-- no debconf information
More information about the Python-modules-team
mailing list