Opened 13 years ago

Last modified 13 years ago

#8854 closed defect

'Environment' object has no attribute 'get_read_db' — at Version 2

Reported by: anonymous Owned by: Chris Nelson
Priority: highest Component: TimingAndEstimationPlugin
Severity: blocker Keywords:
Cc: Russ Tyndall Trac Release: 0.12

Description (last modified by Ryan J Ollos)

hi,

after installing 0.12 version in Ubuntu Linux 10.04.1 and enabling it in the admin section, I ran the trac-admin command:

trac-admin /var/local/lib/trac/git-Development upgrade

and I got this reply:

----

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/trac/web/api.py", line 376, in send_error
    'text/html')
  File "/usr/lib/python2.6/dist-packages/trac/web/chrome.py", line 745, in render_template
    stream |= self._filter_stream(req, method, filename, stream, data)
  File "/usr/lib/pymodules/python2.6/genshi/core.py", line 128, in __or__
    return Stream(_ensure(function(self)), serializer=self.serializer)
  File "/usr/lib/python2.6/dist-packages/trac/web/chrome.py", line 848, in inner
    data)
  File "/usr/local/lib/python2.6/dist-packages/timingandestimationplugin-1.1.4-py2.6.egg/timingandestimationplugin/tande_filters.py", line 115, in filter_stream
    ).apply(FilterTransformation(RowFilter(self)))
  File "/usr/local/lib/python2.6/dist-packages/timingandestimationplugin-1.1.4-py2.6.egg/timingandestimationplugin/tande_filters.py", line 39, in __init__
    rows = dbhelper.get_all(comp.env, "SELECT id FROM custom_report")[1]
  File "/usr/local/lib/python2.6/dist-packages/timingandestimationplugin-1.1.4-py2.6.egg/timingandestimationplugin/dbhelper.py", line 4, in get_all
    db = env.get_read_db()
AttributeError: 'Environment' object has no attribute 'get_read_db'
 ----

Now I can't access TRAC at all, it seems broken

what the ?

Change History (2)

comment:1 Changed 13 years ago by anonymous

I've even removed it from the ini file, and this message still persists

comment:2 Changed 13 years ago by Ryan J Ollos

Description: modified (diff)

Note that the errors are coming from the TimingAndEstimationPlugin.

Note: See TracTickets for help on using tickets.