Bug#685302: Installing html package with Python 3
On 20/08/2012, at 2:19 AM, Russel Winder wrote: Of course there is then a deeper problem, Python 3 has an html package in the standard distribution, at least on Debian Unstable. :-( Thanks for the info. I'm looking at making things better but I think to do so I'll want to move my html package to html.format using the new package namespace support in Python 3.3 - an idea I'll test out once 3.3rc1 is released. Richard -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#685302: Installing html package with Python 3
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:russel.win...@ekiga.net 41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder signature.asc Description: This is a digitally signed message part
Bug#685302: Installing html package with Python 3
Richard, Of course there is then a deeper problem, Python 3 has an html package in the standard distribution, at least on Debian Unstable. :-( -- Russel. = Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.win...@ekiga.net 41 Buckmaster Roadm: +44 7770 465 077 xmpp: rus...@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder signature.asc Description: This is a digitally signed message part