You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.
with open('private_key.pem', 'r') as f: key_text = f.read()
private_key = RSA.importKey(key_text)
Above code gives error
ImportError: No module named Crypto.Util.py3compat
I installed pycrypto 2.6.1. Looks like the issue is the way it installed.
It is installed with crypto in my virtualenv. so when I import it as crypto, internal imports like Crypto.Util.py3compat throws error.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
from crypto.PublicKey import RSA
and Using
with open('private_key.pem', 'r') as f: key_text = f.read()
private_key = RSA.importKey(key_text)
Above code gives error
ImportError: No module named Crypto.Util.py3compat
I installed pycrypto 2.6.1. Looks like the issue is the way it installed.
It is installed with crypto in my virtualenv. so when I import it as crypto, internal imports like Crypto.Util.py3compat throws error.
The text was updated successfully, but these errors were encountered: