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

ERROR CHROME VERSION #44

Open
webmestudio opened this issue Oct 2, 2023 · 5 comments
Open

ERROR CHROME VERSION #44

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

Comments

@webmestudio
Copy link

C:\Users\NONAME\Downloads\unlimitedgpt>python main.py
Traceback (most recent call last):
File "C:\Users\NONAME\Downloads\unlimitedgpt\main.py", line 6, in
api = ChatGPT(
File "C:\Users\NONAME\Downloads\unlimitedgpt\UnlimitedGPT\UnlimitedGPT.py", line 77, in init
self._init_browser()
File "C:\Users\NONAME\Downloads\unlimitedgpt\UnlimitedGPT\UnlimitedGPT.py", line 160, in init_browser
self.driver = ChatGPTDriver(options=options, headless=self.headless)
File "C:\Users\NONAME\Downloads\unlimitedgpt\UnlimitedGPT\internal\driver.py", line 16, in init
super().init(options=options, headless=headless, desired_capabilities=caps)
File "C:\Users\NONAME\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\undetected_chromedriver_init
.py", line 441, in init
super(Chrome, self).init(
File "C:\Users\NONAME\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\selenium\webdriver\chrome\webdriver.py", line 84, in init
super().init(
File "C:\Users\NONAME\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\selenium\webdriver\chromium\webdriver.py", line 104, in init
super().init(
File "C:\Users\NONAME\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\selenium\webdriver\remote\webdriver.py", line 286, in init
self.start_session(capabilities, browser_profile)
File "C:\Users\NONAME\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\undetected_chromedriver_init
.py", line 704, in start_session
super(selenium.webdriver.chrome.webdriver.WebDriver, self).start_session(
File "C:\Users\NONAME\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\selenium\webdriver\remote\webdriver.py", line 378, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C:\Users\NONAME\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\selenium\webdriver\remote\webdriver.py", line 440, in execute
self.error_handler.check_response(response)
File "C:\Users\NONAME\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\selenium\webdriver\remote\errorhandler.py", line 245, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:50446
from session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 117.0.5938.132
Stacktrace:
Backtrace:
GetHandleVerifier [0x0040A813+48355]
(No symbol) [0x0039C4B1]
(No symbol) [0x002A5358]
(No symbol) [0x002C61AC]
(No symbol) [0x002C06B4]
(No symbol) [0x002C0491]
(No symbol) [0x002F0C55]
(No symbol) [0x002F093C]
(No symbol) [0x002EA536]
(No symbol) [0x002C82DC]
(No symbol) [0x002C93DD]
GetHandleVerifier [0x0066AABD+2539405]
GetHandleVerifier [0x006AA78F+2800735]
GetHandleVerifier [0x006A456C+2775612]
GetHandleVerifier [0x004951E0+616112]
(No symbol) [0x003A5F8C]
(No symbol) [0x003A2328]
(No symbol) [0x003A240B]
(No symbol) [0x00394FF7]
BaseThreadInitThunk [0x75F66739+25]
RtlGetFullPathName_UEx [0x777A8AFF+1215]
RtlGetFullPathName_UEx [0x777A8ACD+1165]

@webmestudio webmestudio added the unconfirmed bug Potential bugs awaiting confirmation label Oct 2, 2023
@JiyangZhang
Copy link

same problem here

@alexlaverty
Copy link

I'm getting the same error, I think either need to upgrade the ChromeDriver or downgrade the Chrome browser to version 114

This version of ChromeDriver only supports Chrome version 114
Current browser version is 117.0.5938.132

@RylonW
Copy link

RylonW commented Oct 12, 2023

I met with the same question, but I could excuate the browser successfully with:
driver = webdriver.Chrome(executable_path='/usr/bin/google-chrome')
and I tried to add parameters for init.py file:
super().__init__(options=options, headless=headless, desired_capabilities=caps, driver_executable_path='/usr/bin/google-chrome')
but it failed with "PermissionError: [Errno 13] Permission denied: '/usr/bin/google-chrome'"
I need more help!! I think 114 chromedriver version is too old to adapt the environment now. The latest chrome version is 117. Hope to hear more replies!

@pik-a-c-h-u
Copy link

pik-a-c-h-u commented Nov 3, 2023

First go to https://googlechromelabs.github.io/chrome-for-testing/ and download the latest chrome driver
then open driver.py (location : /UnlimitedGPT/internal/driver.py)
then change line 16 to super().__init__(options=options, headless=headless, desired_capabilities=caps, driver_executable_path="C:\chrome\chromedriver-win64\chromedriver.exe")
here give the path of the chrome driver that you downloaded
save file and exit . That should fix this issue

@pik-a-c-h-u
Copy link

I met with the same question, but I could excuate the browser successfully with: driver = webdriver.Chrome(executable_path='/usr/bin/google-chrome') and I tried to add parameters for init.py file: super().__init__(options=options, headless=headless, desired_capabilities=caps, driver_executable_path='/usr/bin/google-chrome') but it failed with "PermissionError: [Errno 13] Permission denied: '/usr/bin/google-chrome'" I need more help!! I think 114 chromedriver version is too old to adapt the environment now. The latest chrome version is 117. Hope to hear more replies!

download the latest chrome driver form https://googlechromelabs.github.io/chrome-for-testing/ and use that as the driver_executable_path

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

6 participants