FS#24804 - [python-pygments] pygmentize doesn’t work at all

Attached to Project: Community Packages
Opened by Antoine Lubineau (alub) - Monday, 20 June 2011, 18:28 GMT
Last edited by Evangelos Foutras (foutrelis) - Sunday, 03 July 2011, 10:53 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
* pygmentize doesn’t work with python3, any call will return:
*** Error while highlighting:
TypeError: must be str, not bytes
(file "/usr/lib/python3.2/codecs.py", line 356, in write)
* python2 /usr/bin/pygmentize works as well as pygmentize2
* I haven’t tested the API in python3 yet.

Additional info:
* python-pygments 1.4-3
* python3 left as default (having python2 as default solves this, of course)

Steps to reproduce:
* install python-pygments
* pygmentize -l bash .bashrc for example
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Sunday, 03 July 2011, 10:53 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in python-pygments 1.4-4.

Loading...