Modify

Opened 16 years ago

Closed 16 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

Description

Oops...

Trac detected an internal error:

invalid syntax (pagetodoc.py, line 98)

Traceback (most recent call last):

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

cgi_frontend.run()

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

gateway.run(dispatch_request)

File "/home2/vern/webapps/trac_book/lib/python2.4/Trac-0.11-py2.4.egg/trac/web/wsgi.py", 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/main.py", 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/env.py", 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/env.py", 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/loader.py", 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/loader.py", line 65, in _load_eggs

entry.load(require=True)

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

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

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

#

File "/home2/vern/lib/python2.4/PageToDoc-0.2-py2.4.egg/pagetodoc/pagetodoc.py", 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 16 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 16 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 16 years ago by anonymous

Hi Ian,

please check if the issue got fixed [4562].

comment:4 Changed 16 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
Action
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.