I found out that an egg is basically a zip file, with some additional info 
about the egg. With that in mind I figured out how to edit the file.

In the beginning BBEdit wanted me to save a copy of the file until I found 
that by renaming the file, and unzipping it, I could the edit it. I am sure 
there must be an easier way to do this, but being new to git, and knowing 
nothing about python, I am content that I was able to get the changes made. 
However I still have the same problem as before.

$ locate TracGit
---> /Library/Python/2.7/site-packages/TracGit-0.12.0.5dev-py2.7.egg

$ cd /Library/Python/2.7/site-packages

$ ls -la
---> total 6840
---> drwxr-xr-x  9 root  wheel      306 Jun 18 20:14 .
---> drwxr-xr-x  3 root  wheel      102 Aug  2  2011 ..
---> -rw-r--r--  1 root  wheel   260631 May 31 17:18 Genshi-0.6-py2.7.egg
---> -rw-r--r--  1 root  wheel      119 May 30 21:36 README
---> -rw-r--r--  1 root  wheel  1551223 May 31 17:18 Trac-0.12-py2.7.egg
---> -rw-r--r--  1 root  wheel  1627674 May 31 17:19 Trac-0.12.3-py2.7.egg
---> -rw-r--r--  1 root  wheel    50823 Jun 18 19:56 
TracGit-0.12.0.5dev-py2.7.egg
---> drwxrwxr-x  3 root  wheel      102 Jun 18 20:47 __MACOSX
---> -rw-r--r--  1 root  wheel      264 Jun 18 16:33 easy-install.pth

$ sudo mv TracGit-0.12.0.5dev-py2.7.egg TracGit-0.12.0.5dev-py2.7.zip

$ sudo unzip TracGit-0.12.0.5dev-py2.7.zip

$ sudo chmod -R 777 TracGit-0.12.0.5dev-py2.7

$ bbedit TracGit-0.12.0.5dev-py2.7

use bbedit to :

( 1 ) navigate to tracext/git/PyGIT.py

without the quotes:

( 2 ) search  : "_, _, version = v.strip().split()"
( 3 ) replace : "version = v.strip().split()[2]"

( 4 ) Save the file and quit out of bbedit

$ sudo chmod -R 644 TracGit-0.12.0.5dev-py2.7
$ sudo chown -R root:wheel TracGit-0.12.0.5dev-py2.7

$ zip -r TracGit-0.12.0.5dev-py2.7

$ sudo chmod 644 TracGit-0.12.0.5dev-py2.7.zip
$ sudo chown root:wheel TracGit-0.12.0.5dev-py2.7.zip

$ sudo mv TracGit-0.12.0.5dev-py2.7.zip TracGit-0.12.0.5dev-py2.7.egg

restarted the server, trac, etc, and I still get :

Warning: Can't synchronize with repository "(default)" (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.


I am about to give up on this...

>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/trac-users/-/6lz2I-uEgy4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.

Reply via email to