Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#2761 closed defect (fixed)

Trac upgrade fails

Reported by: anonymous Owned by: bobbysmith007
Priority: normal Component: EstimatorPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Trac 0.11b1's trac-admin upgrade fails with current revision (3399 from today, 19Mar08).

It fails in different ways. When I ran 'easy_install http://trac-hacks.org/svn/estimatorplugin/0.11/' it failed like this:

C:\trac>trac-admin FlexConn upgrade --no-backup
Traceback (most recent call last):
  File "C:\Python25\Scripts\trac-admin-script.py", line 8, in <module>
    load_entry_point('trac==0.11b1', 'console_scripts', 'trac-admin')()
  File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\admin\console.py", line 1194, in run
    return admin.onecmd(command)
  File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\admin\console.py", line 102, in onecmd
    rv = cmd.Cmd.onecmd(self, line) or 0
  File "c:\Python25\lib\cmd.py", line 219, in onecmd
    return func(arg)
  File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\admin\console.py", line 1105, in do_upgrade
    self.__env.upgrade(backup=do_backup)
  File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\env.py", line 435, in upgrade
    participant.upgrade_environment(db)
  File "build\bdist.win32\egg\estimatorplugin\api.py", line 66, in upgrade_environment
  File "build\bdist.win32\egg\estimatorplugin\dbhelper.py", line 114, in set_system_value
TypeError: get_system_value() takes exactly 2 arguments (1 given                                                                                )

When I created a SVN working set from the same URL and installed from it, this was the failure:

C:\trac>trac-admin FlexConn upgrade --no-backup
Traceback (most recent call last):
  File "C:\Python25\Scripts\trac-admin-script.py", line 8, in <module>
    load_entry_point('trac==0.11b1', 'console_scripts', 'trac-admin')()
  File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\admin\console.py", line 1194, in run
    return admin.onecmd(command)
  File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\admin\console.py", line 102, in onecmd
    rv = cmd.Cmd.onecmd(self, line) or 0
  File "c:\Python25\lib\cmd.py", line 219, in onecmd
    return func(arg)
  File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\admin\console.py", line 1105, in do_upgrade
    self.__env.upgrade(backup=do_backup)
  File "c:\python25\lib\site-packages\Trac-0.11b1-py2.5.egg\trac\env.py", line 435, in upgrade
    participant.upgrade_environment(db)
  File "build\bdist.win32\egg\estimatorplugin\api.py", line 63, in upgrade_environment
TypeError: unsupported operand type(s) for &=: 'bool' and 'ProgrammingError'

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by bobbysmith007

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

(In [3404]) closes #2761

Sorry for the continuing errors. Please upgrade again (from svn up is fine, if you still have the source control copy available).

There was recently a large refactoring on this very young plugin, and while I thought it was pretty fully working, apparently I missed a few code paths related to the upgrade process.

Hopefully this will be the last of your troubles

comment:2 Changed 6 years ago by bobbysmith007

I tested upgrading our environment with the most recent fix and I had no problems

Russ

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 bobbysmith007. 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.