Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
2653 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
set 24
1565
0
set 24
713
0
mag 24
1574
1
mag 25
1122
3
mag 25
796