Selenium chromedriver error code -4

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Selenium chromedriver error code -4

Joss Sparkes
I am trying to set up a script on a new Pi Zero W that was previously working on my Pi 3 B. It seems the hardware may be causing the issue as simply moving the whole operating system etc over to the new pi causes this issue. There is no other changes.

I have tried looking at my Chrome and chrome driver version and matching it up. I am also using the ARMhf version of chrome driver found here https://launchpad.net/ubuntu/trusty/+package/chromium-chromedriver.

My full code set for the project is here https://github.com/RemakingEden/ski-lodge-tv-slideshow and the code I use to use Selenium is

import sys
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.action_chains import ActionChains
import time
import schedule
import os

url1 = 'http://niseko.nadare.info/'
url2 = 'https://www.windy.com/?43.044,141.348,5,i:pressure,p:off'
url3 = 'https://www.niseko.ne.jp/en/niseko-lift-status/'
intervalAmount = 45
chromeDriverLocation = "/usr/lib/chromium-browser/chromedriver"
timeToSwitch = "09:00"
vlcPlaylistDirectory = "/home/pi/snowFilms"

options = Options()
options.add_argument("--kiosk")
options.add_argument('disable-infobars')
driver = webdriver.Chrome(chromeDriverLocation,
chrome_options=options)    

As this works on the Pi 3 B I would expect it to work on the Zero however on the Zero I get the error

Traceback (most recent call last):
  File "/home/pi/python/ski-lodge-tv-slideshow/skiLodge.py", line 24, in <module>
    driver = webdriver.Chrome(chromeDriverLocation, chrome_options=options)
  File "/home/pi/.local/lib/python3.5/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
    self.service.start()
  File "/home/pi/.local/lib/python3.5/site-packages/selenium/webdriver/common/service.py", line 98, in start
    self.assert_process_still_running()
  File "/home/pi/.local/lib/python3.5/site-packages/selenium/webdriver/common/service.py", line 111, in assert_process_still_running
    % (self.path, return_code)
selenium.common.exceptions.WebDriverException: Message: Service /usr/lib/chromium-browser/chromedriver unexpectedly exited. Status code was: -4

Selenium is version 3.141.0

Chromium is 65.0.3325.181

Chromedriver is 65.0.3325.181

I have looked everywhere to find the list of minus status codes and what they mean. If anyone has them or knows how to help it would amazing.

Thank you.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/fb059fba-0a21-4e29-8cb4-63882f92b783%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Selenium chromedriver error code -4

G Twain
Did you ever find a fix for this?

On Sunday, 17 February 2019 22:36:53 UTC-5, Joss Sparkes wrote:
I am trying to set up a script on a new Pi Zero W that was previously working on my Pi 3 B. It seems the hardware may be causing the issue as simply moving the whole operating system etc over to the new pi causes this issue. There is no other changes.

I have tried looking at my Chrome and chrome driver version and matching it up. I am also using the ARMhf version of chrome driver found here <a href="https://launchpad.net/ubuntu/trusty/+package/chromium-chromedriver" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flaunchpad.net%2Fubuntu%2Ftrusty%2F%2Bpackage%2Fchromium-chromedriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNER0DQJD0tHTa6e0hrEsu6LoQyVZA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Flaunchpad.net%2Fubuntu%2Ftrusty%2F%2Bpackage%2Fchromium-chromedriver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNER0DQJD0tHTa6e0hrEsu6LoQyVZA&#39;;return true;">https://launchpad.net/ubuntu/trusty/+package/chromium-chromedriver.

My full code set for the project is here <a href="https://github.com/RemakingEden/ski-lodge-tv-slideshow" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FRemakingEden%2Fski-lodge-tv-slideshow\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBbQ9-zEFK7o8xHHvW8Oxc424hRQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2FRemakingEden%2Fski-lodge-tv-slideshow\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFBbQ9-zEFK7o8xHHvW8Oxc424hRQ&#39;;return true;">https://github.com/RemakingEden/ski-lodge-tv-slideshow and the code I use to use Selenium is

import sys
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.action_chains import ActionChains
import time
import schedule
import os

url1 = '<a href="http://niseko.nadare.info/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fniseko.nadare.info%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNErYL7r0v8EKgLzkioXMaOXg7QqiQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fniseko.nadare.info%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNErYL7r0v8EKgLzkioXMaOXg7QqiQ&#39;;return true;">http://niseko.nadare.info/'
url2 = '<a href="https://www.windy.com/?43.044,141.348,5,i:pressure,p:off" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.windy.com%2F%3F43.044%2C141.348%2C5%2Ci%3Apressure%2Cp%3Aoff\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEvYvIZX2u9QxSblPap0m2C7sCrcw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.windy.com%2F%3F43.044%2C141.348%2C5%2Ci%3Apressure%2Cp%3Aoff\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEvYvIZX2u9QxSblPap0m2C7sCrcw&#39;;return true;">https://www.windy.com/?43.044,141.348,5,i:pressure,p:off'
url3 = '<a href="https://www.niseko.ne.jp/en/niseko-lift-status/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.niseko.ne.jp%2Fen%2Fniseko-lift-status%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLD7AOrsWc166N9iM2NYrVDT3yXg&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fwww.niseko.ne.jp%2Fen%2Fniseko-lift-status%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLD7AOrsWc166N9iM2NYrVDT3yXg&#39;;return true;">https://www.niseko.ne.jp/en/niseko-lift-status/'
intervalAmount = 45
chromeDriverLocation = "/usr/lib/chromium-browser/chromedriver"
timeToSwitch = "09:00"
vlcPlaylistDirectory = "/home/pi/snowFilms"

options = Options()
options.add_argument("--kiosk")
options.add_argument('disable-infobars')
driver = webdriver.Chrome(chromeDriverLocation,
chrome_options=options)    

As this works on the Pi 3 B I would expect it to work on the Zero however on the Zero I get the error

Traceback (most recent call last):
  File "/home/pi/python/ski-lodge-tv-slideshow/skiLodge.py", line 24, in <module>
    driver = webdriver.Chrome(chromeDriverLocation, chrome_options=options)
  File "/home/pi/.local/lib/python3.5/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
    self.service.start()
  File "/home/pi/.local/lib/python3.5/site-packages/selenium/webdriver/common/service.py", line 98, in start
    self.assert_process_still_running()
  File "/home/pi/.local/lib/python3.5/site-packages/selenium/webdriver/common/service.py", line 111, in assert_process_still_running
    % (self.path, return_code)
selenium.common.exceptions.WebDriverException: Message: Service /usr/lib/chromium-browser/chromedriver unexpectedly exited. Status code was: -4

Selenium is version 3.141.0

Chromium is 65.0.3325.181

Chromedriver is 65.0.3325.181

I have looked everywhere to find the list of minus status codes and what they mean. If anyone has them or knows how to help it would amazing.

Thank you.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/7a8f9e6f-eb82-4c14-b57e-2ba9555c5b3co%40googlegroups.com.