gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

ModuleNotFoundError: No module named 'password_generator'

Open monkrus opened this issue 1 year ago • 3 comments

Bug description

  1. Run
python3 -m venv venv
. venv/bin/activate
pip3 install -r requirements.txt
  1. Move streamlit_app.py from ./gui to the base folder to the base folder
  2. Run
cp gui/streamlit_app.py .
streamlit run streamlit_app.py
  1. GUI runs and ends up with ModuleNotFoundError: No module named 'password_generator'error

Screenshots

File "C:\Users\14802\Documents\GitHub\gpt4free\venv\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
File "C:\Users\14802\Documents\GitHub\gpt4free\streamlit_app.py", line 7, in <module>
    from gpt4free import you
File "C:\Users\14802\Documents\GitHub\gpt4free\gpt4free\__init__.py", line 6, in <module>
    from gpt4free import usesless
File "C:\Users\14802\Documents\GitHub\gpt4free\gpt4free\usesless\__init__.py", line 9, in <module>
    from password_generator import PasswordGenerator

Environment

  • Python 3.10.11
  • US

monkrus avatar May 22 '23 05:05 monkrus

pip install random-password-generator

ezerinz avatar May 22 '23 05:05 ezerinz

Please adjust the dockerfile in this repo to include this ;)

solipsist01 avatar May 22 '23 05:05 solipsist01

Please adjust the dockerfile in this repo to include this ;)

I've submit a pr to update requirements.txt

ezerinz avatar May 22 '23 06:05 ezerinz

@xtekky Can we close this issue?

monkrus avatar Jul 15 '23 19:07 monkrus