Install firefox driver on Ubuntu 16.04.3 LTS
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I have installed firefox driver on Ubuntu 16.04.3 LTS and it's installed under
$ which firefox
/usr/bin/firefox
I am using the following simple python script to test selenium
#!/usr/bin/env python
from pyvirtualdisplay import Display
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
display = Display(visible=0, size=(1024, 768))
display.start()
#binary = FirefoxBinary('/usr/bin/firefox')
browser = webdriver.Firefox()
browser.get('http://www.ubuntu.com/')
print(browser.page_source)
browser.close()
display.stop()
I am getting the following errors:
File "tests.py", line 16, in <module>
browser = webdriver.Firefox()
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/firefox/webdriver.py", line 162, in __init__
keep_alive=True)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 154, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 243, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 312, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status 1
Complete version information:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
This is a 100% OS issue because on other OSes like Windows and macOS I have tested, and the code works. Any assistance will be appreciated.
Which reading the suggested duplicate thread provided one of the solution was to look into geckodriver.log
. My geckodriver.log
stated
1524778083599 geckodriver INFO geckodriver 0.20.1
1524778083603 geckodriver INFO Listening on 127.0.0.1:58448
1524778084607 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-profile" "/tmp/rust_mozprofile.xBi1jOarZ06h"
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
In command line I exported the display like
$ export DISPLAY=:0
After export, geckodriver.log is stating
1524778146749 geckodriver INFO geckodriver 0.20.1
1524778146753 geckodriver INFO Listening on 127.0.0.1:55524
1524778147756 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-profile" "/tmp/rust_mozprofile.nWOzb0ngG3gm"
But now I am getting following error on the command line
Traceback (most recent call last):
File "tests.py", line 16, in <module>
browser = webdriver.Firefox()
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/firefox/webdriver.py", line 162, in __init__
keep_alive=True)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 154, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 243, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 312, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Failed to start browser /usr/bin/firefox: other os error
16.04 drivers firefox python3
add a comment |Â
up vote
0
down vote
favorite
I have installed firefox driver on Ubuntu 16.04.3 LTS and it's installed under
$ which firefox
/usr/bin/firefox
I am using the following simple python script to test selenium
#!/usr/bin/env python
from pyvirtualdisplay import Display
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
display = Display(visible=0, size=(1024, 768))
display.start()
#binary = FirefoxBinary('/usr/bin/firefox')
browser = webdriver.Firefox()
browser.get('http://www.ubuntu.com/')
print(browser.page_source)
browser.close()
display.stop()
I am getting the following errors:
File "tests.py", line 16, in <module>
browser = webdriver.Firefox()
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/firefox/webdriver.py", line 162, in __init__
keep_alive=True)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 154, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 243, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 312, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status 1
Complete version information:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
This is a 100% OS issue because on other OSes like Windows and macOS I have tested, and the code works. Any assistance will be appreciated.
Which reading the suggested duplicate thread provided one of the solution was to look into geckodriver.log
. My geckodriver.log
stated
1524778083599 geckodriver INFO geckodriver 0.20.1
1524778083603 geckodriver INFO Listening on 127.0.0.1:58448
1524778084607 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-profile" "/tmp/rust_mozprofile.xBi1jOarZ06h"
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
In command line I exported the display like
$ export DISPLAY=:0
After export, geckodriver.log is stating
1524778146749 geckodriver INFO geckodriver 0.20.1
1524778146753 geckodriver INFO Listening on 127.0.0.1:55524
1524778147756 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-profile" "/tmp/rust_mozprofile.nWOzb0ngG3gm"
But now I am getting following error on the command line
Traceback (most recent call last):
File "tests.py", line 16, in <module>
browser = webdriver.Firefox()
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/firefox/webdriver.py", line 162, in __init__
keep_alive=True)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 154, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 243, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 312, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Failed to start browser /usr/bin/firefox: other os error
16.04 drivers firefox python3
Possible duplicate on Stack Overflow: Webdriver Exception:Process unexpectedly closed with status: 1. There are some other questions about the same issue on Stack Overflow.
â wjandrea
Apr 26 at 21:25
@wjandrea already read and posted the feedback in the question
â spider22
Apr 26 at 21:35
OK, looks like you're making progress. Please keep researching the issue. I've found more questions related to the error you're currently getting. If it wasn't clear, we expect you to thoroughly research an issue before asking a question. See How to Ask
â wjandrea
Apr 26 at 21:46
1
Under which display server are you running Firefox and Selenium? One of the error messages is âÂÂFailed to connect to MirâÂÂ.
â David Foerster
Apr 27 at 20:43
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have installed firefox driver on Ubuntu 16.04.3 LTS and it's installed under
$ which firefox
/usr/bin/firefox
I am using the following simple python script to test selenium
#!/usr/bin/env python
from pyvirtualdisplay import Display
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
display = Display(visible=0, size=(1024, 768))
display.start()
#binary = FirefoxBinary('/usr/bin/firefox')
browser = webdriver.Firefox()
browser.get('http://www.ubuntu.com/')
print(browser.page_source)
browser.close()
display.stop()
I am getting the following errors:
File "tests.py", line 16, in <module>
browser = webdriver.Firefox()
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/firefox/webdriver.py", line 162, in __init__
keep_alive=True)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 154, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 243, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 312, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status 1
Complete version information:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
This is a 100% OS issue because on other OSes like Windows and macOS I have tested, and the code works. Any assistance will be appreciated.
Which reading the suggested duplicate thread provided one of the solution was to look into geckodriver.log
. My geckodriver.log
stated
1524778083599 geckodriver INFO geckodriver 0.20.1
1524778083603 geckodriver INFO Listening on 127.0.0.1:58448
1524778084607 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-profile" "/tmp/rust_mozprofile.xBi1jOarZ06h"
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
In command line I exported the display like
$ export DISPLAY=:0
After export, geckodriver.log is stating
1524778146749 geckodriver INFO geckodriver 0.20.1
1524778146753 geckodriver INFO Listening on 127.0.0.1:55524
1524778147756 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-profile" "/tmp/rust_mozprofile.nWOzb0ngG3gm"
But now I am getting following error on the command line
Traceback (most recent call last):
File "tests.py", line 16, in <module>
browser = webdriver.Firefox()
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/firefox/webdriver.py", line 162, in __init__
keep_alive=True)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 154, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 243, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 312, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Failed to start browser /usr/bin/firefox: other os error
16.04 drivers firefox python3
I have installed firefox driver on Ubuntu 16.04.3 LTS and it's installed under
$ which firefox
/usr/bin/firefox
I am using the following simple python script to test selenium
#!/usr/bin/env python
from pyvirtualdisplay import Display
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
display = Display(visible=0, size=(1024, 768))
display.start()
#binary = FirefoxBinary('/usr/bin/firefox')
browser = webdriver.Firefox()
browser.get('http://www.ubuntu.com/')
print(browser.page_source)
browser.close()
display.stop()
I am getting the following errors:
File "tests.py", line 16, in <module>
browser = webdriver.Firefox()
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/firefox/webdriver.py", line 162, in __init__
keep_alive=True)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 154, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 243, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 312, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status 1
Complete version information:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
This is a 100% OS issue because on other OSes like Windows and macOS I have tested, and the code works. Any assistance will be appreciated.
Which reading the suggested duplicate thread provided one of the solution was to look into geckodriver.log
. My geckodriver.log
stated
1524778083599 geckodriver INFO geckodriver 0.20.1
1524778083603 geckodriver INFO Listening on 127.0.0.1:58448
1524778084607 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-profile" "/tmp/rust_mozprofile.xBi1jOarZ06h"
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
In command line I exported the display like
$ export DISPLAY=:0
After export, geckodriver.log is stating
1524778146749 geckodriver INFO geckodriver 0.20.1
1524778146753 geckodriver INFO Listening on 127.0.0.1:55524
1524778147756 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-profile" "/tmp/rust_mozprofile.nWOzb0ngG3gm"
But now I am getting following error on the command line
Traceback (most recent call last):
File "tests.py", line 16, in <module>
browser = webdriver.Firefox()
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/firefox/webdriver.py", line 162, in __init__
keep_alive=True)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 154, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 243, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 312, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: Failed to start browser /usr/bin/firefox: other os error
16.04 drivers firefox python3
edited Apr 27 at 18:54
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
Zanna
48k13119227
48k13119227
asked Apr 26 at 21:19
spider22
11
11
Possible duplicate on Stack Overflow: Webdriver Exception:Process unexpectedly closed with status: 1. There are some other questions about the same issue on Stack Overflow.
â wjandrea
Apr 26 at 21:25
@wjandrea already read and posted the feedback in the question
â spider22
Apr 26 at 21:35
OK, looks like you're making progress. Please keep researching the issue. I've found more questions related to the error you're currently getting. If it wasn't clear, we expect you to thoroughly research an issue before asking a question. See How to Ask
â wjandrea
Apr 26 at 21:46
1
Under which display server are you running Firefox and Selenium? One of the error messages is âÂÂFailed to connect to MirâÂÂ.
â David Foerster
Apr 27 at 20:43
add a comment |Â
Possible duplicate on Stack Overflow: Webdriver Exception:Process unexpectedly closed with status: 1. There are some other questions about the same issue on Stack Overflow.
â wjandrea
Apr 26 at 21:25
@wjandrea already read and posted the feedback in the question
â spider22
Apr 26 at 21:35
OK, looks like you're making progress. Please keep researching the issue. I've found more questions related to the error you're currently getting. If it wasn't clear, we expect you to thoroughly research an issue before asking a question. See How to Ask
â wjandrea
Apr 26 at 21:46
1
Under which display server are you running Firefox and Selenium? One of the error messages is âÂÂFailed to connect to MirâÂÂ.
â David Foerster
Apr 27 at 20:43
Possible duplicate on Stack Overflow: Webdriver Exception:Process unexpectedly closed with status: 1. There are some other questions about the same issue on Stack Overflow.
â wjandrea
Apr 26 at 21:25
Possible duplicate on Stack Overflow: Webdriver Exception:Process unexpectedly closed with status: 1. There are some other questions about the same issue on Stack Overflow.
â wjandrea
Apr 26 at 21:25
@wjandrea already read and posted the feedback in the question
â spider22
Apr 26 at 21:35
@wjandrea already read and posted the feedback in the question
â spider22
Apr 26 at 21:35
OK, looks like you're making progress. Please keep researching the issue. I've found more questions related to the error you're currently getting. If it wasn't clear, we expect you to thoroughly research an issue before asking a question. See How to Ask
â wjandrea
Apr 26 at 21:46
OK, looks like you're making progress. Please keep researching the issue. I've found more questions related to the error you're currently getting. If it wasn't clear, we expect you to thoroughly research an issue before asking a question. See How to Ask
â wjandrea
Apr 26 at 21:46
1
1
Under which display server are you running Firefox and Selenium? One of the error messages is âÂÂFailed to connect to MirâÂÂ.
â David Foerster
Apr 27 at 20:43
Under which display server are you running Firefox and Selenium? One of the error messages is âÂÂFailed to connect to MirâÂÂ.
â David Foerster
Apr 27 at 20:43
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1028548%2finstall-firefox-driver-on-ubuntu-16-04-3-lts%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
Possible duplicate on Stack Overflow: Webdriver Exception:Process unexpectedly closed with status: 1. There are some other questions about the same issue on Stack Overflow.
â wjandrea
Apr 26 at 21:25
@wjandrea already read and posted the feedback in the question
â spider22
Apr 26 at 21:35
OK, looks like you're making progress. Please keep researching the issue. I've found more questions related to the error you're currently getting. If it wasn't clear, we expect you to thoroughly research an issue before asking a question. See How to Ask
â wjandrea
Apr 26 at 21:46
1
Under which display server are you running Firefox and Selenium? One of the error messages is âÂÂFailed to connect to MirâÂÂ.
â David Foerster
Apr 27 at 20:43