Ticket #2784 (closed defect: fixed)

Opened 10 months ago

Last modified 10 months ago

upgrade database dose not work

Reported by: trac@babyroger.me.uk Assigned to: bobbysmith007
Priority: normal Component: EstimatorPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

when trying to upgrade the database you get an error;-

Traceback (most recent call last):

File "C:\Python25\Scripts\trac-admin-script.py", line 8, in <module>

load_entry_point('Trac==0.11b2', 'console_scripts', 'trac-admin')()

File "c:\python25\lib\site-packages\Trac-0.11b2-py2.5.egg\trac\admin\console.py", line 1227, in run

return admin.onecmd(command)

File "c:\python25\lib\site-packages\Trac-0.11b2-py2.5.egg\trac\admin\console.py", line 103, 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.11b2-py2.5.egg\trac\admin\console.py", line 1106, in do_upgrade

self.env.upgrade(backup=do_backup)

File "c:\python25\lib\site-packages\Trac-0.11b2-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 'OperationalError'

I found if i just changed the &= to a = on line 48 in api.py fixes the problem

Attachments

Change History

03/24/08 11:26:52 changed by bobbysmith007

  • status changed from new to closed.
  • resolution set to fixed.

(In [3415]) closes #2784

Thanks, this was causing other people problems as well.


Add/Change #2784 (upgrade database dose not work)




Change Properties
Action