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

from session not created: This version of ChromeDriver only supports Chrome version 95 Current browser version is 93.0.4577.82 #348

Open
ALEXDINO7 opened this issue Oct 30, 2021 · 7 comments

Comments

@ALEXDINO7
Copy link

Note : i updated my chrome to the latest version Version 95.0.4638.54 (Official Build) (64-bit)
and i downlod it the current version of chrome driver but not solve the problem

this is the error

raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:47857
from session not created: This version of ChromeDriver only supports Chrome version 95
Current browser version is 93.0.4577.82
Stacktrace:
#0 0x561b5e73af93
#1 0x561b5e215908
#2 0x561b5e23c67c
#3 0x561b5e233e36
#4 0x561b5e26e770
#5 0x561b5e268973
#6 0x561b5e23edf4
#7 0x561b5e23fde5
#8 0x561b5e76a2be
#9 0x561b5e77fba0
#10 0x561b5e76b215
#11 0x561b5e780fe8
#12 0x561b5e75f9db
#13 0x561b5e79c218
#14 0x561b5e79c398
#15 0x561b5e7b76cd
#16 0x7f05259c6eae

@nhwalkman
Copy link

I've also experienced a similar error on linux. I hate to ask for more information, but it would be helpful.
Is this a linux system? Please provide distribution & version. Otherwise window specs.
python version
undetected_chromedriver version

Assuming this is a newer debian linux distribution, you can find all copies of chromium or chromedriver on your system
Use the following command:
$ which chromium
and
$ which chromedriver

Then in your code manually specify this executable path
import undetected_chromedriver.v2 as uc

chrome_path = '/home/me/.local/bin/chromedriver'
browser = uc.Chrome(executable_path=chrome_path)

Note that I chose to download chromedriver and use this instead of the installed executable path for chromium.

@sibo7851
Copy link

sibo7851 commented Nov 7, 2021

Hi there, I just wanted to say that I'm also experiencing this same issue on Mac OS 10.15.6 Catalina

@tmtong
Copy link

tmtong commented Nov 10, 2021

I also experience the same issue
which chromium
/usr/bin/chromium

chromium --version
Chromium 94.0.4606.81 Arch Linux

which chromedriver
/usr/bin/chromedriver

chromedriver --version
ChromeDriver 94.0.4606.81 (5a03c5f1033171d5ee1671d219a59e29cf75e054-refs/branch-heads/4606@{#1320})

import undetected_chromedriver as uc
uc.TARGET_VERSION = 94
driver = uc.Chrome(options=options)

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 95
Current browser version is 94.0.4606.81 with binary path /usr/sbin/chromium

import undetected_chromedriver.v2 as uc
driver = uc.Chrome()
with driver:
driver.get('https://nowsecure.nl') # known url using cloudflare's "under attack mode"
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:48993
from session not created: This version of ChromeDriver only supports Chrome version 95
Current browser version is 94.0.4606.81

@nhwalkman
Copy link

I have to say that using the statement "uc.TAQRGET_VERSION = XX" did NOT work for me either.

I had to go to https://chromedriver.chromium.org/downloads and fetch chromedriver for 95.x.xxx then unzip/install it manually.

I keep multiple version of chromedriver on linux in /home/me/.local/bin
ex: /home/me/.local/bin/chromedriver_95

then I reference this path in my code. This supercedes my installed version which of course is NOT v95.

@tmtong
Copy link

tmtong commented Nov 11, 2021

I got this to work

import undetected_chromedriver as uc
    def get_chromedriver(self, use_proxy=False):
        if libshared.driver_path is None:
            _, driver_path = chromedriver_path()
            libshared.driver_path = driver_path
        else:
            driver_path = libshared.driver_path
        path = os.path.dirname(os.path.abspath(__file__))
        
        # options = webdriver.ChromeOptions()
        options = uc.ChromeOptions()
        if use_proxy:
            pluginfile = 'proxy_auth_plugin.zip'

            with zipfile.ZipFile(pluginfile, 'w') as zp:
                zp.writestr("manifest.json", libshared.manifest_json)
                zp.writestr("background.js", libshared.background_js)
            options.add_extension(pluginfile)

        # driver = webdriver.Chrome(
        #     executable_path=driver_path,
        #     chrome_options=options)
        uc.TARGET_VERSION = 94
        driver = uc.Chrome(options=options, executable_path=driver_path)
        self.driver = driver
        return driver](url)

@maestre7
Copy link

you just need to update the chrome

@melohelber
Copy link

melohelber commented Mar 2, 2022

You just have to modify init.py script from undetected_chromedriver package.

Read comented lines and check that you have to especify your chorme version if you not using latest version of Chrome.

" version_main: int, optional, default: None (=auto)
if you, for god knows whatever reason, use
an older version of Chrome. You can specify it's full rounded version number
here. Example: 87 for all versions of 87"

If you are using Chrome 87, just modify version_main parameter:

):def __init__(
    self,
    user_data_dir=None,
    browser_executable_path=None,
    port=0,
    options=None,
    enable_cdp_events=False,
    service_args=None,
    desired_capabilities=None,
    service_log_path=None,
    keep_alive=True,
    log_level=0,
    headless=False,
    version_main=87,
    patcher_force_close=False,
    suppress_welcome=True,
    use_subprocess=False,
    debug=False,
    **kw
):

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

6 participants