OneDrive icon indicating copy to clipboard operation
OneDrive copied to clipboard

Python with error odl.py:2: SyntaxWarning: invalid escape sequence '\A' and missing Crypto library

Open Alexeijn opened this issue 1 year ago • 2 comments

Python is complaining about 2 things:

  1. Invalid escape sequence \A %userprofile%\Downloads\odl.py:2: SyntaxWarning: invalid escape sequence '\A' """

  2. No lib Crypto Traceback (most recent call last): File "%useprofile%\Downloads\odl.py", line 53, in from Crypto.Cipher import AES ModuleNotFoundError: No module named 'Crypto'

Iusing Oficial Python, not the Microsoft python in the store. Ive tested with Microsoft Store python version and the result is the same.

Alexeijn avatar Jul 06 '24 22:07 Alexeijn

Sounds like the dependencies are not met. Did you install construct and pycryptodome?

Beercow avatar Jul 06 '24 23:07 Beercow

Oh, my mistake, I didn`t installed pycryptodome.

But after doing it, the first error is shown as a SyntaxWarning: %userprofile%\Downloads\odl.py:2: SyntaxWarning: invalid escape sequence '\A' """

Alexeijn avatar Jul 07 '24 03:07 Alexeijn

A requirements.txt file has now been added to specify the required modules. Also fixed the syntax warning for python 3.12

ydkhatri avatar Oct 31 '24 23:10 ydkhatri