Ticket #36853

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

Open Date: 2016-12-09 11:00 Last Update: 2016-12-09 13:41

Reporter:
Owner:
(None)
Status:
Open
Component:
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

Details

I just setup Trac 0.12 on Windows, using this tutorial: http://www.jochenhebbrecht.be/site/2014-08-03/windows/installing-trac-101-windows-81-configuring-subversion-repository

Seems to work fine. Then I need 2 additional features: being able to handle multiple projects, and Gantt chart support. Multiple projects support can be added by using tutorial: https://trac-hacks.org/wiki/SimpleMultiProjectPlugin Again, haven't tested it extensively, but seemed to work fine.

Now the issue issue is the Gantt chart plugin cannot be run. I followed the steps for Trac 0.12 from https://trac-hacks.org/wiki/GanttCalendarPlugin.

When I open my Trac Page, I can see the Ticket Calendar and Ticket Gantt menus. Yet if they are clicked, I got this: Trac detected an internal error: AttributeError: 'Environment' object has no attribute 'get_db_cnx'

Ticket History (3/3 Histories)

2016-12-09 11:00 Updated by: anta40
  • New Ticket "AttributeError: 'Environment' object has no attribute 'get_db_cnx'" created
2016-12-09 11:04 Updated by: anta40
Comment

Forgot to add this. Probably useful.

Python Traceback

Most recent call last: File "c:/users/ronald/appdata/local/temp/easy_install-je7wtm/Trac-1.2-py2.7-win32.egg.tmp/trac/web/main.py", line 613, in _dispatch_request

File "c:/users/ronald/appdata/local/temp/easy_install-je7wtm/Trac-1.2-py2.7-win32.egg.tmp/trac/web/main.py", line 253, in dispatch

File "C:/Python27/lib/site-packages/tracganttcalendarplugin-0.6.4.post0-py2.7.egg/ganttcalendar/ticketgantt.py", line 259, in process_request

2016-12-09 13:41 Updated by: jun66j5
  • Type Update from Bugs to Feature Requests
Comment

Reply To anta40

I just setup Trac 0.12 on Windows, using this tutorial: http://www.jochenhebbrecht.be/site/2014-08-03/windows/installing-trac-101-windows-81-configuring-subversion-repository AttributeError: 'Environment' object has no attribute 'get_db_cnx'

You're using Trac 1.2. The plugin doesn't support Trac 1.2. Instead, downgrade to Trac 1.0 or 0.12.

Attachment File List

No attachments

Edit

Please login to add comment to this ticket » Login