跳至內容
選單
此問題已被標幟
2 回覆
2646 瀏覽次數

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


頭像
捨棄
最佳答案

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.


頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
9月 24
1560
0
9月 24
704
0
5月 24
1569
1
5月 25
1115
3
5月 25
786