While I am trying to init the gitosis, I got the following errors, any idea?

:~$ sudo -H -u git gitosis-init < ida_rsa.pub
[sudo] password for chinablc:
Sorry, try again.
[sudo] password for chinablc:
Traceback (most recent call last):
  File "/usr/bin/gitosis-init", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2562, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 626, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 524, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: gitosis==0.2
link|improve this question
Belongs on serverfault – hobodave Jul 27 '09 at 4:40
Ok will close it sooon. – Shuoling Liu Jul 27 '09 at 8:25
feedback

migrated from stackoverflow.com Jul 29 '09 at 0:27

This question came from our site for professional and enthusiast programmers.

2 Answers

The problem been addressed:

Need install the latest python, as the version in the tutorial had the problem and been fixed in the later versions.

Thanks for helps

link|improve this answer
feedback

Furthermore, gitosis is located in the repositories of many distributions, and I strongly recommend installing gitosis with your distribution's packages when at all possible.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown