trying to install git server using gitosis on SUSE 11.1

Pretty much after a standard SUSE 11.1 install, I had to do the following:

zypper install git-core
git clone git://
cd gitosis
#python install
#failed due to missing setuptools
zypper install python-setuptools
#python install
#missing /usr/local/lib/python2.6/site-packages/…
ln -s /usr/lib/python2.6 /usr/local/lib/python2.6
python install
#now I have the following error:

File “/usr/lib/python2.6/”, line 338, in abspath

return normpath(path)

File “/usr/lib/python2.6/”, line 309, in normpath

if path == ‘’:

#RuntimeError: maximum recursion depth exceeded in cmp

Has anyone else done this and got beyond my current error?

On this python error, I found posts that recommended adding:
to the start of the code. Problem is, I know nothing about python and not sure if I put the line in the right place.


Thanks in advance for your help.

Hi Joe,

I did this:
export PYTHONPATH=/usr/lib/python
sudo mkdir -p /usr/local/lib/python2.6/site-packages/
sudo python install

It seems to install successfully.


Worked perfectly on my openSUSE 11.1 (i586), too. Thanks a lot Michael!