Page 1 of 1
Problem with Python Crypto package
Posted:
Wed Oct 12, 2022 2:50 pm
by racarter
I'm developing a plugin which needs the Python Crypto package. Installing it under Python3 in Terminal works fine, and my test code runs perfectly, but if I include the Crypto package in my plugin folder and run the same code in my plugin I get an error message:
Cannot load native module 'Crypto.Cipher._raw_ecb': Not found '_raw_ecb.cpython-310-darwin.so', Not found '_raw_ecb.abi3.so', Not found '_raw_ecb.so'
I've tried using Cryptodome but get the same result.
Any advice gratefully received!
Re: Problem with Python Crypto package
Posted:
Wed Oct 12, 2022 4:25 pm
by DaveL17
Are you saying that you can see those files in your plugin tree but can't load them?
Re: Problem with Python Crypto package
Posted:
Wed Oct 12, 2022 11:16 pm
by racarter
No, that's the weird thing. I've run searches and the only one of the files I can find is _raw_ecb.abi3.so, which is in the Crypto/Cipher folder as expected.
I thought it might be an M1 issue, but I've tried the same thing on my non-M1 dev machine and get the same result.
Re: Problem with Python Crypto package
Posted:
Wed Oct 12, 2022 11:59 pm
by GlennNZ
The cryto package installs relevant binaries. Typically have to pip3 install it for plugins.
I need to use it for a couple - and are stuck with pip3 for the moment….
Glenn
Sent from my iPad using Tapatalk
Re: Problem with Python Crypto package
Posted:
Thu Oct 13, 2022 2:07 am
by racarter
Hi Glenn
Tried that but got the same error - until it occurred to me to delete the package from my plugin folder!
Thanks for the info.
Problem with Python Crypto package
Posted:
Thu Oct 13, 2022 2:14 am
by GlennNZ
racarter wrote:I'm developing a plugin which needs the Python Crypto package. Installing it under Python3 in Terminal works fine, and my test code runs perfectly, but if I include the Crypto package in my plugin folder and run the same code in my plugin I get an error message:
Cannot load native module 'Crypto.Cipher._raw_ecb': Not found '_raw_ecb.cpython-310-darwin.so', Not found '_raw_ecb.abi3.so', Not found '_raw_ecb.so'
I've tried using Cryptodome but get the same result.
Any advice gratefully received!
Ok.
Must have missed something.
Edit:
See the deletion of package - yep that would do it!