From shaikoni at gmail.com Sat Nov 21 05:55:31 2020 From: shaikoni at gmail.com (Shai Anany) Date: Sat, 21 Nov 2020 12:55:31 +0200 Subject: [Cryptography-dev] ModuleNotFoundError: No module named 'cryptography' Message-ID: Hi there I have already successfully installed cryptography on my computer but when trying to run the code: from cryptography.fernet import Fernet import base64 key = Fernet.generate_key() cipher = Fernet(key) message = "Message to be encrypted".encode('utf-8') token = cipher.encrypt(message) cipher = Fernet(key) decoded = cipher.decrypt(token) print(decoded) Traceback (most recent call last): File ".../Crypto.py", line 1, in from cryptography.fernet import Fernet ModuleNotFoundError: No module named 'cryptography' Process finished with exit code 1 When checking crypto installation I can see that it's installed on: ...\\PycharmProjects\\pythonProject\\venv\\lib\\site-packages ...\\PycharmProjects\\pythonProject\\venv ...\\AppData\\Local\\Programs\\Python\\Python38-32 ...\\AppData\\Local\\Programs\\Python\\Python38-32 ...\\AppData\\Local\\Programs\\Python\\Python38-32\\DLLs ...\\AppData\\Local\\Programs\\Python\\Python38-32\\python38.zip ...\\PycharmProjects\\pythonProject ...\\Desktop I'm saving my code on the Desktop. I'm using Python 3.8.6. What else can be the issue here? BR Shai [image: Mailtrack] Sender notified by Mailtrack 11/21/20, 12:54:10 PM -------------- next part -------------- An HTML attachment was scrubbed... URL: From shaikoni at gmail.com Sat Nov 21 06:23:43 2020 From: shaikoni at gmail.com (Shai Anany) Date: Sat, 21 Nov 2020 13:23:43 +0200 Subject: [Cryptography-dev] ModuleNotFoundError: No module named 'cryptography' In-Reply-To: References: Message-ID: ... I'm using cryptography-3.2.1 [image: Mailtrack] Sender notified by Mailtrack 11/21/20, 01:23:19 PM On Sat, Nov 21, 2020 at 12:55 PM Shai Anany wrote: > Hi there > > I have already successfully installed cryptography on my computer but when > trying to run the code: > > from cryptography.fernet import Fernet > import base64 > > key = Fernet.generate_key() > cipher = Fernet(key) > > message = "Message to be encrypted".encode('utf-8') > token = cipher.encrypt(message) > > cipher = Fernet(key) > > decoded = cipher.decrypt(token) > print(decoded) > > > Traceback (most recent call last): > File ".../Crypto.py", line 1, in > from cryptography.fernet import Fernet > ModuleNotFoundError: No module named 'cryptography' > > Process finished with exit code 1 > > When checking crypto installation I can see that it's installed on: > > ...\\PycharmProjects\\pythonProject\\venv\\lib\\site-packages > ...\\PycharmProjects\\pythonProject\\venv > ...\\AppData\\Local\\Programs\\Python\\Python38-32 > ...\\AppData\\Local\\Programs\\Python\\Python38-32 > ...\\AppData\\Local\\Programs\\Python\\Python38-32\\DLLs > ...\\AppData\\Local\\Programs\\Python\\Python38-32\\python38.zip > ...\\PycharmProjects\\pythonProject > ...\\Desktop > > I'm saving my code on the Desktop. I'm using Python 3.8.6. > > What else can be the issue here? > > BR > Shai > > > > > > [image: Mailtrack] > Sender > notified by > Mailtrack > 11/21/20, > 12:54:10 PM > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shaikoni at gmail.com Sat Nov 21 09:20:03 2020 From: shaikoni at gmail.com (Shai Anany) Date: Sat, 21 Nov 2020 16:20:03 +0200 Subject: [Cryptography-dev] ModuleNotFoundError: No module named 'cryptography' In-Reply-To: References: Message-ID: I installed it incide pycharm and it fixed it. BR ?????? ???, 21 ????? 2020, 12:55, ??? Shai Anany ?: > Hi there > > I have already successfully installed cryptography on my computer but when > trying to run the code: > > from cryptography.fernet import Fernet > import base64 > > key = Fernet.generate_key() > cipher = Fernet(key) > > message = "Message to be encrypted".encode('utf-8') > token = cipher.encrypt(message) > > cipher = Fernet(key) > > decoded = cipher.decrypt(token) > print(decoded) > > > Traceback (most recent call last): > File ".../Crypto.py", line 1, in > from cryptography.fernet import Fernet > ModuleNotFoundError: No module named 'cryptography' > > Process finished with exit code 1 > > When checking crypto installation I can see that it's installed on: > > ...\\PycharmProjects\\pythonProject\\venv\\lib\\site-packages > ...\\PycharmProjects\\pythonProject\\venv > ...\\AppData\\Local\\Programs\\Python\\Python38-32 > ...\\AppData\\Local\\Programs\\Python\\Python38-32 > ...\\AppData\\Local\\Programs\\Python\\Python38-32\\DLLs > ...\\AppData\\Local\\Programs\\Python\\Python38-32\\python38.zip > ...\\PycharmProjects\\pythonProject > ...\\Desktop > > I'm saving my code on the Desktop. I'm using Python 3.8.6. > > What else can be the issue here? > > BR > Shai > > > > > > [image: Mailtrack] > Sender > notified by > Mailtrack > 11/21/20, > 12:54:10 PM > -------------- next part -------------- An HTML attachment was scrubbed... URL: