Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/308.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在Ubuntu 10.04上运行Trac 0.12-错误_Python_Trac_Ubuntu 10.04 - Fatal编程技术网

Python 在Ubuntu 10.04上运行Trac 0.12-错误

Python 在Ubuntu 10.04上运行Trac 0.12-错误,python,trac,ubuntu-10.04,Python,Trac,Ubuntu 10.04,我已经在我的ubuntu 10.04上安装了trac 0.12,运行tracd内部Web服务器。当我访问位于的页面时,会收到错误消息: Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.7-py2.6.egg/trac/web/api.py", line 376, in send_error 'text/html') File "/usr/local/

我已经在我的ubuntu 10.04上安装了trac 0.12,运行tracd内部Web服务器。当我访问位于的页面时,会收到错误消息:

Traceback (most recent call last):   File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.7-py2.6.egg/trac/web/api.py", line 376, in send_error
    'text/html')   File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.7-py2.6.egg/trac/web/chrome.py", line 733, in render_template
    message = req.session.pop('chrome.%s.%d' % (type_, i))   File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.7-py2.6.egg/trac/web/api.py", line 195, in __getattr__
    value = self.callbacks[name](self)   File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.7-py2.6.egg/trac/web/main.py", line 265, in _get_session
    return Session(self.env, req)   File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.7-py2.6.egg/trac/web/session.py", line 157, in __init__
    self.get_session(sid)   File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.7-py2.6.egg/trac/web/session.py", line 178, in get_session
    super(Session, self).get_session(sid, authenticated)  File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.7-py2.6.egg/trac/web/session.py", line 59, in get_session
    (sid, int(authenticated)))   File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.7-py2.6.egg/trac/db/util.py", line 64, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)   File "/usr/local/lib/python2.6/dist-packages/Trac-0.11.7-py2.6.egg/trac/db/util.py", line 64, in execute
    return self.cursor.execute(sql_escape_percent(sql), args) InternalError: current transaction is aborted, commands ignored until end of transaction block

您安装了Trac 0.12?您的回溯显示“Trac-0.11.7-py2.6.egg”。看起来您需要进行一些清理。

似乎您收到了错误的错误消息。它应该是“错误:stackoverflow用于编程问题”。谢谢,但是您如何进行清理?查看您的回溯,找到旧安装的Trac并将其删除。(建议备份,以防您出错。)