Modify

Opened 6 years ago

Closed 5 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: lei 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 6 years ago by anonymous

  • Owner changed from lei to anonymous
  • Status changed from new to assigned

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 6 years ago by anonymous

  • Cc lei added

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

comment:3 Changed 6 years ago by anonymous

Hi Ian,

please check if the issue got fixed [4562].

comment:4 Changed 5 years ago by markm

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

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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from anonymous. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.