Replies: 4 comments 3 replies
-
try this structure: allow_all_imports: true
apps:
air_raid_alarm: |
Beta Was this translation helpful? Give feedback.
-
pycryptodome version 3.6.6 should also work, and it also has the AES attribute (I looked at the source here: https://pypi.org/project/pycryptodome/3.6.6/#files), I changed the requirements.txt to "pycryptodome==3.6.6" (or perhaps it's not needed at all now), but I still get the same error. |
Beta Was this translation helpful? Give feedback.
-
Another interesting thing, if I use "pycryptodomex" instead (I see I also don't need it in the requirements, it tells me it's included), then I also can't do "from Cryptodome.Cipher import AES" for some reason. |
Beta Was this translation helpful? Give feedback.
-
I took the entire Crypto package from GitHub (which has an attribute for AES) and renamed Crypto to Crypto2. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if I'm doing something wrong here. My py script has "from Crypto.Cipher import AES" which fails.
The error in the log is:
I created a requirements.txt in the the pyscript folder and in it:
I look at the source files (https://pypi.org/project/pycryptodome/#files) and I see that it should include the AES attribute inside Crypto.Cipher. The same code works fine on my computer, so I know the import should work.
Other imports work fine. "Allow All Imports" is selected.
Any assistance will be greatly appreciated...
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions