id summary reporter owner description type status priority component severity resolution keywords cc release 9634 Error on database upgrade yamilchamut@… Colin Guthrie "I was getting this error after running trac-admin /path/to/trac/project upgrade: {{{ root@trac:/home/yamil# trac-admin /path/to/trac/projectt 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 }}} As I stated on tickets [http://trac-hacks.org/ticket/7450 #7450] and [http://trac-hacks.org/ticket/8450 #8450], adding ""global version"" between lines 21 and 23 on reportmanager.py solves it." defect closed highest ClientsPlugin blocker duplicate 0.12