odoo16 strange error

odoo16 strange error:

2023-06-14 11:25:03,377 544 ERROR ? odoo.http: Exception during request handling. 
Traceback (most recent call last):
  File "C:\od162306\odoo\http.py", line 1984, in __call__
    if self.get_static_file(httprequest.path):
  File "C:\od162306\odoo\http.py", line 1898, in get_static_file
    if (module not in self.statics or static != 'static' or not resource):
  File "C:\od162306\odoo\tools\func.py", line 28, in __get__
    value = self.fget(obj)
  File "C:\od162306\odoo\http.py", line 1868, in statics
    manifest = get_manifest(module)
  File "C:\od162306\odoo\modules\module.py", line 411, in get_manifest
    return load_manifest(module, mod_path)
  File "C:\od162306\odoo\modules\module.py", line 364, in load_manifest
    manifest.update(ast.literal_eval(f.read()))
  File "C:\Python37\lib\ast.py", line 46, in literal_eval
    node_or_string = parse(node_or_string, mode='eval')
  File "C:\Python37\lib\ast.py", line 35, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 1
    # -*- coding: utf-8 -*-
    ^
SyntaxError: invalid character in identifier
2023-06-14 11:25:03,377 544 INFO ? werkzeug: 219.156.27.147 - - [14/Jun/2023 11:25:03] "GET /web/database/selector HTTP/1.1" 500 - 1 0.000 0.891
2023-06-14 11:25:03,470 544 INFO ? werkzeug: 219.156.27.147 - - [14/Jun/2023 11:25:03] "GET /favicon.ico HTTP/1.1" 404 - 1 0.000 0.031

The reason was found, because the file was transferred, the configuration file was simply opened with the notebook, the modification was saved, and the above error occurred

After opening the notepad and saving it again, the above encoding error will be caused

Guess you like

Origin blog.csdn.net/fqfq123456/article/details/131214419