odoo16 奇怪错误

odoo16 奇怪错误:

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 "", 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

查到原因,因转移文件,用记录本简单打开了配置文件,修改保存了,出现以上错误

记事本打开后重新保存,会引起以上编码错误

你可能感兴趣的:(python,windows,制造)