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] Can't run in linux #32

Closed huskyy8y8 closed 1 year ago

huskyy8y8 commented 1 year ago

root@instance-20230731-0438:~/svbot# python3 test.py Traceback (most recent call last): File "test.py", line 5, in api = ChatGPT(key) File "/usr/local/lib/python3.8/dist-packages/UnlimitedGPT/UnlimitedGPT.py", line 76, in init self._init_browser() File "/usr/local/lib/python3.8/dist-packages/UnlimitedGPT/UnlimitedGPT.py", line 187, in _init_browser self._ensure_cf() File "/usr/local/lib/python3.8/dist-packages/UnlimitedGPT/UnlimitedGPT.py", line 277, in _ensure_cf response = self.driver.find_element(By.TAG_NAME, "pre").text File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 831, in find_element return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"] File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"tag name","selector":"pre"} (Session info: chrome=115.0.5790.170) Stacktrace:

0 0x5611a106c4e3

1 0x5611a0d9bc76

2 0x5611a0dd7c96

3 0x5611a0dd7dc1

4 0x5611a0e117f4

5 0x5611a0df703d

6 0x5611a0e0f30e

7 0x5611a0df6de3

8 0x5611a0dcc2dd

9 0x5611a0dcd34e

10 0x5611a102c3e4

11 0x5611a10303d7

12 0x5611a103ab20

13 0x5611a1031023

14 0x5611a0fff1aa

15 0x5611a10556b8

16 0x5611a1055847

17 0x5611a1065243

18 0x7f89708c6609 start_thread

image
theAbdoSabbagh commented 1 year ago

Are you sure you're using the latest version of this library? I'm running the same code as you and its working well

huskyy8y8 commented 1 year ago

Yes follow the tutorial and run the latest version

theAbdoSabbagh commented 1 year ago

show me a screenshot of the chatgpt website when you open it