Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda

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!

Avatar
Buang

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.

Penulis

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?

Post Terkait Replies Tampilan Aktivitas
6
Apr 24
23332
1
Jan 24
1710
3
Nov 23
16836
3
Nov 24
24153
1
Apr 23
5750