Home >Backend Development >Python Tutorial >Here are a few title options, keeping in mind the question-and-answer style: Short & Direct: * WebDriverException: Why is my chromedriver exiting with status code 127? * Selenium Error: How to f
Problem:
Selenium throws a WebDriverException when starting a Chrome driver service. The error message indicates that the chromedriver has unexpectedly exited with status code 127.
Analysis:
The status code 127 usually signifies an executable that could not be found or was terminated due to errors. In this case, it suggests that the chromedriver executable is missing required dependencies or has encountered other runtime issues.
Solution:
To resolve this error, install the necessary libraries that chromedriver requires. For Ubuntu 17.10, this can be achieved by running the following command:
<code class="bash">apt-get install -y libglib2.0-0=2.50.3-2 \ libnss3=2:3.26.2-1.1+deb9u1 \ libgconf-2-4=3.2.6-4+b1 \ libfontconfig1=2.11.0-6.7+b1</code>
Additional Troubleshooting:
The above is the detailed content of Here are a few title options, keeping in mind the question-and-answer style: Short & Direct: * WebDriverException: Why is my chromedriver exiting with status code 127? * Selenium Error: How to f. For more information, please follow other related articles on the PHP Chinese website!