Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#1078 closed defect (fixed)

no attribute 'get_lexer_by_name'

Reported by: mortonda@… Owned by: mgood
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 10 years ago by mgood

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:2 Changed 10 years ago by mortonda@…

Yes, confirmed, works for me now. Thanks!

Off topic question, can we chosse alternate highlighting schemes?

Add Comment

Modify Ticket

as closed The owner will remain mgood.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.