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] Cannot run Run code on Google Colab #40

Open ngoduyvu opened 1 year ago

ngoduyvu commented 1 year ago

Description

Hi, I follow the docs to set up on Google Colab. However I encounter issues to run ChatGPT

Steps to Reproduce

I firstly follow the instruction run following code

# install dependencies
!apt install chromium-browser xvfb
!pip install -U selenium_profiles UnlimitedGPT

then run

from selenium_profiles.utils.installer import install_chromedriver
install_chromedriver()

I got an error: ModuleNotFoundError: No module named 'selenium_profiles.utils.installer'

So I tried to find other ways to install undetected-chromedriver

!pip install chromedriver-autoinstaller
!pip install undetected-chromedriver
from selenium_profiles.webdriver.ut import install_chromedriver
install_chromedriver()

from UnlimitedGPT import ChatGPT

session_token = "eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU......PGj5QK4UyE.X4qBeKPaFem5n574AfCtpA"
conversation_id = "c6770a1f-c.............8ef37458f68"

chatbot = ChatGPT(
    session_token,
    conversation_id=conversation_id,
    proxy=None,
    chrome_args=None,
    disable_moderation=False,
    verbose=False,
)

I got an error: WebDriverException: Message: unknown error: cannot connect to Chrome at 127.0.0.1:44523 from Chrome is not reachable

image

Code used

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

Paste the relevant code here.

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.

Paste the error message or traceback here.

Environment Information

Please provide details about your environment:

theAbdoSabbagh commented 1 year ago

Hello, thanks for reporting this bug. Currently I'm a bit busy as I've recently enrolled at a university and I have very limited free time now. Once I'm free I'll look into this issue.

drankush commented 6 months ago

im facing the same issue, its 2024. Yet no solution?