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 ) 。

原作者:
...