Trac과 mod_python을 연동해서 설치 실행 중에 trac error가 발생합니다.
설치환경은 다음과 같습니다.
Trac 0.11.5
Apache 2.2.13
Python 2.5.4
mod_python 3.3.1
svn 1.6.6
설치하고, browser로 http:///trac 접속하면 아무 내용도 출력 되지 않아서 trac.log를 확인하니 다음과 같은 내용입니다.
2009-10-30 09:53:10,110 Trac[loader] DEBUG: Loading trac.ticket.web_ui from /opt
2009-10-30 09:53:10,145 Trac[loader] DEBUG: Loading trac.mimeview.php from /opt/
2009-10-30 09:53:10,147 Trac[loader] DEBUG: Loading trac.ticket.query from /opt/
2009-10-30 09:53:10,158 Trac[loader] DEBUG: Loading trac.attachment from /opt/li
2009-10-30 09:53:10,159 Trac[loader] DEBUG: Loading trac.versioncontrol.svn_fs f
2009-10-30 09:53:10,166 Trac[loader] DEBUG: Loading trac.mimeview.patch from /op
2009-10-30 09:53:10,169 Trac[loader] DEBUG: Loading trac.mimeview.txtl from /opt
2009-10-30 09:53:10,182 Trac[loader] DEBUG: Skipping "trac.mimeview.txtl = trac.
2009-10-30 09:53:10,182 Trac[loader] DEBUG: Loading trac.admin.web_ui from /opt/
2009-10-30 09:53:10,188 Trac[loader] DEBUG: Loading trac.ticket.admin from /opt/
2009-10-30 09:53:10,192 Trac[loader] DEBUG: Loading trac.mimeview.rst from /opt/
2009-10-30 09:53:10,206 Trac[loader] DEBUG: Skipping "trac.mimeview.rst = trac.m
2009-10-30 09:53:10,207 Trac[loader] DEBUG: Loading trac.db.postgres from /opt/l
2009-10-30 09:53:10,211 Trac[loader] DEBUG: Loading trac.versioncontrol.web_ui f
2009-10-30 09:53:10,236 Trac[loader] DEBUG: Loading trac.timeline from /opt/lib/
2009-10-30 09:53:10,239 Trac[loader] DEBUG: Loading trac.mimeview.pygments from
2009-10-30 09:53:10,255 Trac[loader] DEBUG: Skipping "trac.mimeview.pygments = t
2009-10-30 09:53:10,256 Trac[loader] DEBUG: Loading trac.about from /opt/lib/pyt
2009-10-30 09:53:10,258 Trac[loader] DEBUG: Loading trac.wiki.interwiki from /op
2009-10-30 09:53:10,264 Trac[loader] DEBUG: Loading trac.ticket.roadmap from /op
2009-10-30 09:53:10,268 Trac[loader] DEBUG: Loading trac.versioncontrol.svn_prop
2009-10-30 09:53:10,271 Trac[loader] DEBUG: Loading trac.mimeview.silvercity fro
2009-10-30 09:53:10,286 Trac[loader] DEBUG: Skipping "trac.mimeview.silvercity =
2009-10-30 09:53:10,287 Trac[loader] DEBUG: Loading trac.wiki.macros from /opt/l
2009-10-30 09:53:10,288 Trac[loader] DEBUG: Loading trac.db.sqlite from /opt/lib
2009-10-30 09:53:10,329 Trac[loader] DEBUG: Loading trac.wiki.web_ui from /opt/l
2009-10-30 09:53:10,332 Trac[loader] DEBUG: Loading trac.mimeview.enscript from
2009-10-30 09:53:10,335 Trac[loader] DEBUG: Loading trac.web.auth from /opt/lib/
2009-10-30 09:53:10,338 Trac[loader] DEBUG: Loading trac.admin.console from /opt
2009-10-30 09:53:10,348 Trac[loader] DEBUG: Loading trac.db.mysql from /opt/lib/
2009-10-30 09:53:10,351 Trac[loader] DEBUG: Loading trac.search from /opt/lib/py
2009-10-30 09:53:10,354 Trac[loader] DEBUG: Loading trac.prefs from /opt/lib/pyt
2009-10-30 09:53:10,358 Trac[loader] DEBUG: Loading trac.ticket.report from /opt
2009-10-30 09:53:10,396 Trac[default_workflow] DEBUG: Workflow actions at initia
2009-10-30 09:53:10,401 Trac[env] ERROR: Exception caught while checking for upg
Traceback (most recent call last):
File "/opt/lib/python2.5/site-packages/trac/env.py", line 586, in open_environ
needs_upgrade = env.needs_upgrade()
File "/opt/lib/python2.5/site-packages/trac/env.py", line 429, in needs_upgrad
if participant.environment_needs_upgrade(db):
File "/opt/lib/python2.5/site-packages/trac/env.py", line 500, in environment_
dbver = self.env.get_version(db)
File "/opt/lib/python2.5/site-packages/trac/env.py", line 348, in get_version
cursor = db.cursor()
File "/opt/lib/python2.5/site-packages/trac/db/util.py", line 97, in cursor
return IterableCursor(self.cnx.cursor(), self.log)
File "/opt/lib/python2.5/site-packages/trac/db/sqlite_backend.py", line 197, i
cursor = self.cnx.cursor(PyFormatCursor)
AttributeError: 'str' object has no attribute 'cursor'
2009-10-30 09:53:10,403 Trac[env] WARNING: base_url option not set in configurat
2009-10-30 09:53:10,404 Trac[main] DEBUG: Dispatching
2009-10-30 09:53:10,600 Trac[svn_fs] DEBUG: Subversion bindings imported
무슨 내용인지 제가 python을 사용해보질 않아서 잘 모르겠네요. web상에서 search해봐도 잘 모르겠습니다.
댓글 달기