2016-11-04 97 views
0

我遇到了使用Docker文件运行Trac和Docker的问题:https://github.com/walty8/docker-trac-devTrac项目的安装问题

,我看到的错误是:

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 01年4月16日运行此。我已经尝试安装与旧版本的trac无济于事。

回答

0

实测溶液..

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

RUN pip install tracdeveloper