Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
2746 Visninger

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


Avatar
Kassér
Bedste svar

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.


Avatar
Kassér
Bedste svar

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

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
sep. 24
1623
0
sep. 24
747
0
maj 24
1629
1
aug. 25
441
1
maj 25
1274