How to fix an error Service chromedriver unexpectedly exited. Status code was: -6
I am using webdriver selenium. I'm encountering the following error:
WebDriverException Traceback (most recent call last)
<ipython-input-10-25c7a5245744> in <module>()
1 from selenium import webdriver
----> 2 driver = webdriver.Chrome()
3 driver.get("http://www.google.com")
4 display.stop()
/usr/local/lib/python3.6/dist-packages/selenium/webdriver/chrome/webdriver.py in __init__(self, executable_path, port, options, service_args, desired_capabilities, service_log_path, chrome_options, keep_alive)
71 service_args=service_args,
72 log_path=service_log_path)
---> 73 self.service.start()
74
75 try:
/usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py in start(self)
96 count = 0
97 while True:
---> 98 self.assert_process_still_running()
99 if self.is_connectable():
100 break
/usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py in assert_process_still_running(self)
109 raise WebDriverException(
110 'Service %s unexpectedly exited. Status code was: %s'
--> 111 % (self.path, return_code)
112 )
113
WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: -6
I used chromium-browser version (70.0.3538.77-0ubuntu0.18.04.1)
, selenium 3.141.0
, and chromedriver version 2.43
.
I searched from many sources and realized the error is the chromium version. So, I tried installing latest version with !sudo apt-get install -y chromium-browser
Nonetheless, it don't work on my google colab.
Please help me resolve it. Thanks very much!
python selenium
add a comment |
I am using webdriver selenium. I'm encountering the following error:
WebDriverException Traceback (most recent call last)
<ipython-input-10-25c7a5245744> in <module>()
1 from selenium import webdriver
----> 2 driver = webdriver.Chrome()
3 driver.get("http://www.google.com")
4 display.stop()
/usr/local/lib/python3.6/dist-packages/selenium/webdriver/chrome/webdriver.py in __init__(self, executable_path, port, options, service_args, desired_capabilities, service_log_path, chrome_options, keep_alive)
71 service_args=service_args,
72 log_path=service_log_path)
---> 73 self.service.start()
74
75 try:
/usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py in start(self)
96 count = 0
97 while True:
---> 98 self.assert_process_still_running()
99 if self.is_connectable():
100 break
/usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py in assert_process_still_running(self)
109 raise WebDriverException(
110 'Service %s unexpectedly exited. Status code was: %s'
--> 111 % (self.path, return_code)
112 )
113
WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: -6
I used chromium-browser version (70.0.3538.77-0ubuntu0.18.04.1)
, selenium 3.141.0
, and chromedriver version 2.43
.
I searched from many sources and realized the error is the chromium version. So, I tried installing latest version with !sudo apt-get install -y chromium-browser
Nonetheless, it don't work on my google colab.
Please help me resolve it. Thanks very much!
python selenium
Unlike using the FireFox webdriver, with chrome driver you have to indicate the path of the executable driver. Like this : webdriver.Chrome(executable_path='chromedriver')
– PyOrion
Nov 14 '18 at 14:35
PyOrion, no you don't. you can call it with no args if it is in your path.
– Corey Goldberg
Nov 14 '18 at 18:59
add a comment |
I am using webdriver selenium. I'm encountering the following error:
WebDriverException Traceback (most recent call last)
<ipython-input-10-25c7a5245744> in <module>()
1 from selenium import webdriver
----> 2 driver = webdriver.Chrome()
3 driver.get("http://www.google.com")
4 display.stop()
/usr/local/lib/python3.6/dist-packages/selenium/webdriver/chrome/webdriver.py in __init__(self, executable_path, port, options, service_args, desired_capabilities, service_log_path, chrome_options, keep_alive)
71 service_args=service_args,
72 log_path=service_log_path)
---> 73 self.service.start()
74
75 try:
/usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py in start(self)
96 count = 0
97 while True:
---> 98 self.assert_process_still_running()
99 if self.is_connectable():
100 break
/usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py in assert_process_still_running(self)
109 raise WebDriverException(
110 'Service %s unexpectedly exited. Status code was: %s'
--> 111 % (self.path, return_code)
112 )
113
WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: -6
I used chromium-browser version (70.0.3538.77-0ubuntu0.18.04.1)
, selenium 3.141.0
, and chromedriver version 2.43
.
I searched from many sources and realized the error is the chromium version. So, I tried installing latest version with !sudo apt-get install -y chromium-browser
Nonetheless, it don't work on my google colab.
Please help me resolve it. Thanks very much!
python selenium
I am using webdriver selenium. I'm encountering the following error:
WebDriverException Traceback (most recent call last)
<ipython-input-10-25c7a5245744> in <module>()
1 from selenium import webdriver
----> 2 driver = webdriver.Chrome()
3 driver.get("http://www.google.com")
4 display.stop()
/usr/local/lib/python3.6/dist-packages/selenium/webdriver/chrome/webdriver.py in __init__(self, executable_path, port, options, service_args, desired_capabilities, service_log_path, chrome_options, keep_alive)
71 service_args=service_args,
72 log_path=service_log_path)
---> 73 self.service.start()
74
75 try:
/usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py in start(self)
96 count = 0
97 while True:
---> 98 self.assert_process_still_running()
99 if self.is_connectable():
100 break
/usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py in assert_process_still_running(self)
109 raise WebDriverException(
110 'Service %s unexpectedly exited. Status code was: %s'
--> 111 % (self.path, return_code)
112 )
113
WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: -6
I used chromium-browser version (70.0.3538.77-0ubuntu0.18.04.1)
, selenium 3.141.0
, and chromedriver version 2.43
.
I searched from many sources and realized the error is the chromium version. So, I tried installing latest version with !sudo apt-get install -y chromium-browser
Nonetheless, it don't work on my google colab.
Please help me resolve it. Thanks very much!
python selenium
python selenium
edited Nov 14 '18 at 15:58
Joel
1,5706719
1,5706719
asked Nov 14 '18 at 14:31
LUân Đào DuyLUân Đào Duy
12
12
Unlike using the FireFox webdriver, with chrome driver you have to indicate the path of the executable driver. Like this : webdriver.Chrome(executable_path='chromedriver')
– PyOrion
Nov 14 '18 at 14:35
PyOrion, no you don't. you can call it with no args if it is in your path.
– Corey Goldberg
Nov 14 '18 at 18:59
add a comment |
Unlike using the FireFox webdriver, with chrome driver you have to indicate the path of the executable driver. Like this : webdriver.Chrome(executable_path='chromedriver')
– PyOrion
Nov 14 '18 at 14:35
PyOrion, no you don't. you can call it with no args if it is in your path.
– Corey Goldberg
Nov 14 '18 at 18:59
Unlike using the FireFox webdriver, with chrome driver you have to indicate the path of the executable driver. Like this : webdriver.Chrome(executable_path='chromedriver')
– PyOrion
Nov 14 '18 at 14:35
Unlike using the FireFox webdriver, with chrome driver you have to indicate the path of the executable driver. Like this : webdriver.Chrome(executable_path='chromedriver')
– PyOrion
Nov 14 '18 at 14:35
PyOrion, no you don't. you can call it with no args if it is in your path.
– Corey Goldberg
Nov 14 '18 at 18:59
PyOrion, no you don't. you can call it with no args if it is in your path.
– Corey Goldberg
Nov 14 '18 at 18:59
add a comment |
1 Answer
1
active
oldest
votes
from selenium import webdriver
driver = webdriver.Chrome('/path/to/chromedriver')
driver.get("http://www.google.com")
display.stop()
You will need to download the ChromeDriver executable from https://chromedriver.storage.googleapis.com/index.html?path=2.43/
I have downloadedchromedriver 2.43
. However I see thatchromedriver 2.43
andchrome 70.0.3538.77
that is compatible with each other I'm encountering the same error when I experiment on windownException has occurred: selenium.common.exceptions.WebDriverException Message: chrome not reachable (Session info: chrome=70.0.3538.102) (Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17134 x86_64) File "C:Usersluan1Desktopproject10.py", line 33, in <module> driver.quit()
– LUân Đào Duy
Nov 14 '18 at 15:25
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53302572%2fhow-to-fix-an-error-service-chromedriver-unexpectedly-exited-status-code-was%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
from selenium import webdriver
driver = webdriver.Chrome('/path/to/chromedriver')
driver.get("http://www.google.com")
display.stop()
You will need to download the ChromeDriver executable from https://chromedriver.storage.googleapis.com/index.html?path=2.43/
I have downloadedchromedriver 2.43
. However I see thatchromedriver 2.43
andchrome 70.0.3538.77
that is compatible with each other I'm encountering the same error when I experiment on windownException has occurred: selenium.common.exceptions.WebDriverException Message: chrome not reachable (Session info: chrome=70.0.3538.102) (Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17134 x86_64) File "C:Usersluan1Desktopproject10.py", line 33, in <module> driver.quit()
– LUân Đào Duy
Nov 14 '18 at 15:25
add a comment |
from selenium import webdriver
driver = webdriver.Chrome('/path/to/chromedriver')
driver.get("http://www.google.com")
display.stop()
You will need to download the ChromeDriver executable from https://chromedriver.storage.googleapis.com/index.html?path=2.43/
I have downloadedchromedriver 2.43
. However I see thatchromedriver 2.43
andchrome 70.0.3538.77
that is compatible with each other I'm encountering the same error when I experiment on windownException has occurred: selenium.common.exceptions.WebDriverException Message: chrome not reachable (Session info: chrome=70.0.3538.102) (Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17134 x86_64) File "C:Usersluan1Desktopproject10.py", line 33, in <module> driver.quit()
– LUân Đào Duy
Nov 14 '18 at 15:25
add a comment |
from selenium import webdriver
driver = webdriver.Chrome('/path/to/chromedriver')
driver.get("http://www.google.com")
display.stop()
You will need to download the ChromeDriver executable from https://chromedriver.storage.googleapis.com/index.html?path=2.43/
from selenium import webdriver
driver = webdriver.Chrome('/path/to/chromedriver')
driver.get("http://www.google.com")
display.stop()
You will need to download the ChromeDriver executable from https://chromedriver.storage.googleapis.com/index.html?path=2.43/
answered Nov 14 '18 at 14:40
PyOrionPyOrion
863
863
I have downloadedchromedriver 2.43
. However I see thatchromedriver 2.43
andchrome 70.0.3538.77
that is compatible with each other I'm encountering the same error when I experiment on windownException has occurred: selenium.common.exceptions.WebDriverException Message: chrome not reachable (Session info: chrome=70.0.3538.102) (Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17134 x86_64) File "C:Usersluan1Desktopproject10.py", line 33, in <module> driver.quit()
– LUân Đào Duy
Nov 14 '18 at 15:25
add a comment |
I have downloadedchromedriver 2.43
. However I see thatchromedriver 2.43
andchrome 70.0.3538.77
that is compatible with each other I'm encountering the same error when I experiment on windownException has occurred: selenium.common.exceptions.WebDriverException Message: chrome not reachable (Session info: chrome=70.0.3538.102) (Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17134 x86_64) File "C:Usersluan1Desktopproject10.py", line 33, in <module> driver.quit()
– LUân Đào Duy
Nov 14 '18 at 15:25
I have downloaded
chromedriver 2.43
. However I see that chromedriver 2.43
and chrome 70.0.3538.77
that is compatible with each other I'm encountering the same error when I experiment on windown Exception has occurred: selenium.common.exceptions.WebDriverException Message: chrome not reachable (Session info: chrome=70.0.3538.102) (Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17134 x86_64) File "C:Usersluan1Desktopproject10.py", line 33, in <module> driver.quit()
– LUân Đào Duy
Nov 14 '18 at 15:25
I have downloaded
chromedriver 2.43
. However I see that chromedriver 2.43
and chrome 70.0.3538.77
that is compatible with each other I'm encountering the same error when I experiment on windown Exception has occurred: selenium.common.exceptions.WebDriverException Message: chrome not reachable (Session info: chrome=70.0.3538.102) (Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 10.0.17134 x86_64) File "C:Usersluan1Desktopproject10.py", line 33, in <module> driver.quit()
– LUân Đào Duy
Nov 14 '18 at 15:25
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53302572%2fhow-to-fix-an-error-service-chromedriver-unexpectedly-exited-status-code-was%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Unlike using the FireFox webdriver, with chrome driver you have to indicate the path of the executable driver. Like this : webdriver.Chrome(executable_path='chromedriver')
– PyOrion
Nov 14 '18 at 14:35
PyOrion, no you don't. you can call it with no args if it is in your path.
– Corey Goldberg
Nov 14 '18 at 18:59