trac svn python 바인딩이 python 재구축을 엉망으로 만듭니다.

trac svn python 바인딩이 python 재구축을 엉망으로 만듭니다.

내 trac과 svn은 예전에는 작동했는데, 링크를 여러 번 클릭하면 여전히 작동합니다. 아무리 그 사람의 관심에 대해 불평을 해도 내 관심을 어떻게 해야 할지 모르겠어.http://trac.edgewall.org/wiki/TracSubversion그리고http://trac.edgewall.org/wiki/TracSubversion그러나 아무것도 변하지 않았습니다. 나는 centos 5, svn 1.6, trac 0.10.4, python 2.4.3을 사용하고 있습니다.

2013-11-29 14:24:14,458 Trac[main] ERROR: Unsupported version control system "svn". Check that the Python bindings for "svn" are correctly installed.
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 191, in dispatch
    chosen_handler = self._pre_process_request(req, chosen_handler)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 263, in _pre_process_request
    chosen_handler = f.pre_process_request(req, chosen_handler)
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 73, in pre_process_request
    self.get_repository(req.authname).sync()
  File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 91, in get_repository
    raise TracError('Unsupported version control system "%s". '
TracError: Unsupported version control system "svn". Check that the Python bindings for "svn" are correctly installed.
2013-11-29 14:24:15,090 Trac[loader] DEBUG: Loading file plugin ez_setup from /usr/share/trac/plugins/ez_setup.py
2013-11-29 14:24:15,154 Trac[loader] DEBUG: Loading egg plugin trac.ticket.web_ui from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,286 Trac[loader] DEBUG: Loading egg plugin trac.ticket.query from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,345 Trac[loader] DEBUG: Loading egg plugin trac.attachment from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,345 Trac[loader] DEBUG: Loading egg plugin trac.versioncontrol.svn_fs from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,564 Trac[loader] DEBUG: Loading egg plugin tracopt.mimeview.enscript from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,627 Trac[loader] DEBUG: Loading egg plugin trac.mimeview.patch from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,629 Trac[loader] DEBUG: Loading egg plugin trac.mimeview.txtl from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,643 Trac[loader] WARNING: Cannot load plugin trac.mimeview.txtl because it requires "textile>=2.0"
2013-11-29 14:24:15,643 Trac[loader] DEBUG: Loading egg plugin trac.admin.web_ui from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,644 Trac[loader] ERROR: Failed to load plugin trac.admin.web_ui from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/loader.py", line 101, in load_components
    entry_point.load()
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named admin.web_ui
2013-11-29 14:24:15,682 Trac[loader] DEBUG: Loading egg plugin trac.web.session from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,683 Trac[loader] DEBUG: Loading egg plugin trac.ticket.admin from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,684 Trac[loader] ERROR: Failed to load plugin trac.ticket.admin from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/loader.py", line 101, in load_components
    entry_point.load()
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named admin
2013-11-29 14:24:15,685 Trac[loader] DEBUG: Loading egg plugin trac.mimeview.rst from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,699 Trac[loader] WARNING: Cannot load plugin trac.mimeview.rst because it requires "docutils>=0.3"
2013-11-29 14:24:15,699 Trac[loader] DEBUG: Loading egg plugin trac.db.postgres from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,701 Trac[loader] DEBUG: Loading egg plugin trac.versioncontrol.web_ui from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,734 Trac[loader] DEBUG: Loading egg plugin trac.timeline from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,735 Trac[loader] ERROR: Failed to load plugin trac.timeline from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/loader.py", line 101, in load_components
    entry_point.load()
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named timeline.web_ui
2013-11-29 14:24:15,736 Trac[loader] DEBUG: Loading egg plugin trac.mimeview.pygments from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,749 Trac[loader] WARNING: Cannot load plugin trac.mimeview.pygments because it requires "Pygments>=0.6"
2013-11-29 14:24:15,750 Trac[loader] DEBUG: Loading egg plugin trac.wiki.admin from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,750 Trac[loader] ERROR: Failed to load plugin trac.wiki.admin from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/loader.py", line 101, in load_components
    entry_point.load()
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named admin
2013-11-29 14:24:15,751 Trac[loader] DEBUG: Loading egg plugin trac.about from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,752 Trac[loader] ERROR: Failed to load plugin trac.about from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/loader.py", line 101, in load_components
    entry_point.load()
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named about
2013-11-29 14:24:15,752 Trac[loader] DEBUG: Loading egg plugin tracopt.ticket.commit_updater from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,758 Trac[loader] ERROR: Failed to load plugin tracopt.ticket.commit_updater from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/loader.py", line 101, in load_components
    entry_point.load()
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "build/bdist.linux-i686/egg/tracopt/ticket/commit_updater.py", line 48, in ?
ImportError: No module named compat
2013-11-29 14:24:15,759 Trac[loader] DEBUG: Loading egg plugin trac.wiki.interwiki from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,762 Trac[loader] DEBUG: Loading egg plugin trac.ticket.roadmap from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,765 Trac[loader] DEBUG: Loading egg plugin trac.versioncontrol.svn_prop from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,766 Trac[loader] ERROR: Failed to load plugin trac.versioncontrol.svn_prop from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/loader.py", line 101, in load_components
    entry_point.load()
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named svn_prop
2013-11-29 14:24:15,766 Trac[loader] DEBUG: Loading egg plugin trac.mimeview.silvercity from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,779 Trac[loader] WARNING: Cannot load plugin trac.mimeview.silvercity because it requires "SilverCity>=0.9.4"
2013-11-29 14:24:15,779 Trac[loader] DEBUG: Loading egg plugin trac.wiki.macros from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,780 Trac[loader] DEBUG: Loading egg plugin trac.db.sqlite from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:15,790 Trac[loader] DEBUG: Loading egg plugin tracopt.ticket.deleter from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:16,045 Trac[loader] ERROR: Failed to load plugin tracopt.ticket.deleter from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/loader.py", line 101, in load_components
    entry_point.load()
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "build/bdist.linux-i686/egg/tracopt/ticket/deleter.py", line 22, in ?
ImportError: No module named translation
2013-11-29 14:24:16,046 Trac[loader] DEBUG: Loading egg plugin trac.wiki.web_ui from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:16,054 Trac[loader] DEBUG: Loading egg plugin tracopt.mimeview.php from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:16,055 Trac[loader] DEBUG: Loading egg plugin trac.web.auth from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:16,090 Trac[loader] DEBUG: Loading egg plugin trac.wiki.web_api from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:16,091 Trac[loader] ERROR: Failed to load plugin trac.wiki.web_api from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/loader.py", line 101, in load_components
    entry_point.load()
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named web_api
2013-11-29 14:24:16,092 Trac[loader] DEBUG: Loading egg plugin trac.admin.console from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:16,092 Trac[loader] ERROR: Failed to load plugin trac.admin.console from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/loader.py", line 101, in load_components
    entry_point.load()
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named admin.console
2013-11-29 14:24:16,093 Trac[loader] DEBUG: Loading egg plugin trac.db.mysql from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:16,094 Trac[loader] DEBUG: Loading egg plugin tracopt.perm.authz_policy from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:16,096 Trac[loader] ERROR: Failed to load plugin tracopt.perm.authz_policy from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/loader.py", line 101, in load_components
    entry_point.load()
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "build/bdist.linux-i686/egg/tracopt/perm/authz_policy.py", line 23, in ?
ImportError: cannot import name IPermissionPolicy
2013-11-29 14:24:16,097 Trac[loader] DEBUG: Loading egg plugin trac.versioncontrol.svn_authz from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:16,097 Trac[loader] DEBUG: Loading egg plugin trac.versioncontrol.admin from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:16,098 Trac[loader] ERROR: Failed to load plugin trac.versioncontrol.admin from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/loader.py", line 101, in load_components
    entry_point.load()
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named admin
2013-11-29 14:24:16,098 Trac[loader] DEBUG: Loading egg plugin trac.search from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:16,099 Trac[loader] ERROR: Failed to load plugin trac.search from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/loader.py", line 101, in load_components
    entry_point.load()
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named search.web_ui
2013-11-29 14:24:16,099 Trac[loader] DEBUG: Loading egg plugin tracopt.perm.config_perm_provider from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:16,100 Trac[loader] DEBUG: Loading egg plugin trac.prefs from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
2013-11-29 14:24:16,101 Trac[loader] ERROR: Failed to load plugin trac.prefs from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/loader.py", line 101, in load_components
    entry_point.load()
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named prefs.web_ui
2013-11-29 14:24:16,101 Trac[loader] DEBUG: Loading egg plugin trac.ticket.report from /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg

trac 0.10.4를 다운로드하고 다시 설치해 보았지만 다음 문제도 발견했으며 trac 프로젝트도 만들 수 없습니다.

[root@hero trac]# trac-admin nagios initenv
Traceback (most recent call last):
  File "/usr/bin/trac-admin", line 21, in ?
    from trac.scripts.admin import run
ImportError: No module named scripts.admin

11월 29일에 이 모든 일이 발생했으며 3개의 패키지만 업데이트되었습니다.

[root@hero trac]# rpm -qa --queryformat '%{installtime} (%{installtime:date}) %{name}\n' | sort -n | tail -20
1272376205 (Tue 27 Apr 2010 02:50:05 PM BST) perl-Digest-SHA
1272376206 (Tue 27 Apr 2010 02:50:06 PM BST) perl-Net-DNS
1272376367 (Tue 27 Apr 2010 02:52:47 PM BST) perl-Net-IMAP-Simple
1297437326 (Fri 11 Feb 2011 03:15:26 PM GMT) rsync
1303313671 (Wed 20 Apr 2011 04:34:31 PM BST) bacula-libs
1303313686 (Wed 20 Apr 2011 04:34:46 PM BST) bacula-client
1319625083 (Wed 26 Oct 2011 11:31:23 AM BST) nano
1320596688 (Sun 06 Nov 2011 04:24:48 PM GMT) libsmbclient
1320596692 (Sun 06 Nov 2011 04:24:52 PM GMT) samba-common
1320596694 (Sun 06 Nov 2011 04:24:54 PM GMT) perl-Convert-ASN1
1320596695 (Sun 06 Nov 2011 04:24:55 PM GMT) samba-client
1320596697 (Sun 06 Nov 2011 04:24:57 PM GMT) samba
1360917828 (Fri 15 Feb 2013 08:43:48 AM GMT) which
1380191389 (Thu 26 Sep 2013 11:29:49 AM BST) httperf
1380798707 (Thu 03 Oct 2013 12:11:47 PM BST) libssh2
1380798733 (Thu 03 Oct 2013 12:12:13 PM BST) libssh2-devel
1380799094 (Thu 03 Oct 2013 12:18:14 PM BST) php-pear
1385728355 (Fri 29 Nov 2013 12:32:35 PM GMT) neon
1385728360 (Fri 29 Nov 2013 12:32:40 PM GMT) subversion
1385728366 (Fri 29 Nov 2013 12:32:46 PM GMT) mod_dav_svn

이론적으로 해당 디렉토리를 삭제 /usr/share/trac하고 /usr/lib/python2.4/site-packages/trac/trac 0.10.4를 다시 설치하면 작동하지 않아야 합니까? 나는 그것을 시도했지만 작동하지 않습니다.

이제 다음을 수행하여 trac 프로젝트를 생성할 수 있는 문제를 해결했지만 브라우저를 사용하여 trac을 입력할 수 없습니다.

[root@hero trac]# easy_install -m trac
Searching for trac
Best match: Trac 0.12
Processing Trac-0.12-py2.4.egg
Removing Trac 0.12 from easy-install.pth file
Installing trac-admin script to /usr/bin
Installing tracd script to /usr/bin

Using /usr/lib/python2.4/site-packages/Trac-0.12-py2.4.egg

Because this distribution was installed --multi-version, before you can
import modules from this package in an application, you will need to
'import pkg_resources' and then use a 'require()' call similar to one of
these examples, in order to select the desired version:

    pkg_resources.require("Trac")  # latest installed version
    pkg_resources.require("Trac==0.12")  # this exact version
    pkg_resources.require("Trac>=0.12")  # this version or higher

Processing dependencies for trac
Finished processing dependencies for trac

내가받는 오류는 다음과 같습니다

[Mon Dec 02 10:58:21 2013] [error] [client 172.16.0.85] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last):, referer: http://hero/trac/
[Mon Dec 02 10:58:21 2013] [error] [client 172.16.0.85] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 287, in HandlerDispatch\n    log=debug), referer: http://hero/trac/
[Mon Dec 02 10:58:21 2013] [error] [client 172.16.0.85] PythonHandler trac.web.modpython_frontend:   File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 461, in import_module\n    f, p, d = imp.find_module(parts[i], path), referer: http://hero/trac/
[Mon Dec 02 10:58:21 2013] [error] [client 172.16.0.85] PythonHandler trac.web.modpython_frontend: ImportError: No module named trac, referer: http://hero/trac/

답변1

/usr/share/trac및 를 제거했습니다 /usr/lib/python2.4/site-packages/trac/. v 0.10.4를 다운로드하고 다시 설치하세요. 왜 처음에는 작동하지 않았는지 모르겠지만, 이로 인해 내 문제가 해결되었고 trac이 성공적으로 복원되었습니다.

관련 정보