简体   繁体   English

OSError:[Errno 8]尝试运行chromedriver for selenium时出现exec格式错误

[英]OSError: [Errno 8] Exec format error when trying to run chromedriver for selenium

I am trying to run Selenium based tests on an Ubuntu based server from Jenkins but get the following cryptic errors: 我试图在Jenkins的基于Ubuntu的服务器上运行基于Selenium的测试,但是得到以下神秘错误:

First: 第一:

+ python manage.py jenkins --enable-coverage --settings=Modeling.settings.dev
......EException AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x7f6b67b3ac50>> ignored
EException AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x7f6b66b2ed10>> ignored
EEException AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x7f6b66b4bad0>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x7f6b66ad5a90>> ignored
EException AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x7f6b66ae3110>> ignored
EEException AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x7f6b66af06d0>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x7f6b66af12d0>> ignored
EException AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x7f6b66af1ad0>> ignored
EEException AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x7f6b66b03ad0>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x7f6b66b08f50>> ignored
EEEException AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x7f6b66b08790>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x7f6b66b08d50>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x7f6b66b0bbd0>> ignored
EEException AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x7f6b66a95a10>> ignored
Exception AttributeError: "'Service' object has no attribute 'process'" in <bound method Service.__del__ of <selenium.webdriver.chrome.service.Service object at 0x7f6b66b08550>> ignored

And then a bit further down: 然后再往下走一点:

Traceback (most recent call last):
  File "/var/lib/jenkins/jobs/GS_modelling_web_tests/workspace/modeling/Modeling/tests/BaseTest.py", line 18, in setUp
    self.browser = webdriver.Chrome( ChromeDriver.path() )
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 61, in __init__
    self.service.start()
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 62, in start
    stdout=self.log_file, stderr=self.log_file)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 8] Exec format error

For the first error I have seen Scrapy with selenium, webdriver failing to instantiate but that seems to be something else related to shutting down? 对于第一个错误,我看过使用selenium的Scrapy,webdriver无法实例化,但这似乎与关闭其他相关的东西? And the second error seems related to shebangs according to OSError: [Errno 8] Exec format error but I haven't managed to understand whether I can use that information. 根据OSError ,第二个错误似乎与shebangs有关:[Errno 8] Exec格式错误,但我还没有设法理解我是否可以使用该信息。 What's going on here? 这里发生了什么?

OSError: [Errno 8] Exec format error OSError:[Errno 8] Exec格式错误

ChromeDriver executable available here is not supported on Ubuntu platform. Ubuntu平台不支持此处提供的ChromeDriver可执行文件。 For Ubuntu use chromedriver for ubuntu http://chromedriver.storage.googleapis.com/2.23/chromedriver_linux32.zip or http://chromedriver.storage.googleapis.com/2.23/chromedriver_linux64.zip 对于Ubuntu,请使用chromedriver for ubuntu http://chromedriver.storage.googleapis.com/2.23/chromedriver_linux32.ziphttp://chromedriver.storage.googleapis.com/2.23/chromedriver_linux64.zip

The complete list can be found at https://sites.google.com/a/chromium.org/chromedriver/downloads 完整列表可在https://sites.google.com/a/chromium.org/chromedriver/downloads上找到

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Python Selenium chromedriver OSError:[Errno 8] Exec格式错误 - Python Selenium chromedriver OSError: [Errno 8] Exec format error OSError:[Errno 8] 执行格式错误:“chromedriver”在 Ubuntu 服务器上使用 Chromedriver - OSError: [Errno 8] Exec format error: 'chromedriver' using Chromedriver on Ubuntu server OSError:[Errno 8] Exec格式错误:&#39;geckodriver&#39;试图在python中使用selenium打开firefox - OSError: [Errno 8] Exec format error: 'geckodriver' when trying to open firefox using selenium in python OSError:[Errno 8] Exec格式错误selenium - OSError: [Errno 8] Exec format error selenium OSError: [Errno 8] 执行格式错误 - OSError: [Errno 8] Exec format error OSError: [Errno 8] MacOS 上 GeckoDriver 和 Selenium 的 Exec 格式错误 - OSError: [Errno 8] Exec format error with GeckoDriver and Selenium on MacOS Selenium Firefox驱动程序引发异常OSError:[Errno 8] Exec格式错误 - Selenium Firefox driver raise exception OSError: [Errno 8] Exec format error OSError:[Errno 8]尝试使用浏览器启动服务器时出现格式错误 - OSError: [Errno 8] Exec format error when trying to start server using browsermobproxy Flask CLI 在通过 docker-compose 运行时抛出 &#39;OSError: [Errno 8] Exec format error&#39; - Flask CLI throws 'OSError: [Errno 8] Exec format error' when run through docker-compose OSError:运行subprocess.Popen时出现[Errno 8] Exec格式错误 - OSError: [Errno 8] Exec format error when running subprocess.Popen
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM