3
運行odoo時
我試圖從pycharm odoo運行,但是當我試圖在Web應用程序,我得到「500內部錯誤」,並得到了以下堆棧跟蹤:錯誤從Pycharm
2015-02-23 04:09:13,189 21888 INFO project werkzeug: 127.0.0.1 - - [23/Feb/2015 04:09:13] "GET /web HTTP/1.1" 500 -
2015-02-23 04:09:13,196 21888 ERROR project werkzeug: Error on request:
Traceback (most recent call last):
File "/home/fauzan/Projects/virtenv/odoo/lib/python2.7/site-packages/werkzeug/serving.py", line 177, in run_wsgi
execute(self.server.app)
File "/home/fauzan/Projects/virtenv/odoo/lib/python2.7/site-packages/werkzeug/serving.py", line 165, in execute
application_iter = app(environ, start_response)
File "/home/fauzan/Projects/odoo-8.0/openerp/service/server.py", line 281, in app
return self.app(e, s)
File "/home/fauzan/Projects/odoo-8.0/openerp/service/wsgi_server.py", line 216, in application
return application_unproxied(environ, start_response)
File "/home/fauzan/Projects/odoo-8.0/openerp/service/wsgi_server.py", line 202, in application_unproxied
result = handler(environ, start_response)
File "/home/fauzan/Projects/odoo-8.0/openerp/http.py", line 1239, in __call__
return self.dispatch(environ, start_response)
File "/home/fauzan/Projects/odoo-8.0/openerp/http.py", line 1213, in __call__
return self.app(environ, start_wrapped)
File "/home/fauzan/Projects/virtenv/odoo/lib/python2.7/site-packages/werkzeug/wsgi.py", line 588, in __call__
return self.app(environ, start_response)
File "/home/fauzan/Projects/odoo-8.0/openerp/http.py", line 1380, in dispatch
result = ir_http._dispatch()
File "/home/fauzan/Projects/odoo-8.0/addons/crm/ir_http.py", line 13, in _dispatch
response = super(ir_http, self)._dispatch()
File "/home/fauzan/Projects/odoo-8.0/addons/website/models/ir_http.py", line 49, in _dispatch
request.website = None
File "/home/fauzan/Projects/virtenv/odoo/lib/python2.7/site-packages/werkzeug/local.py", line 355, in <lambda>
__setattr__ = lambda x, n, v: setattr(x._get_current_object(), n, v)
File "/home/fauzan/Projects/virtenv/odoo/lib/python2.7/site-packages/werkzeug/local.py", line 297, in _get_current_object
return self.__local()
File "/home/fauzan/Projects/virtenv/odoo/lib/python2.7/site-packages/werkzeug/local.py", line 132, in _lookup
raise RuntimeError('object unbound')
對於運行/調試配置我使用:
- 腳本:/home/fauzan/Projects/odoo-8.0/openerp-server
- Python解釋器:Python的2.7.8的virtualenv
- 工作目錄:/家庭/ fauzan /項目/ odoo- 8.0
感謝您的幫助