rh9 trac-webadmin 安装时遇到的问题(已解决,安装最新版)

rh9 trac-webadmin 安装时遇到的问题(已解决,安装最新版)

环境:
RH9
apache 2.2.5
mysql 50.24
Subversion 1.4
trac 0.10.4
python 2.5
setuptools 0.6c7

trac-webadmin 安装
第一种方法:
easy_install http://svn.edgewall.com/repos/trac/sandbox/webadmin
报错如下:
Doing subversion checkout from http://svn.edgewall.com/repos/trac/sandbox/webadmin to /tmp/easy_install-ehhPEd/webadmin
sh: line 1: svn: command not found
Processing webadmin
error: Couldn't find a setup script in /tmp/easy_install-ehhPEd/webadmin

我的setuptools 已经安装好了,也没有报错。

第二种方法:
用SVN下载包,解压后进入目录
# unzip tracwebadmin.zip
# cd tracwebadmin
#python setup.py install
提示:
Adding TracWebAdmin 0.1.2dev to easy-install.pth file
Installed /usr/local/lib/python2.5/site-packages/TracWebAdmin-0.1.2dev-py2.5.egg
Processing dependencies for TracWebAdmin==0.1.2dev
Finished processing dependencies for TracWebAdmin==0.1.2dev
我不知道装没装好。
查看trac目录:
# ls /usr/local/trac
并没有产生webadmin 应该是没有安装好。
但在这个目录产生了如下几个文件:
[root@localhost tracwebadmin]# ls
apctest.php  build  COPYING  dist  setup.cfg  setup.py   TracWebAdmin.egg-info  webadmin

这个时间我不知道怎么办了。。。

修改了trac.ini
[components]
webadmin.* = enabled
重启apache  也是安装失败。

查看apache 日志如下:

/usr/local/lib/python2.5/site-packages/trac/loader.py:96: UserWarning: Module webadmin was already imported from /usr/local/lib/python2.5/site-packages/TracWebAdmin-0.1.2dev-py2.5.egg/webadmin/__init__.py, but /usr/local/trac/plugins/TracWebAdmin-0.1.2dev-py2.5.egg is being added to sys.path
  egg.activate()
/usr/local/subverion/lib/svn-python/libsvn/fs.py:5: RuntimeWarning: Python C API version mismatch for module _fs: This Python has API version 1013, module _fs has version 1011.
  import _fs
/usr/local/subverion/lib/svn-python/libsvn/fs.py:5: RuntimeWarning: Python C API version mismatch for module swig_runtime_data2: This Python has API version 1013, module swig_runtime_data2 has version 1011.
  import _fs
/usr/local/subverion/lib/svn-python/libsvn/core.py:5: RuntimeWarning: Python C API version mismatch for module _core: This Python has API version 1013, module _core has version 1011.
  import _core
/usr/local/subverion/lib/svn-python/libsvn/delta.py:5: RuntimeWarning: Python C API version mismatch for module _delta: This Python has API version 1013, module _delta has version 1011.
  import _delta
/usr/local/subverion/lib/svn-python/libsvn/repos.py:5: RuntimeWarning: Python C API version mismatch for module _repos: This Python has API version 1013, module _repos has version 1011.
  import _repos
[Mon Nov 19 20:42:30 2007] [notice] SIGHUP received.  Attempting to restart
[Mon Nov 19 20:42:31 2007] [notice] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Mon Nov 19 20:42:31 2007] [notice] mod_python: using mutex_directory /tmp
[Mon Nov 19 20:42:31 2007] [notice] Apache/2.0.55 (Unix) DAV/2 PHP/5.2.4 SVN/1.4.0 mod_python/3.3.1 Python/2.5 configured -- resuming normal operations


上来求救!!!

补充几个LOG:
[Mon Nov 19 21:00:48 2007] [error] [client 10.0.0.88]   File "build/bdist.linux-i686/egg/pkg_resources.py", line 526, in resolve\n    if dist not in req:
[Mon Nov 19 21:00:48 2007] [error] [client 10.0.0.88]   File "build/bdist.linux-i686/egg/pkg_resources.py", line 2447, in __contains__\n    if self.index: item = item.parsed_version  # only get if we need it
[Mon Nov 19 21:00:48 2007] [error] [client 10.0.0.88]   File "build/bdist.linux-i686/egg/pkg_resources.py", line 2069, in parsed_version\n    self._parsed_version = pv = parse_version(self.version)
[Mon Nov 19 21:00:48 2007] [error] [client 10.0.0.88]   File "build/bdist.linux-i686/egg/pkg_resources.py", line 2085, in version\n    "Missing 'Version:' header and/or PKG-INFO file", self
[Mon Nov 19 21:00:48 2007] [error] [client 10.0.0.88] ValueError: ("Missing 'Version:' header and/or PKG-INFO file", TracWebAdmin [unknown version] (/usr/local/lib/python2.5/site-packages/TracWebAdmin.egg))


执行 #trac-admin /usr/local/apache2/htdocs/svnroot/test/   upgrade         
       /usr/local/apache2/htdocs/svnroot/test/        为SVN仓库地址
报错如下:
"Missing 'Version:' header and/or PKG-INFO file", self
ValueError: ("Missing 'Version:' header and/or PKG-INFO file", TracWebAdmin [unknown version] (/usr/local/lib/python2.5/site-packages/TracWebAdmin.egg))

是我没有表达清楚还是没有人知道呀?
如果我重新安装trac 的话
在初始化的时候也会报错。
ValueError: ("Missing 'Version:' header and/or PKG-INFO file", TracWebAdmin [unknown version] (/usr/local/lib/python2.5/site-packages/TracWebAdmin.egg))

这个错误,google 也没得解答。


QUOTE:
原帖由 守住每一天 于 2007-11-20 11:04 发表
如果我重新安装trac 的话
在初始化的时候也会报错。
ValueError: ("Missing 'Version:' header and/or PKG-INFO file", TracWebAdmin  (/usr/local/lib/python2.5/site-packages/TracWebAdmin.egg))

这个错 ...

呵.结贴吧.

问题解决了...安装最新的版本就OK 了.自带有webadmin