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

if you use chrome 114 , it can't run #20

Closed
moonandlake123 opened this issue Jul 10, 2023 · 6 comments
Closed

if you use chrome 114 , it can't run #20

moonandlake123 opened this issue Jul 10, 2023 · 6 comments

Comments

@moonandlake123
Copy link

moonandlake123 commented Jul 10, 2023

2023/07/10 12:49:15 WARNING Windows detected, no version number is provided, default: 112
Traceback (most recent call last):
File "d:\Documents\new2.py", line 3, in
chatgpt = ChatGPT_Client(USERNAME, PASSWORD)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\chatgpt_automation\chatgpt_client.py", line 62, in init
self.browser = uc.Chrome(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\undetected_chromedriver_init_.py", line 443, in init
super(Chrome, self).init(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 49, in init
super().init(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 54, in init
super().init(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 206, in init
self.start_session(capabilities)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\undetected_chromedriver_init_.py", line 674, in start_session
super(selenium.webdriver.chrome.webdriver.WebDriver, self).start_session(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 291, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 346, in execute
self.error_handler.check_response(response)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\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:52952
from session not created: This version of ChromeDriver only supports Chrome version 112
Current browser version is 114.0.5735.199
Stacktrace:
Backtrace:
GetHandleVerifier [0x0099DCE3+50899]
(No symbol) [0x0092E111]
(No symbol) [0x00835588]
(No symbol) [0x0085570C]
(No symbol) [0x0084F5B1]
(No symbol) [0x0084F391]
(No symbol) [0x00881FFE]
(No symbol) [0x00881CEC]
(No symbol) [0x0087B6F6]
(No symbol) [0x00857708]
(No symbol) [0x0085886D]
GetHandleVerifier [0x00C03EAE+2566302]
GetHandleVerifier [0x00C392B1+2784417]
GetHandleVerifier [0x00C3327C+2759788]
GetHandleVerifier [0x00A35740+672048]
(No symbol) [0x00938872]
(No symbol) [0x009341C8]
(No symbol) [0x009342AB]
(No symbol) [0x009271B7]
BaseThreadInitThunk [0x761D7D59+25]
RtlInitializeExceptionChain [0x7739B74B+107]
RtlClearBits [0x7739B6CF+191]

@ugorsahin
Copy link
Owner

Hello, you need to pass argument driver_version = 114 to constructor. Pass 114 as integer and it should work

@neslex
Copy link

neslex commented Jul 11, 2023

I'm getting the same error, have spent hours trying to get this working.

@moonandlake123
Copy link
Author

moonandlake123 commented Jul 11, 2023 via email

@moonandlake123
Copy link
Author

@ugorsahin I try your advise,but i get the same error.The error mean the chrome driver is only support the chrome 112,I try to update the chrome driver and undetected_chromedriver but it still don't run

@medinm0
Copy link

medinm0 commented Jul 16, 2023

Ran into this issue too. What ended up working for me was deleting the following folder. This took forever to figure out: C:\Users\YOURUSERACCOUNT\AppData\Roaming\undetected_chromedriver

Then everything started working again. If need be you can get the latest chrome driver from the following link: https://chromedriver.chromium.org/downloads .

@moonandlake123 @neslex

@ugorsahin
Copy link
Owner

Assuming that the new version of undetected-chromedriver and new releases in this repository solved the problem, I close this issue due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants