为什么GitZilla的更新钩子会在推送时抛出错误消息?

时间:2011-08-17 17:21:40

标签: git bugzilla pybugz

配置Gitzilla网站上所述的所有内容。

我的git repo工作好几周了...... Bugzilla工作正常......

在结束Gitzilla的配置后,我分支并测试,看看我是否可以推送它并记录...它给了我这个错误:

Counting objects: 57, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (42/42), done.
Writing objects: 100% (54/54), 5.59 KiB, done.
Total 54 (delta 16), reused 0 (delta 0)
remote: Traceback (most recent call last):
remote:   File "hooks/update", line 8, in <module>
remote:     load_entry_point('gitzilla==2.0', 'console_scripts', 'gitzilla-update')()
remote:   File "build/bdist.freebsd-8.2-RELEASE-amd64/egg/pkg_resources.py", line 318, in load_entry_point
remote:   File "build/bdist.freebsd-8.2-RELEASE-amd64/egg/pkg_resources.py", line 2221, in load_entry_point
remote:   File "build/bdist.freebsd-8.2-RELEASE-amd64/egg/pkg_resources.py", line 1954, in load
remote:   File "build/bdist.freebsd-8.2-RELEASE-amd64/egg/gitzilla/hookscripts.py", line 11, in <module>
remote:   File "build/bdist.freebsd-8.2-RELEASE-amd64/egg/gitzilla/hooks.py", line 9, in <module>
remote:   File "build/bdist.freebsd-8.2-RELEASE-amd64/egg/gitzilla/utils.py", line 10, in <module>
remote: ImportError: No module named bugz.bugzilla
remote: error: hook declined to update refs/heads/roger/gitzilla
To ssh://git@git.some.net/usr/local/git/some.git
 ! [remote rejected] roger/gitzilla -> roger/gitzilla (hook declined)
error: failed to push some refs to 'ssh://git@git.some.net/usr/local/git/some.git'

1 个答案:

答案 0 :(得分:2)

你需要安装pybugz - 我有完全相同的问题

git repo在这里 https://github.com/williamh/pybugz

查看要求 要求 ............

要安装和运行GitZilla,您需要:

  • Python(使用2.6.4测试,应该使用&gt; = 2.5)
  • pybugz(用0.8.0测试)