我最近在我的机器人中添加了一个selenium.webdriver.PhantomJS()对象,用于抓取。但是当我使用supervisord启动我的机器人时,它立即崩溃并返回错误127。我得到的确切错误是:selenium.common.exceptions.WebDriverException: Message: Service phantomjs unexpectedly exitedStatus code was 127npm版本: 5.6
我遵循了Poltergeist github页面上的说明,但是我一直收到一个错误,我的PhantomJS版本是错误的。具体来说,它说:
Could not find an executable 'phantomjs' that matched the requirements '~> 1.8', '>= 1.8.1'.Found versions were {"/home/marko/projects/
在Ubuntu上尝试使用ruby中的phantomjs时出现以下错误: Cliver::Dependency::NotFound:Could not find an executable ["phantomjs"] on your path/spec/support/vcr.rb:23:in `block (2 levels) in <top (required)>'
phantomjs