Closed Dave-Lopper closed 9 months ago
In the libs folder of site-packages rename your crypto package folder to upper case Crypto. Not a fix just a workaround! I'm waiting on the actual resolution for example if your cloud-hosted and do not have source access to your project's environment packages.
I believe this can be closed as of 0.0.36
release.
I am also getting the ModuleNotFoundError: No module named 'Crypto' issue. I have checked that I already installed it using pip3 install pycryptodome and it is in the Scripts folder.
Last, I recall the workaround was posted above. However, the module has changed since.
Justin Freres
From: XLX-forever @.> Sent: Thursday, December 15, 2022 3:26 AM To: CyberSource/cybersource-rest-client-python @.> Cc: Freres, Justin @.>; Comment @.> Subject: Re: [CyberSource/cybersource-rest-client-python] ModuleNotFoundError: No module named 'Crypto' (#48)
[EXTERNAL EMAIL]
I am also getting the ModuleNotFoundError: No module named 'Crypto' issue. I have checked that I already installed it using pip3 install pycryptodome and it is in the Scripts folder.
— Reply to this email directly, view it on GitHubhttps://github.com/CyberSource/cybersource-rest-client-python/issues/48#issuecomment-1352775801, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJWRKE7BTQK6W75ERRVLV2DWNLPY5ANCNFSM4OO65EFQ. You are receiving this because you commented.Message ID: @.***>
crypto
library has been removed as a dependency from version 0.0.36 and onwards.
ModuleNotFoundError: No module named 'cybersource_rest_client_python
AM GETTING this issue
Hello, I'm just getting working on a project using cybersource, and I'm having a dependancy problem : "ModuleNotFoundError: No module named 'Crypto'" Whenever trying to run anything related to the (django) project.
After some digging, the error occurs on CyberSource/utilities/flex/rsa_verify.py", line 1, and seems to be caused by the case of the import, there is indeed a "crypto" package, when the "Crypto" package is imported;
Thanks guys !