Skip to content
This repository was archived by the owner on Sep 1, 2025. It is now read-only.
This repository was archived by the owner on Sep 1, 2025. It is now read-only.

selenium.common.exceptions.WebDriverException: Message: Service ./chromedriver unexpectedly exited. Status code was: 127 #1

@jamiebird119

Description

@jamiebird119

Hi there,

I have been trying to use your code to get selenium setup for a scrape project I am working on but keep getting the above error.

I installed selenium using pip as you did and then my code is

from selenium import webdriver
import time

driver = webdriver.Chrome(executable_path='./chromedriver')
driver.get('http://www.google.com/')
time.sleep(5)

driver.close()

I have installed the version of chromedriver that matches my browser version
https://chromedriver.storage.googleapis.com/index.html?path=88.0.4324.96/

Each time it is just giving me the issue in the title. Any ideas? I read it could be to do with dependencies for the chromedriver but I cant be sure, or dont know how to check these.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions