When I install Trac, I get the following error.
Traceback (most recent call last):
File "setup.py", line 162, in <module>
**extra
File "/usr/lib64/python2.6/distutils/core.py", line 113, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/lib/python2.6/site-packages/setuptools/dist.py", line 221, in __init__
self.fetch_build_eggs(attrs.pop('setup_requires'))
File "/usr/lib/python2.6/site-packages/setuptools/dist.py", line 245, in fetch_build_eggs
parse_requirements(requires), installer=self.fetch_build_egg
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 550, in resolve
raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (Genshi 0.5.1 (/usr/lib64/python2.6/site-packages), Requirement.parse('Genshi>=0.6'))
.. failed! See the error message above for the reason why.
Status:
Active
Comments
Submitted by andreychek on Tue, 05/14/2013 - 18:12 Comment #1
Hmm, it looks like that version of Trac is requiring a version of the Genshi library that's not supplied with CentOS.
Just to verify, what Trac version are you attempting to install?
Trying to install Trac 1.0.1
The installer does not provide option to install a previous version (0.12.5) of Trac.
Submitted by JamieCameron on Tue, 05/14/2013 - 20:49 Comment #4
Are you sure Virtualmin doesn't offer you the option to install Trac 0.12.5 ? It should be in the version drop-down menu in the scripts list.
It does. Probably some error that one time.
Again I got the error after trying to install the older version:
Traceback (most recent call last): File "setup.py", line 156, in **extra File "/usr/lib64/python2.6/distutils/core.py", line 113, in setup _setup_distribution = dist = klass(attrs) File "/usr/lib/python2.6/site-packages/setuptools/dist.py", line 221, in __init__ self.fetch_build_eggs(attrs.pop('setup_requires')) File "/usr/lib/python2.6/site-packages/setuptools/dist.py", line 245, in fetch_build_eggs parse_requirements(requires), installer=self.fetch_build_egg File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 550, in resolve raise VersionConflict(dist,req) # XXX put more info here pkg_resources.VersionConflict: (Genshi 0.5.1 (/usr/lib64/python2.6/site-packages), Requirement.parse('Genshi>=0.6,<0.7dev'))
.. failed! See the error message above for the reason why.
I have enabled support login, in case.
Submitted by andreychek on Wed, 05/15/2013 - 07:52 Comment #7
We've been reviewing this issue, and it appears that at some point trac has been updated to require dependencies that aren't available on CentOS.
Unfortunately, this means trac may no longer work via the automated Install Scripts; we're debating on how best to handle that, but it may mean removing trac from the list of available software on CentOS.
However, one think you could do is to manually install the Genshi dependency from the Python repository, which appears to be the primary problem.
Instructions on doing that are here:
http://genshi.edgewall.org/wiki/Download
If you first install the "python-setuptools" package (with "yum install python-setuptools"), you should be able to use the "easy_install Genshi" command they mention to install it.
If you opt to do the manual installation of the Genshi dependency, I'm curious if that resolves the Trac installation problem you're seeing.
I just had to upgrade the existing installation using easy_install -U Genshi. It worked.