【发布时间】:2012-06-15 16:19:56
【问题描述】:
我最近第一次在 Windows 上安装了 Trac。设置完所有内容后,尝试浏览 GIT 存储库中的源时出现此错误:
Trac detected an internal error:
WindowsError: (5, 'Access is denied')
看起来好像很多人都没有遇到过这个问题,因为这个问题的唯一票证错误没有得到很多回应,但是有人建议我修改文件 PyGIT.py。进一步研究我自己的异常,我发现:
return gen.next()
yield historian
if p:
p[0].stdout.close()
p[0].terminate() # <-- This line highlighted as the problem
p[0].wait()
def last_change(self, sha, path, historian=None):
if historian is not None:
return historian(path)
现在我不确定,但我读到这与 windows 如何处理导致错误的p[0].terminate() 有关,有人建议通过将其更改为忽略异常:
try:
p[0].terminate()
except WindowsError:
pass
天气好不好,我不知道。但我想知道的是 - 这个 PyGIT.py 文件到底在哪里?我所要走的只是路:
build/bdist.win32/egg/tracext/git/PyGIT.py
我认为这不是已编译文件或其他内容的一部分是否正确?我安装了将代码运行为 .egg 的插件
如果有人可以帮我一把,我只想看看我是否可以修改文件!
谢谢
【问题讨论】:
标签: python windows compiler-errors trac