Почему chromedriver дает сбой в ruby ​​2.4.0 и bundler 2.0.1 с неопределенным методом `[] 'для nil: NilClass (NoMethodError) - PullRequest
0 голосов
/ 20 мая 2019

Я пытаюсь запустить мое приложение ruby, которое использует капибару.Он работал на другой машине, но когда я переключил машину, установил ruby, связал и запустил ее на новой машине, я получил:

me/service.rb:115:in
`connect_until_stable': unable to connect to chromedriver 127.0.0.1:9515 (Selenium::WebDriver
::Error::WebDriverError)```   

Trying to look at the version of chrommedriver gives me this:

    chromedriver -v

/home/michael/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/nokogiri-1.6.8/lib/nokogiri/xml/document.rb:44: warning: constant ::Fixnum is deprecated
/home/michael/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/webdrivers-2.4.0/lib/webdrivers/chromedriver.rb:19:in `block in newest_version': undefined method `[]' for nil:NilClass (NoMethodError)```

Error seems to be:

    chromedriver.rb:19:in `block in newest_version': undefined method `[]' for nil:NilClass (NoMethodError)

I also get:

$ sudo apt-get install chromedriver
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package chromedriver is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'chromedriver' has no installation candidate

...