Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2729 Lượt xem

py.warnings: :8: DeprecationWarning: invalid escape sequence '\ '

  File "/usr/lib/python3.10/ast.py", line 50, in parse

    return compile(source, filename, mode, flags,

  File "", line 0

    

SyntaxError: invalid syntax


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

This issue is likely caused by backslashes in a couple modules' __manifest__.py files of the enterprise version of Odoo. The likely culprits:

account_bank_statement_import_csv
account_bank_statement_import_ofx
account_bank_statement_import_qif

This can be fixed by simply removing the backslashes found in the files.


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Check in your code whether '\' is used or not.

If you want to include a literal backslash in a string, Replace the single backslash with a double backslash `\\` or use a raw string by prefixing the string with `r`

Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 9 24
1603
0
thg 9 24
746
0
thg 5 24
1619
1
thg 8 25
342
1
thg 5 25
1226