Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
4 Відповіді
4898 Переглядів

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
Аватар
Відмінити
Найкраща відповідь

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. 

Аватар
Відмінити
Автор

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

Найкраща відповідь

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.

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Автор

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

Найкраща відповідь

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

Аватар
Відмінити
Автор

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 Відповіді Переглядів Дія
0
січ. 25
504
6
квіт. 24
23100
1
квіт. 24
926
0
жовт. 22
2416
1
черв. 24
1383