CyberSource / cybersource-rest-client-python

Python client library for the CyberSource REST API
Other
21 stars 36 forks source link

ModuleNotFoundError: No module named 'Crypto' #48

Closed Dave-Lopper closed 9 months ago

Dave-Lopper commented 4 years ago

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 !

jfreres commented 4 years 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.

strbean commented 3 years ago

https://github.com/CyberSource/cybersource-rest-client-python/pull/73

tbrlpld commented 2 years ago

I believe this can be closed as of 0.0.36 release.

XLX-forever commented 1 year ago

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.

jfreres commented 1 year ago

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: @.***>

monu-kumar-visa commented 9 months ago

crypto library has been removed as a dependency from version 0.0.36 and onwards.

wilsonwambugu commented 6 months ago

ModuleNotFoundError: No module named 'cybersource_rest_client_python

AM GETTING this issue