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

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?

bislinks's picture
Submitted by bislinks on Tue, 05/14/2013 - 19:31 Pro Licensee

Trying to install Trac 1.0.1

bislinks's picture
Submitted by bislinks on Tue, 05/14/2013 - 19:35 Pro Licensee

The installer does not provide option to install a previous version (0.12.5) of Trac.

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.

bislinks's picture
Submitted by bislinks on Tue, 05/14/2013 - 22:15 Pro Licensee

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.

bislinks's picture
Submitted by bislinks on Tue, 05/14/2013 - 22:19 Pro Licensee

I have enabled support login, in case.

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.

bislinks's picture
Submitted by bislinks on Wed, 05/15/2013 - 14:45 Pro Licensee

I just had to upgrade the existing installation using easy_install -U Genshi. It worked.