我正在尝试运行使用 selenium 模块的 python 代码。这段代码在我的 PC 中使用 chromedriver 完美运行。我正在尝试在 c9.io 中运行它。我下载了 chromedriver 64 位版本,并使用 chmod 授予权限为 777。我仍然无法让它工作
但是,我收到以下错误:
Traceback (most recent call last):
File "/home/ubuntu/workspace/vroniplag/vroni.py", line 119, in <module>
op('Aaf')
File "/home/ubuntu/workspace/vroniplag/vroni.py", line 104, in op
plags=getplags(cd)
File "/home/ubuntu/workspace/vroniplag/vroni.py", line 92, in getplags
driver = webdriver.Chrome(chromedriver)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 62, in __init__
self.service.start()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 86, in start
self.assert_process_still_running()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 99, in assert_process_still_running
% (self.path, return_code)
selenium.common.exceptions.WebDriverException: Message: Service ./chromedriver unexpectedly exited. Status code was: 127
谁能告诉我如何解决这个问题