Ticket #36853

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

Eröffnet am: 2016-12-09 11:00 Letztes Update: 2016-12-09 13:41

Auswertung:
Verantwortlicher:
(Keine)
Status:
Offen
Komponente:
Meilenstein:
(Keine)
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Keine
Datei:
Keine

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-Verlauf (3/3 Historien)

2016-12-09 11:00 Aktualisiert von: anta40
  • New Ticket "AttributeError: 'Environment' object has no attribute 'get_db_cnx'" created
2016-12-09 11:04 Aktualisiert von: anta40
Kommentar

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 Aktualisiert von: jun66j5
  • Typ Update from Fehler to Funktionsanfragen
Kommentar

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.

Dateianhangliste

Keine Anhänge

Bearbeiten

Please login to add comment to this ticket » Anmelden