[Python-modules-team] Bug#685302: python3-pip: Fails to be able to install packages from PyPI
Jakub Wilk
jwilk at debian.org
Sun Aug 19 15:37:16 UTC 2012
* Russel Winder <russel at winder.org.uk>, 2012-08-19, 13:16:
>>> pip-3.2 install html
>Downloading/unpacking html
> Running setup.py egg_info for package html
> Traceback (most recent call last):
> File "<string>", line 14, in <module>
> File "/root/build/html/setup.py", line 12, in <module>
> long_description = __doc__.decode('utf8'),
> AttributeError: 'str' object has no attribute 'decode'
> Complete output from command python setup.py egg_info:
> Traceback (most recent call last):
>
> File "<string>", line 14, in <module>
>
> File "/root/build/html/setup.py", line 12, in <module>
>
> long_description = __doc__.decode('utf8'),
>
>AttributeError: 'str' object has no attribute 'decode'
It looks more like a bug in the package you're trying to install.
>My guess is that when running setup.py it does so with /usr/bin/python
>instead of /usr/bin/python3
Well, no, in Python 2.X str does have attribute 'decode'. In Python 3.X,
it doesn't.
--
Jakub Wilk
More information about the Python-modules-team
mailing list