[Python-modules-team] Bug#685302: python3-pip: Fails to be able to install packages from PyPI

Russel Winder russel at winder.org.uk
Sun Aug 19 15:49:20 UTC 2012


Jakub,

On Sun, 2012-08-19 at 17:37 +0200, Jakub Wilk wrote:
[…]
> It looks more like a bug in the package you're trying to install.

Yes in hindsight it does.  I downloaded the package and manually
followed the instructions:

	python2 setup.py install

for Python 2 and:

	python3 setup.py build install

for Python 3. I didn't try the former but the latter doesn't work for me
run manually, it gives the same error message. I can't believe that a
package would have got into PyPI without being able to be installed for
Python 3 at least on Windows and Mac OS X, perhaps this is not the case.

> >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.

decode is a method of bytearray in Python3, __doc__ is a string.  I
tried editing the setup.py to remove the decode() as not being necessary
in Python 3 and it seems to work.
So I don't see how this has ever worked for anyone :-(

I will push this problem upstream.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20120819/fda7c245/attachment.pgp>


More information about the Python-modules-team mailing list