Ir al contenido
Menú
Se marcó esta pregunta
4 Respuestas
4906 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Autor

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

Mejor respuesta

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
Descartar
Mejor respuesta

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
Descartar
Autor

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

Mejor respuesta

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

Avatar
Descartar
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.

Publicaciones relacionadas Respuestas Vistas Actividad
0
ene 25
505
6
abr 24
23103
1
abr 24
927
0
oct 22
2419
1
jun 24
1384