2016-11-04 95 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