Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 13 months ago

#9058 closed defect (cantfix)

OperationalError: near "import": syntax error

Reported by: tom.myny@… Owned by:
Priority: normal Milestone:
Component: general Version: 0.11.1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /roadmap, Trac issued an internal error.

(please provide additional details here)

User Agent was: Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.2) Gecko/20100115 Firefox/3.6

System Information

Trac 0.11.1
Python 2.5.2 (r252:60911, Jan 24 2010, 14:53:14)
[GCC 4.3.2]
setuptools 0.6c12
SQLite 3.5.9
pysqlite 2.4.1
Genshi 0.5.1
Subversion 1.5.1 (r32289)
RPC 1.0.6
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 444, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 205, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.5/site-packages/trac/ticket/roadmap.py", line 760, in process_request
    milestone_sizing_stats = TicketSystem(self.env).get_sizing_statistics_for_milestones([milestone.name])
  File "/usr/lib/python2.5/site-packages/trac/ticket/api.py", line 483, in get_sizing_statistics_for_milestones
    "\',\'".join(remaining_milestones))
  File "/usr/lib/python2.5/site-packages/trac/db/util.py", line 60, in execute
    return self.cursor.execute(sql)
  File "/usr/lib/python2.5/site-packages/trac/db/sqlite_backend.py", line 58, in execute
    args or [])
  File "/usr/lib/python2.5/site-packages/trac/db/sqlite_backend.py", line 50, in _rollback_on_error
    return function(self, *args, **kwargs)
OperationalError: near "import": syntax error

When we installed the agile trac 0.3 plug-in we get this message when accessing roadmap. Note: when we turn off the agile plug-in, we get an error viewing tickets, see ticket http://trac.edgewall.org/ticket/9057

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 14 years ago

Resolution: cantfix
Status: newclosed

trac/ticket/api.py", line 483, in get_sizing_statistics_for_milestones.

This is indicative of a patched tags/trac-0.11.1/trac/ticket/api.py… see by yourself, there's no such get_sizing_statistics_for_milestones method there.

Sorry, we can't really cope with unknown modifications to our code base. Perhaps contact the author of this plugin, maybe part of the installation involved adding some patch.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.