Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#1078 closed defect (fixed)

no attribute 'get_lexer_by_name'

Reported by: mortonda@… Owned by: Matt Good
Priority: normal Component: TracPygmentsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10


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/", line 448, in render     filename, url)   File "build/bdist.linux-i686/egg/tracpygments/", line 77, in render   File "build/bdist.linux-i686/egg/tracpygments/", 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 14 years ago by Matt Good

Resolution: fixed
Status: newclosed

(In [1851]) change import for get_lexer_by_name to be compatible with Pygments 0.6 (fixes #1078)

comment:2 Changed 14 years ago by mortonda@…

Yes, confirmed, works for me now. Thanks!

Off topic question, can we chosse alternate highlighting schemes?

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Matt Good.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.