theAbdoSabbagh / UnlimitedGPT

An unofficial Python wrapper for OpenAI's ChatGPT API
https://pypi.org/project/UnlimitedGPT/
GNU General Public License v3.0
346 stars 43 forks source link

[BUG] `pyperclip` is not listed as a dependency #35

Closed ThatIsAPseudo closed 1 year ago

ThatIsAPseudo commented 1 year ago

Description

Importing the UnlimitedGPT library will result in a ModuleNotFoundError: No module named 'pyperclip'

Steps to Reproduce

Run the following code.

Code used

Please provide the code that you were using when you encountered the bug.

from UnlimitedGPT import ChatGPT

Error Message or Traceback

If applicable, include the complete error message or traceback you received. This will help us in identifying the problem more quickly.

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
[...]/chatgpt.py in line 1
----> 1 from UnlimitedGPT import ChatGPT

File [...]/python3.11/site-packages]/UnlimitedGPT/__init__.py:7
      1 """
      2 ChatGPT.py
      3 
      4 An unofficial Python wrapper for OpenAI's ChatGPT API
      5 """
----> 7 from UnlimitedGPT.UnlimitedGPT import ChatGPT

File [...]/python3.11/site-packages/UnlimitedGPT/UnlimitedGPT.py:3
      1 import datetime
      2 import re
----> 3 import pyperclip
      4 from json import loads
      5 from logging import DEBUG, Formatter, StreamHandler, getLogger

ModuleNotFoundError: No module named 'pyperclip'

Environment Information

Please provide details about your environment:

Expected Behavior

All dependencies should be listed in the requirements.txtfile, and installed along UnlimitedGPT

Possible Solutions

Add pyperclip to requirements.txt

Checklist

Before submitting the issue, please ensure that you have done the following:

theAbdoSabbagh commented 1 year ago

Hi, thanks for making this issue, and an extra thanks for following the bug template. I'll be releasing a new version to the library soon with a couple fixes that include adding pyperclip to the requirements.txt file. In the meantime, if you haven't already, just install pyperclip as a normal library and that should fix the issue

theAbdoSabbagh commented 1 year ago

Fixed in 0.1.9.3. Please update to the new version to fix this issue. Thanks for reporting the bug!