trac 1.2.3 + plugin Stractistics 0.6.dev

10 views
Skip to first unread message

Jacques Cornily

unread,
Jun 12, 2019, 4:37:22 AM6/12/19
to Trac Users

An error is returned with accessing Stractistics in the nav bar
url: http://<host>/>project>/stractistics



AttributeError: 'Environment' object has no attribute 'get_db_cnx'


raceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 647, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 248, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.7/site-packages/STractistics-0.6dev-py2.7.egg/stractistics/web_ui.py", line 85, in process_request
    db = self.env.get_db_cnx()
AttributeError: 'Environment' object has no attribute 'get_db_cnx'
(139650773723264) Trac[uuuu:perm] DEBUG: DefaultPermissionPolicy allows admin performing TRAC_ADMIN on None
(139650773723264) Trac[uuuu:wikitopdf] DEBUG: Using HTMLDOC version 1.8.28



PS: Stractistic install from :  https://trac-hacks.org/svn/stractisticsplugin

Ryan Ollos

unread,
Jun 12, 2019, 6:21:24 AM6/12/19
to Trac Users
The plugin is not compatible with Trac 1.2. It needs to be adapted to use the 1.2 database API.

- Ryan
 

RjOllos

unread,
Jun 12, 2019, 2:02:33 PM6/12/19
to Trac Users
Implemented a fix with minimal testing:

- Ryan

RjOllos

unread,
Jun 26, 2019, 10:57:52 PM6/26/19
to Trac Users
Please let me know if you've tested the changes and confirmed it's working.

- Ryan
Reply all
Reply to author
Forward
0 new messages