Trac Project

时间:2016-11-04 18:53:34

标签: python trac

我使用这个Docker文件遇到了使用Docker运行Trac的问题:https://github.com/walty8/docker-trac-dev

我看到的错误是:

Traceback (most recent call last):
  File "/root/trac-trunk/trac/web/api.py", line 708, in send_error
    data, 'text/html')
    File "/root/trac-trunk/trac/web/chrome.py", line 1095, in render_template
    if self.stream_filters:
    File "/root/trac-trunk/trac/core.py", line 82, in extensions
    components = [component.compmgr[cls] for cls in classes]
    File "/root/trac-trunk/trac/core.py", line 212, in __getitem__
    component = cls(self)
    File "/root/trac-trunk/trac/core.py", line 144, in __call__
    self.__init__()
    File "build/bdist.linux-x86_64/egg/tracdeveloper/log.py", line 30, in __init__
    self.log_handler.setFormatter(self.log._trac_handler.formatter)
AttributeError: 'Logger' object has no attribute '_trac_handler'

我在Ubuntu 16.04.01上运行它。我尝试使用旧版本的trac进行安装无济于事。

1 个答案:

答案 0 :(得分:0)

找到解决方案..

Dockerfile缺少关键包; TracDeveloper。 将以下行添加到Dockerfile应解决此问题。

RUN pip install tracdeveloper