Skip to Content
Menu
This question has been flagged
4 Replies
4877 Views

Suddenly I am getting this error message after running the server.

Traceback (most recent call last):
  File "D:\odoo17_enterprise\server\odoo\http.py", line 2155, in __call__
    if self.get_static_file(httprequest.path):
  File "D:\odoo17_enterprise\server\odoo\http.py", line 2051, in get_static_file
    if (module not in self.statics or static != 'static' or not resource):
  File "D:\odoo17_enterprise\server\odoo\tools\func.py", line 28, in __get__
    value = self.fget(obj)
  File "D:\odoo17_enterprise\server\odoo\http.py", line 2021, in statics
    manifest = get_manifest(module)
  File "D:\odoo17_enterprise\server\odoo\modules\module.py", line 368, in get_manifest
    return copy.deepcopy(_get_manifest_cached(module, mod_path))
  File "D:\odoo17_enterprise\server\odoo\modules\module.py", line 372, in _get_manifest_cached
    return load_manifest(module, mod_path)
  File "D:\odoo17_enterprise\server\odoo\modules\module.py", line 319, in load_manifest
    manifest.update(ast.literal_eval(f.read()))
  File "D:\odoo17_enterprise\server\odoo\tools\_monkeypatches.py", line 65, in literal_eval
    return orig_literal_eval(expr)
  File "D:\odoo17_enterprise\python\lib\ast.py", line 64, in literal_eval
    node_or_string = parse(node_or_string.lstrip(" \t"), mode='eval')
  File "D:\odoo17_enterprise\python\lib\ast.py", line 50, in parse
    return compile(source, filename, mode, flags,
  File "", line 0
Avatar
Discard
Best Answer

Hard to say what could be wrong, probably some last changes in your code breaks it. 
Try to run it with new database. Without auto install all of your modules and then try to turn one by one and you will see what will brake it. I'm sorry but i didn't have better solution for you. 

Avatar
Discard
Author

Thanks for the advice. Had to remove the old database. Things are working now, so not sure what caused the problem.

Best Answer

Hi junaid, I hope you solved your problem with the testing DB. But in such a case where the server has not been responding, and addition to the steps recommended bellow . I strongly suggest reviewing the original code and make sure that your code has not been manipulated with and armed with good knowledge in any IDE of your choice the problem could be solved and tracked very well.

Avatar
Discard
Best Answer

Hi,
Most probably the error will be from some custom modules added in the server. You can do as follows.

If the error is raised in a development environment:
* remove the custom addons path from your configuration file
* run the odoo and see if it works smooth


If the odoo is running fine at this moment, you can confirm that the error is coming from the custom codes, then check for the recently added module to the path and cross check its manifest file.

Thanks

Avatar
Discard
Author

Thanks for the advice. I removed that db, couldn't figure out the cause.

Best Answer

Could you give us more context?
what was you doing? did you install a module? or modify some view?

Avatar
Discard
Author

I did modify views, they were working without trouble so I am not sure what caused this problem. Luckily it is just a testing db, I changed the db.

Related Posts Replies Views Activity
0
Jan 25
502
6
Apr 24
23093
1
Apr 24
922
0
Oct 22
2412
1
Jun 24
1374