Opened 14 years ago
Closed 12 years ago
#7450 closed defect (fixed)
Error on Upgrade
Reported by: | Owned by: | Colin Guthrie | |
---|---|---|---|
Priority: | high | Component: | ClientsPlugin |
Severity: | major | Keywords: | |
Cc: | Trac Release: | 0.12 |
Description
Hi, I'm having trouble after installing the plugin. When I upgrade the project I'm given the error
Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Python25\Scripts>trac-admin \projects\it upgrade ClientsPlugin needs an upgrade
- Upgrading db
Creating client table
- Upgrading reports
AttributeError: 'NoneType' object has no attribute 'rollback'
Any assistance in resolving this issue would be appreciated
Attachments (0)
Change History (5)
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
I will add this:
>trac-admin d:\trac\think upgrade ClientsPlugin needs an upgrade * Upgrading db Creating client table Updating clients table (v3) Updating clients table (v4) Updating clients table (v5) Updating clients table (v6) * Upgrading reports UnboundLocalError: local variable 'version' referenced before assignment >trac-admin d:\trac\think upgrade ClientsPlugin needs an upgrade * Upgrading db Creating client table WorklogPlugin Exception: table client already exists * Upgrading reports UnboundLocalError: local variable 'version' referenced before assignment >trac-admin d:\trac\think upgrade ClientsPlugin needs an upgrade * Upgrading db Creating client table WorklogPlugin Exception: table client already exists * Upgrading reports UnboundLocalError: local variable 'version' referenced before assignment >trac-admin d:\trac\think upgrade ClientsPlugin needs an upgrade * Upgrading db Creating client table WorklogPlugin Exception: table client already exists * Upgrading reports UnboundLocalError: local variable 'version' referenced before assignment >trac-admin d:\trac\think upgrade Database is up to date, no upgrade necessary.
comment:3 Changed 13 years ago by
I was having the same problem, but I managed to solve it by adding "global version" between lines 21 and 23 on reportmanager.py
Hope it helps!
Y.
comment:4 Changed 12 years ago by
Declaring version
outside the try/except
statement does fix the issue, but I found it necessary to drop all of the client* tables from the database first.
comment:5 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Sorry, but I've not yet had time to port any of my plugins to 0.12.
I hope to complete a migration in the next couple months or so, but if you want to beat me to it, then patches are welcome :)