Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
4 Răspunsuri
5795 Vizualizări

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
Imagine profil
Abandonează
Cel mai bun răspuns

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. 

Imagine profil
Abandonează
Autor

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

Cel mai bun răspuns

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor

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

Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor

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 Răspunsuri Vizualizări Activitate
0
ian. 25
1038
6
apr. 24
23714
1
apr. 24
1661
0
oct. 22
2822
1
iun. 24
1819