python - 在Archlinux中,执行"python setup.py install" 时出错,设置 Gitosis

  显示原文与译文双语对照的内容
0 0

磅,
我在这里克隆了一个gitosis源:
git://github.com/ossxp-com/gitosis.git
在那之后
python setup.py 安装
但是,打印了许多"语法错误",这里是错误日志文件。
如我所见,但是找不到任何这样的问题,因这里这里有一些帮助:

Not SVN Repository
 File"build/bdist.linux-i686/egg/gitosis/run_hook.py", line 22
 except OSError, e:
 ^
SyntaxError: invalid syntax
 File"build/bdist.linux-i686/egg/gitosis/gitdaemon.py", line 23
 except OSError, e:
 ^
SyntaxError: invalid syntax
 File"build/bdist.linux-i686/egg/gitosis/util.py", line 8
 except OSError, e:
 ^
SyntaxError: invalid syntax
 File"build/bdist.linux-i686/egg/gitosis/serve.py", line 142
 util.mkdir(p, 0750)
 ^
SyntaxError: invalid token
 File"build/bdist.linux-i686/egg/gitosis/app.py", line 34
 except CannotReadConfigError, e:
 ^
SyntaxError: invalid syntax
 File"build/bdist.linux-i686/egg/gitosis/test/test_init.py", line 116
 util.check_mode(hook, 0755, is_file=True)
 ^
SyntaxError: invalid token
 File"build/bdist.linux-i686/egg/gitosis/test/util.py", line 12
 except OSError, e:
 ^
SyntaxError: invalid syntax
 File"build/bdist.linux-i686/egg/gitosis/test/test_serve.py", line 340
 util.check_mode(foo, 0750, is_dir=True)
 ^
SyntaxError: invalid token
 File"build/bdist.linux-i686/egg/gitosis/test/test_repository.py", line 26
 check_mode(path, 0750, is_dir=True)
 ^
SyntaxError: invalid token
 File"build/bdist.linux-i686/egg/gitosis/init.py", line 57
 except OSError, e:
 ^
SyntaxError: invalid syntax
 File"build/bdist.linux-i686/egg/gitosis/ssh.py", line 67
 except IOError, e:
 ^
SyntaxError: invalid syntax
 File"build/bdist.linux-i686/egg/gitosis/repository.py", line 39
 util.mkdir(path, 0750)
 ^
SyntaxError: invalid token
 File"/usr/lib/python3.3/site-packages/gitosis-0.2-py3.3.egg/gitosis/run_hook.py", line 22
 except OSError, e:
 ^
SyntaxError: invalid syntax
 File"/usr/lib/python3.3/site-packages/gitosis-0.2-py3.3.egg/gitosis/gitdaemon.py", line 23
 except OSError, e:
 ^
SyntaxError: invalid syntax
 File"/usr/lib/python3.3/site-packages/gitosis-0.2-py3.3.egg/gitosis/util.py", line 8
 except OSError, e:
 ^
SyntaxError: invalid syntax
 File"/usr/lib/python3.3/site-packages/gitosis-0.2-py3.3.egg/gitosis/serve.py", line 142
 util.mkdir(p, 0750)
 ^
SyntaxError: invalid token
 File"/usr/lib/python3.3/site-packages/gitosis-0.2-py3.3.egg/gitosis/app.py", line 34
 except CannotReadConfigError, e:
 ^
SyntaxError: invalid syntax
 File"/usr/lib/python3.3/site-packages/gitosis-0.2-py3.3.egg/gitosis/init.py", line 57
 except OSError, e:
 ^
SyntaxError: invalid syntax
 File"/usr/lib/python3.3/site-packages/gitosis-0.2-py3.3.egg/gitosis/ssh.py", line 67
 except IOError, e:
 ^
SyntaxError: invalid syntax
 File"/usr/lib/python3.3/site-packages/gitosis-0.2-py3.3.egg/gitosis/repository.py", line 39
 util.mkdir(path, 0750)
 ^
SyntaxError: invalid token
 File"/usr/lib/python3.3/site-packages/gitosis-0.2-py3.3.egg/gitosis/test/test_init.py", line 116
 util.check_mode(hook, 0755, is_file=True)
 ^
SyntaxError: invalid token
 File"/usr/lib/python3.3/site-packages/gitosis-0.2-py3.3.egg/gitosis/test/util.py", line 12
 except OSError, e:
 ^
SyntaxError: invalid syntax
 File"/usr/lib/python3.3/site-packages/gitosis-0.2-py3.3.egg/gitosis/test/test_serve.py", line 340
 util.check_mode(foo, 0750, is_dir=True)
 ^
SyntaxError: invalid token
 File"/usr/lib/python3.3/site-packages/gitosis-0.2-py3.3.egg/gitosis/test/test_repository.py", line 26
 check_mode(path, 0750, is_dir=True)
 ^
SyntaxError: invalid token
时间:原作者:3个回答

0 0

gitosis vs gitolite中所述? ,现在, gitosis已经基本上过时了。
Gitolite 是新 gitosis,并使用Perl而不是 python 。

当然,是的,旧版本的gitosis需要 python2.x ( 。由于首次发布日期从 2001年开始,所以不是 suprising ) 。

原作者:
...