待辦事項 #36853

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

啟用日期: 2016-12-09 11:00 最後更新: 2016-12-09 13:41

回報者:
負責人:
(無)
類型:
狀態:
開啟
里程碑:
(無)
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
檔案:

細節

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
評語

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
  • 類型 Update from 問題回報 to 特色請求
評語

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

編輯

Please login to add comment to this ticket » 登入