VPS服务器上的Python脚本显示Selenium和chrome驱动程序错误。

时间:2018-09-08 16:17:09

标签: python selenium selenium-chromedriver

我制作了python脚本,该脚本从少量来源中抓取了一些引号并进行了计算。脚本在我的机器上可以完美运行,但不能在VPS服务器上运行。

它显示了此错误,我不知道是什么问题:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/common/service.py", line 76, in start
    stdin=PIPE)
  File "/usr/lib/python3.5/subprocess.py", line 947, in _init_
    restore_signals, start_new_session)
  File "/usr/lib/python3.5/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
PermissionError: [Errno 13] Permission denied

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "bookies.py", line 25, in <module>
    eventList += funcList[i]()
  File "/root/newScraper/bookies/website.py", line 76, in listMaker
    driver = webdriver.Chrome(chrome_options=options, executable_path="./chromedriver")
  File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/chrome/webdriver.py", line 68, in _init_
    self.service.start()
  File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/common/service.py", line 88, in start
    os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home

我假设它与chromedriver版本和/或硒版本有关。

VPS在ubuntu linux(ovh vps)上运行

0 个答案:

没有答案