Zai-Kun / reverse-engineered-chatgpt

Unofficial reverse-engineered ChatGPT API in Python
Apache License 2.0
242 stars 32 forks source link

bug ModuleNotFoundError: No module named 'cryptography' #1

Closed danielmnb1 closed 11 months ago

danielmnb1 commented 11 months ago

the script gives this error

  File "e:\reverse-engineered-chatgpt\example_usage.py", line 2, in <module>
    from re_gpt import ChatGPT
  File "e:\reverse-engineered-chatgpt\re_gpt\__init__.py", line 1, in <module>
    from .chatgpt import ChatGPT
  File "e:\reverse-engineered-chatgpt\re_gpt\chatgpt.py", line 6, in <module>
    from .encryption_manager import EncryptionManager
  File "e:\reverse-engineered-chatgpt\re_gpt\encryption_manager.py", line 1, in <module>
    from cryptography.fernet import Fernet
ModuleNotFoundError: No module named 'cryptography'

add module to requirements

solution simple

pip install cryptography

Zai-Kun commented 11 months ago

Oh, yes, I forgot to add a requirements.txt file. I will add it later. Thanks.