Opened 9 years ago

Closed 8 years ago

#3631 closed defect (fixed)

trac internal error on syntax error

Reported by: Ian Owned by: anonymous
Priority: normal Component: PageToDocIntegration
Severity: normal Keywords:
Cc: Lucas Eisenzimmer Trac Release: 0.11



Trac detected an internal error:

invalid syntax (, line 98)

Traceback (most recent call last):

File "trac.cgi", line 9, in ?

File "/home2/vern/webapps/trac_book/lib/python2.4/Trac-0.11-py2.4.egg/trac/web/", line 71, in run

File "/home2/vern/webapps/trac_book/lib/python2.4/Trac-0.11-py2.4.egg/trac/web/", line 87, in run

response = application(self.environ, self._start_response)

File "/home2/vern/webapps/trac_book/lib/python2.4/Trac-0.11-py2.4.egg/trac/web/", line 381, in dispatch_request

env = open_environment(env_path, use_cache=not run_once)

File "/home2/vern/webapps/trac_book/lib/python2.4/Trac-0.11-py2.4.egg/trac/", line 571, in open_environment

env = Environment(env_path)

File "/home2/vern/webapps/trac_book/lib/python2.4/Trac-0.11-py2.4.egg/trac/", line 185, in init

load_components(self, plugins_dir and (plugins_dir,))

File "/home2/vern/webapps/trac_book/lib/python2.4/Trac-0.11-py2.4.egg/trac/", line 108, in load_components

loadfunc(env, search_path, auto_enable=plugins_dir)

File "/home2/vern/webapps/trac_book/lib/python2.4/Trac-0.11-py2.4.egg/trac/", line 65, in _load_eggs


File "/usr/local/lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/", line 1830, in load

entry = import(self.module_name, globals(),globals(), __name__?)

File "build/bdist.linux-i686/egg/pagetodoc/", line 1, in ?


File "/home2/vern/lib/python2.4/PageToDoc-0.2-py2.4.egg/pagetodoc/", line 98

cmd = 'xsltproc %s -o %s %s %s' % (('-v' if self.verbose else ), wordfilepath, xsltfilepath, htmlfilepath)

SyntaxError: invalid syntax

Attachments (0)

Change History (4)

comment:1 Changed 9 years ago by anonymous

Owner: changed from Lucas Eisenzimmer to anonymous
Status: newassigned

Ooh, seems that the if-statement in brakets is not working with Python 2.4 - my fault. I will fix this soon.

comment:2 Changed 9 years ago by anonymous

Cc: Lucas Eisenzimmer added; anonymous removed

The support of Python 2.4 would really be useful. Thanks for your work!

comment:3 Changed 9 years ago by anonymous

Hi Ian,

please check if the issue got fixed [4562].

comment:4 Changed 8 years ago by markm

Resolution: fixed
Status: assignedclosed

Assuming that it works - re-open if it is not.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain anonymous.
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.