trac-git doesn't support python versions > 2.5

Bug #388911 reported by Josef Spillner
48
This bug affects 8 people
Affects Status Importance Assigned to Milestone
trac-git (Ubuntu)
Fix Released
Critical
Reinhard Tartler
Karmic
Fix Released
High
Reinhard Tartler

Bug Description

Binary package hint: trac-git
Symptoms:

After installing the trac-git package, the directory: /usr/lib/python2.6/dist-packages/tracext/git/ does not exist.

Test case for validations:
after installing the fixed package, the mentioned directory contains the following files:
PyGIT.py PyGIT.pyc __init__.py __init__.pyc git_fs.py git_fs.pyc

Original report:
The plugin is installed and configured, but won't recognise the repository. All steps from README.Debian have been followed. The configuration file is attached.

The error can be seen through the web interface or through trac-admin:

Trac [/home/test/tmptrac]> resync
Resyncing repository history...
Command failed: Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled?
Trac [/home/test/tmptrac]>

Revision history for this message
Josef Spillner (josefspillner) wrote :
Revision history for this message
Josef Spillner (josefspillner) wrote :

Apparently this is not reportbug so I better give some more information about the system (Jaunty):
- trac-git 0.0.20080710-3ubuntu1
- git-core 1:1.6.0.4-1ubuntu2
- trac 0.11.1-2.1

Revision history for this message
Martin Maney (maney) wrote :

I just tripped across this in Ibex with trac-git 0.0.20080710-1. There was an (unintended for release?) change of the python package name, so what has been (still is as far as I konw) called "tracext.git" in upstream was renamed "gitplugin". You might try that, though if I understand his change notes the maintainer reverted that in [Debian's) -2 release, and another bug was fixed in -3. So if Jaunty is based on the last of those, it shouldn't have the renaming, I think.

Oh, and Ibex is totally stone broken with the -1 package. See Debian #498761 for some about that, as well as the clue about the renaming. But I think the actual cause of the problem might be the one described in the last paragraph below.

Or you could just install a distro that supports these packages. This report is the last of the effort I'm going to spend trying to get Trac running on Ubuntu - much easier to run it on one of the Debian-based servers instead of fighting an uphill battle. And some people can't understand why I don't want to use Ubuntu on my servers...

Oh, another glitch in the Debian -3 docs: putting the tracext.git.*=enabled into /etc/trac.ini doesn't do squat for me. /etc/trac/trac.ini neither. Presumably there's *some* place in the filesystem it *does* look for global settings. But that will be a bug for Debian's tracker, where I have hopes it might do some good. And at this point it seems to be working fine on the Lenny box, so on to productive uses of my time.

Revision history for this message
Pavel Plesov (frewq28) wrote :

File /usr/share/pyshared-data/trac says:
[python-package]
format = 1
python-version = all

File /usr/share/pyshared-data/trac-git says:
[python-package]
format = 1
python-version = 2.5

Why trac-git is marked for python 2.5?

P.S. I am using karmic with python 2.6 and do not have python 2.5

Revision history for this message
Patrick Tescher (pat2man) wrote :

I can confirm this issue.

Revision history for this message
Aaron Fellin (fellaaron) wrote :

Nothing seemed to help except for installing TracGit from source. Revision 6401 worked like a charm for me.

~# svn co http://trac-hacks.org/svn/gitplugin/0.11 gitplugin
~# cd gitplugin
~/gitplugin# mkdir /usr/lib/python2.6/site-packages
~/gitplugin# PYTHONPATH=/usr/lib/python2.6/site-packages ./setup.py install -prefix /usr
...
Using /usr/lib/python2.6/dist-packages
Finished processing dependencies for TracGit==0.11.0.2
~/gitplugin#

(/usr/local is a read-only fs on this machine, so we had to install to /usr for now).

Revision history for this message
gordev (zaynyatyi) wrote :

Or you can use python2.5 to run trac.
For example python2.5 /usr/bin/tracd --port 8000 ./ will run test server.

it works for me

Revision history for this message
gordev (zaynyatyi) wrote :
Revision history for this message
Reinhard Tartler (siretart) wrote :
  • p Edit (266 bytes, text/plain)

This untested debdiff should fix the issue.

can anyone confirm?

Changed in trac-git (Ubuntu):
status: New → Triaged
importance: Undecided → Critical
Revision history for this message
Reinhard Tartler (siretart) wrote :

make that this debdiff

Changed in trac-git (Ubuntu):
assignee: nobody → Reinhard Tartler (siretart)
status: Triaged → In Progress
summary: - Unsupported version control system "git"
+ Doesn't support python versions > 2.5
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: Doesn't support python versions > 2.5

This bug was fixed in the package trac-git - 0.0.20090320-1ubuntu2

---------------
trac-git (0.0.20090320-1ubuntu2) lucid; urgency=low

  * allow the package to work with python >= 2.5. LP: #388911
 -- Reinhard Tartler <email address hidden> Wed, 02 Dec 2009 18:20:53 +0100

Changed in trac-git (Ubuntu):
status: In Progress → Fix Released
description: updated
Changed in trac-git (Ubuntu Karmic):
assignee: nobody → Reinhard Tartler (siretart)
Changed in trac-git (Ubuntu Karmic):
status: New → In Progress
importance: Undecided → High
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted trac-git into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in trac-git (Ubuntu Karmic):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Robert Toscano (robert-l-toscano) wrote : Re: Doesn't support python versions > 2.5

I've upgraded to the version in karmic-proposed (0.0.20090320-1ubuntu1.1) and I'm still having problems.

Do I need to upgrade trac as well? Do I need to "enable" the trac-git plugin somewhere?

I'm using trac as an WSGI plugin for apache. I still get the message on my project's trac homepage:

Warning: Can't synchronize with the repository (Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.

And my trac is not producing a log file in the log dir of my deployed project.

Revision history for this message
Martin Pitt (pitti) wrote :

Anyone who can test the proposed package? If not, the proposed update will be removed again. Thanks!

summary: - Doesn't support python versions > 2.5
+ trac-git doesn't support python versions > 2.5
Revision history for this message
Alex Muntada (alex.muntada) wrote :

@Martin just tried the proposed karmic package and it works fine. I've been able to create a new trac instance with a git repo and both the trac-admin and the trac web interface worked as expected.

Thanks!

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package trac-git - 0.0.20090320-1ubuntu1.1

---------------
trac-git (0.0.20090320-1ubuntu1.1) karmic-proposed; urgency=low

  * allow the package to work with python >= 2.5. LP: #388911
 -- Reinhard Tartler <email address hidden> Wed, 02 Dec 2009 18:21:23 +0100

Changed in trac-git (Ubuntu Karmic):
status: Fix Committed → Fix Released
Revision history for this message
Marian Schedenig (m-sched) wrote :

I'm getting this exact problem on lucid (trac-git 0.0.20090320-1ubuntu2). /usr/lib/python2.6/dist-packages/tracext/git/ exists and contains files, but aside from that, the behaviour is the same as described in the original post:

msched@gandalf:~$ sudo trac-admin /var/local/trac/MadMaze/ resync
Resyncing repository history...
Command failed: Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled?

trac was already installed before upgrading the system to lucid, but trac-git was installed only afterwards.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.