gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

ModuleNotFoundError: No module named 'Crypto'

Open Zaidbaidadekalb opened this issue 2 years ago • 5 comments

Every time i run python3 -m streamlit run streamlit_app.py i get this error

ModuleNotFoundError: No module named 'Crypto' aasdasdasd

Zaidbaidadekalb avatar May 16 '23 02:05 Zaidbaidadekalb

Run this command

pip3 install pycryptodome

sondo2503 avatar May 16 '23 02:05 sondo2503

python 3.11 error ModuleNotFoundError: No module named 'Crypto'

coderwpf avatar May 22 '23 10:05 coderwpf

I have the same error. module installation did not help((

dsshvetsov avatar May 26 '23 19:05 dsshvetsov

The error occurs for multiple reasons:

1) Not having the pycryptodome package installed by running pip install pycryptodome.
2) Installing the package in a different Python version than the one you're using.
3) Installing the package globally and not in your virtual environment.
4) Your IDE running an incorrect version of Python.
5) Naming your module crypto.py which would shadow the official module.
6) Declaring a variable named Crypto which would shadow the imported variable.

Reference: Solution of this issue

enganese avatar May 27 '23 08:05 enganese

python3 -m venv venv
# in windows
& d:/workspace/gpt4free/venv/Scripts/Activate.ps1
# mac or linux
. venv/bin/activate
pip3 install -r requirements.txt
# testing
mv  .\testing\forefront_test.py .
py .\testing\forefront_test.py  

image

bestK avatar Jun 15 '23 07:06 bestK