Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cannot run Run code on Google Colab #40

Open
ngoduyvu opened this issue Sep 5, 2023 · 2 comments
Open

[BUG] Cannot run Run code on Google Colab #40

ngoduyvu opened this issue Sep 5, 2023 · 2 comments
Assignees
Labels
unconfirmed bug Potential bugs awaiting confirmation

Comments

@ngoduyvu
Copy link

ngoduyvu commented Sep 5, 2023

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:

  • Python version 3.10
  • Operating System: Google Colab
  • UnlimitedGPT version: UnlimitedGPT 0.1.9.3
@ngoduyvu ngoduyvu added the unconfirmed bug Potential bugs awaiting confirmation label Sep 5, 2023
@theAbdoSabbagh
Copy link
Owner

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
Copy link

drankush commented Mar 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unconfirmed bug Potential bugs awaiting confirmation
Projects
None yet
Development

No branches or pull requests

3 participants