Edgewall Software
Modify

Ticket #1501 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Error when going from 0.8.0 to 0.8.1

Reported by: Bernd VanSkiver <bernd@…> Owned by: jonas
Priority: normal Milestone:
Component: general Version: 0.8.1
Severity: blocker Keywords:
Cc: bernd@…

Description

I just downloaded the 0.8.1 Trac code and ran the setup.py install script and now whenever I try to do anything with Trac I get the following error:

Trac detected an internal error:

'tuple' object is not callable

Traceback (most recent call last):
  File "C:/Python23/share/trac/cgi-bin/trac.cgi", line 24, in ?
    import trac.core
  File "C:\Python23\Lib\site-packages\trac\core.py", line 37, in ?
    import Environment
  File "C:\Python23\Lib\site-packages\trac\Environment.py", line 33, in ?
    import db_default
  File "C:\Python23\Lib\site-packages\trac\db_default.py", line 349, in ?
    data = (('enum',
TypeError: 'tuple' object is not callable

Nothing with my Trac sites will now work, I need to get this fixed ASAP. I am running ActiveState Python 2.3.5 on Windows 2003

Attachments

Change History

comment:1 Changed 5 years ago by anonymous

  • Milestone changed from 0.5 to 0.8.1

comment:2 Changed 5 years ago by anonymous

  • Milestone 0.8.1 deleted

comment:3 Changed 5 years ago by mgood

The file db_default.py where this error is occurring was not changed between 0.8 and 0.8.1. Compare the db_default.py file installed on your system to source:tags/trac-0.8.1/trac/db_default.py#latest since the 'enum' listed in the traceback should actually be 'component', and 'enum' is actually on line 365. As far as I can tell, you either have a modified version of that file which is not valid, or ActiveState's Python compiler has a bug.

comment:4 Changed 5 years ago by anonymous

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

comment:5 Changed 5 years ago by cmlenz

  • Status changed from closed to reopened
  • Resolution fixed deleted

Don't just close a ticket without comment.

comment:6 Changed 5 years ago by Bernd VanSkiver

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

I figured out my issue, it was just an invalid file, I had made some modifications and had a syntax error.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from jonas. Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.