Skip to content
This repository has been archived by the owner on Jan 27, 2022. It is now read-only.

ImportError: No module named Crypto.Util.py3compat #272

Open
Vijendra07Kulhade opened this issue Aug 2, 2018 · 0 comments
Open

ImportError: No module named Crypto.Util.py3compat #272

Vijendra07Kulhade opened this issue Aug 2, 2018 · 0 comments

Comments

@Vijendra07Kulhade
Copy link

Vijendra07Kulhade commented Aug 2, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant