任务单 #36853

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

开放日期: 2016-12-09 11:00 最后更新: 2016-12-09 13:41

报告人:
属主:
(无)
状态:
开启
里程碑:
(无)
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
文件:

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'

任务单历史 (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 Bugs to Feature Requests
评论

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 » 登录名