Modify ↓
#1078 closed defect (fixed)
no attribute 'get_lexer_by_name'
Reported by: | Owned by: | Matt Good | |
---|---|---|---|
Priority: | normal | Component: | TracPygmentsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
Trac[api] WARNING: HTML preview using <tracpygments.PygmentsRenderer object at 0xb798418c> failed ('module' object has no attribute 'get_lexer_by_name') Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/trac/mimeview/api.py", line 448, in render filename, url) File "build/bdist.linux-i686/egg/tracpygments/__init__.py", line 77, in render File "build/bdist.linux-i686/egg/tracpygments/__init__.py", line 112, in _format AttributeError: 'module' object has no attribute 'get_lexer_by_name'
Centos 4.2 Trac 0.10.3
Attachments (0)
Change History (2)
comment:1 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 18 years ago by
Yes, confirmed, works for me now. Thanks!
Off topic question, can we chosse alternate highlighting schemes?
Note: See
TracTickets for help on using
tickets.
(In [1851]) change import for
get_lexer_by_name
to be compatible with Pygments 0.6 (fixes #1078)