콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

I was merging my odoo custom addons local folder to a remote repo and when trying to open the server I got a `Internal Server Error 500`. On the `Pycharm` Console I got this other error:

2022-04-04 12:48:08,300 33939 INFO ? odoo\.service\.server:\ HTTP\ service\ \(werkzeug\)\ running\ on\ masterit:8014\
2022\-04\-04\ 12:48:10,633\ 33939\ INFO\ \?\ werkzeug:\ 192\.168\.1\.69\ \-\ \-\ \[04/Apr/2022\ 12:48:10\]\ "GET\ /\ HTTP/1\.1"\ 500\ \-\ \-\ \-\ \-
2022\-04\-04\ 12:48:10,635\ 33939\ ERROR\ \?\ werkzeug:\ Error\ on\ request:
Traceback\ \(most\ recent\ call\ last\):
\ \ File\ "/home/thecowmilk/Development/odoo12/odoo/venv/lib/python3\.8/site\-packages/werkzeug/serving\.py",\ line\ 205,\ in\ run_wsgi
\ \ \ \ execute\(self\.server\.app\)
\ \ File\ "/home/thecowmilk/Development/odoo12/odoo/venv/lib/python3\.8/site\-packages/werkzeug/serving\.py",\ line\ 193,\ in\ execute
\ \ \ \ application_iter\ =\ app\(environ,\ start_response\)
\ \ File\ "/home/thecowmilk/Development/odoo12/odoo/odoo/service/server\.py",\ line\ 436,\ in\ app
\ \ \ \ return\ self\.app\(e,\ s\)
\ \ File\ "/home/thecowmilk/Development/odoo12/odoo/odoo/service/wsgi_server\.py",\ line\ 142,\ in\ application
\ \ \ \ return\ application_unproxied\(environ,\ start_response\)
\ \ File\ "/home/thecowmilk/Development/odoo12/odoo/odoo/service/wsgi_server\.py",\ line\ 117,\ in\ application_unproxied
\ \ \ \ result\ =\ odoo.http.root(environ, start_response)
File "/home/thecowmilk/Development/odoo12/odoo/odoo/http.py", line 1319, in __call__
self.load_addons()
File "/home/thecowmilk/Development/odoo12/odoo/odoo/http.py", line 1335, in load_addons
manifest = ast.literal_eval(pycompat.to_native(manifest_data))
File "/usr/lib/python3.8/ast.py", line 59, in literal_eval
node_or_string = parse(node_or_string, mode='eval')
File "/usr/lib/python3.8/ast.py", line 47, in parse
return compile(source, filename, mode, flags,
File "", line 31
{
^
SyntaxError: invalid syntax - - -

I don't know how to fix this... The only folder that was changed was that custom addons... Thanks in Advance!

아바타
취소

It seems you have an issue in your new merged custom addons. As per the error, the error raise once loading the addons. the python can't parse one of your python code.

작성자

Hello Waleed, it seems that you are right. Even though pycharm doesn't rise any error though. Do you know how I could deal with this problem?

관련 게시물 답글 화면 활동
6
4월 24
23394
1
1월 24
1744
3
11월 23
16968
3
11월 24
24344
1
4월 23
5835