Error importing pygments.lexers.web on Python 2.5

Marcelo Santos avatarMarcelo Santos created an issue
$ python
Python 2.5 (r25:51908, May 15 2012, 16:19:31)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygments.lexers.web
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'rawunicodeescape' codec can't decode bytes in position 12-22: \Uxxxxxxxx out of range
>>>   

Comments (6)

  1. Anonymous

    Hey I had the same problem: The import of pygments.lexers.web did not work. I switched to Python version 2.5.4 and there is the bug fixed. I hope this helps.

  2. Tim Hatch

    Yes, this is an issue with one of my last commits. It affects all narrow builds of python (sys.maxunicode == 65535ish).

    I'm working on a fix as well as making regexlint recognize this case.

    Tim

  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.