Richard, On Debian Unstable I am trying to install the html package for Python 3. For Python 2, I did a "pip install html" and it worked fine. Using "pip-3.2 install html" I got an error from the execution of the setup.py. I sent in a bug report but then thought actually it is not a packaging problem, something Jakub replied with to my bug report. I tried downloading the tarball and installing but got the same problem.
> File "/root/build/html/setup.py", line 12, in <module>
>
> long_description = __doc__.decode('utf8'),
>
>AttributeError: 'str' object has no attribute 'decode'
__doc__ is of type str which has a method decode in Python 2, but decode
is a method on bytearray in Python 3. I removed the decode call and it
installed fine with Python 3.
Perhaps there needs to be a Python 2 / Python difference in the setup.py
file?
Thanks.
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:[email protected]
41 Buckmaster Road m: +44 7770 465 077 xmpp: [email protected]
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Python-modules-team mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

