bbc / wraith

Wraith — A responsive screenshot comparison tool

Home Page:http://bbc-news.github.io/wraith/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't get wraith capture to work

hannacarlssoon opened this issue · comments


I'm trying to get Wraith to work, but it's not working and I get this output:

Config validated. No serious issues found.
Creating Folders
SAVING IMAGES
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/768_phantomjs_current.png on attempt number 1 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/600x768_phantomjs_new.png on attempt number 1 of 5
WARN: Failed to capture image shots/home/320_phantomjs_current.png on attempt number 1 of 5
WARN: Failed to capture image shots/home/600x768_phantomjs_current.png on attempt number 1 of 5
WARN: Failed to capture image shots/home/320_phantomjs_new.png on attempt number 1 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/768_phantomjs_new.png on attempt number 1 of 5
WARN: Failed to capture image shots/home/1024_phantomjs_current.png on attempt number 1 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/1024_phantomjs_new.png on attempt number 1 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/600x768_phantomjs_current.png on attempt number 2 of 5
WARN: Failed to capture image shots/home/600x768_phantomjs_new.png on attempt number 2 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/768_phantomjs_current.png on attempt number 2 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/320_phantomjs_new.png on attempt number 2 of 5
WARN: Failed to capture image shots/home/320_phantomjs_current.png on attempt number 2 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/1024_phantomjs_current.png on attempt number 2 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/600x768_phantomjs_current.png on attempt number 3 of 5
WARN: Failed to capture image shots/home/768_phantomjs_new.png on attempt number 2 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/1024_phantomjs_new.png on attempt number 2 of 5
WARN: Failed to capture image shots/home/600x768_phantomjs_new.png on attempt number 3 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/768_phantomjs_current.png on attempt number 3 of 5
WARN: Failed to capture image shots/home/320_phantomjs_current.png on attempt number 3 of 5
WARN: Failed to capture image shots/home/320_phantomjs_new.png on attempt number 3 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/1024_phantomjs_current.png on attempt number 3 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/600x768_phantomjs_current.png on attempt number 4 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/768_phantomjs_new.png on attempt number 3 of 5
Can't open 'C'C:/Ruby23-xan't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.j
s''
64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
CCaann''tt ooppeenn '''C:'/CRuby23-x6:4//lRuibby/2r3u-bxy6/4g/elmisb//2r.u3b.y0//ggeemmss//2w.r3a.i0t/hg-e4m.s2/.w1rai
t/hl-i4b./2w.r1a/iltihb//jwarvaaistchr/ijpatv/apshantom.js'c'ri
pt/phantom.js''
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/WARN: Failed to capture image shots/home/1024_phantomjs_new.png on attemp
t number 3 of 5
gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/600x768_phantomjs_new.png on attempt number 4 of 5
WARN: Failed to capture image shots/home/768_phantomjs_current.png on attempt number 4 of 5
WARN: Failed to capture image shots/home/320_phantomjs_new.png on attempt number 4 of 5
WARN: Failed to capture image shots/home/320_phantomjs_current.png on attempt number 4 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/768_phantomjs_new.png on attempt number 4 of 5
WARN: Failed to capture image shots/home/1024_phantomjs_current.png on attempt number 4 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/600x768_phantomjs_current.png on attempt number 5 of 5
ERROR: Unable to capture image shots/home/600x768_phantomjs_current.png after 5 attempt(s)
WARN: Using fallback image instead
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/600x768_phantomjs_new.png on attempt number 5 of 5
ERROR: Unable to capture image shots/home/600x768_phantomjs_new.png after 5 attempt(s)
WARN: Using fallback image instead
Invalid Parameter - /home
WARN: Failed to capture image shots/home/320_phantomjs_current.png on attempt number 5 of 5
ERROR: Unable to capture image shots/home/320_phantomjs_current.png after 5 attempt(s)
WARN: Using fallback image instead
Invalid Parameter - /home
Invalid Parameter - /home
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/320_phantomjs_new.png on attempt number 5 of 5
ERROR: Unable to capture image shots/home/320_phantomjs_new.png after 5 attempt(s)
WARN: Using fallback image instead
WARN: Failed to capture image shots/home/1024_phantomjs_new.png on attempt number 4 of 5
Invalid Parameter - /home
WARN: Failed to capture image shots/home/768_phantomjs_current.png on attempt number 5 of 5
ERROR: Unable to capture image shots/home/768_phantomjs_current.png after 5 attempt(s)
WARN: Using fallback image instead
Invalid Parameter - /home
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/768_phantomjs_new.png on attempt number 5 of 5
ERROR: Unable to capture image shots/home/768_phantomjs_new.png after 5 attempt(s)
WARN: Using fallback image instead
Invalid Parameter - /home
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/1024_phantomjs_current.png on attempt number 5 of 5
ERROR: Unable to capture image shots/home/1024_phantomjs_current.png after 5 attempt(s)
WARN: Using fallback image instead
Invalid Parameter - /home
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/1280_phantomjs_new.png on attempt number 1 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/1024_phantomjs_new.png on attempt number 5 of 5
ERROR: Unable to capture image shots/home/1024_phantomjs_new.png after 5 attempt(s)
WARN: Using fallback image instead
Invalid Parameter - /home
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/1280_phantomjs_current.png on attempt number 1 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/1280_phantomjs_new.png on attempt number 2 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/1280_phantomjs_current.png on attempt number 2 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/1280_phantomjs_new.png on attempt number 3 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/1280_phantomjs_current.png on attempt number 3 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/1280_phantomjs_new.png on attempt number 4 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/1280_phantomjs_current.png on attempt number 4 of 5
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/1280_phantomjs_new.png on attempt number 5 of 5
ERROR: Unable to capture image shots/home/1280_phantomjs_new.png after 5 attempt(s)
WARN: Using fallback image instead
Invalid Parameter - /home
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/javascript/phantom.js''
WARN: Failed to capture image shots/home/1280_phantomjs_current.png on attempt number 5 of 5
ERROR: Unable to capture image shots/home/1280_phantomjs_current.png after 5 attempt(s)
WARN: Using fallback image instead
Invalid Parameter - /home
CROPPING IMAGES
Process.fork is not supported by this Ruby
DEBUG: Both images are exactly 500x500 - no cropping required. (shots/home/1024_phantomjs_current.png, shots/home/1024_p
hantomjs_new.png)
DEBUG: Both images are exactly 500x500 - no cropping required. (shots/home/1280_phantomjs_current.png, shots/home/1280_p
hantomjs_new.png)
DEBUG: Both images are exactly 500x500 - no cropping required. (shots/home/320_phantomjs_current.png, shots/home/320_pha
ntomjs_new.png)
DEBUG: Both images are exactly 500x500 - no cropping required. (shots/home/600x768_phantomjs_current.png, shots/home/600
x768_phantomjs_new.png)
DEBUG: Both images are exactly 500x500 - no cropping required. (shots/home/768_phantomjs_current.png, shots/home/768_pha
ntomjs_new.png)
COMPARING IMAGES
Process.fork is not supported by this Ruby
Comparing shots/home/1024_phantomjs_current.png and shots/home/1024_phantomjs_new.png
C:/Ruby23-x64/lib/ruby/2.3.0/open3.rb:199:in spawn': No such file or directory - compare -dissimilarity-threshold 1 -fu zz 20% -metric AE -highlight-color blue shots/home/1024_phantomjs_current.png shots/home/1024_phantomjs_new.png shots/ho me/1024_phantomjs_diff.png (Errno::ENOENT) from C:/Ruby23-x64/lib/ruby/2.3.0/open3.rb:199:in popen_run'
from C:/Ruby23-x64/lib/ruby/2.3.0/open3.rb:95:in popen3' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/compare_images.rb:35:in compare_task'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/compare_images.rb:22:in block in compare_im ages' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/parallel-1.12.1/lib/parallel.rb:486:in call_with_index'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/parallel-1.12.1/lib/parallel.rb:318:in block in work_direct' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/parallel-1.12.1/lib/parallel.rb:495:in with_instrumentation'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/parallel-1.12.1/lib/parallel.rb:317:in work_direct' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/parallel-1.12.1/lib/parallel.rb:260:in map'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/parallel-1.12.1/lib/parallel.rb:217:in each' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/compare_images.rb:18:in compare_images'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/cli.rb:96:in block in compare_images' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/helpers/utilities.rb:4:in within_acceptable
_limits'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/cli.rb:93:in compare_images' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/cli.rb:126:in block in capture'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/helpers/utilities.rb:4:in within_acceptable _limits' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/cli.rb:120:in capture'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.20.0/lib/thor/command.rb:27:in run' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in invoke_command'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.20.0/lib/thor.rb:387:in dispatch' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.20.0/lib/thor/base.rb:466:in start'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/bin/wraith:5:in <top (required)>' from C:/Ruby23-x64/bin/wraith:22:in load'
from C:/Ruby23-x64/bin/wraith:22:in `

'

Issue checklist:

  • I have validated my config file against YAML Validator to make sure it is valid YAML.

  • [X ] I have run the wraith info command and pasted the output below:

C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:933:in `connect_nonblock': SSL_connect returned=1 errno=0 state=error: certific
ate verify failed (OpenSSL::SSL::SSLError)
        from C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:933:in `connect'
        from C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:863:in `do_start'
        from C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:852:in `start'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:319:in `open_http'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:737:in `buffer_open'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:212:in `block in open_loop'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:210:in `catch'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:210:in `open_loop'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:151:in `open_uri'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/lib/chromedriver/helper/google_code_parser
.rb:13:in `initialize'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/lib/chromedriver/helper.rb:63:in `new'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/lib/chromedriver/helper.rb:63:in `google_c
ode_parser'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/lib/chromedriver/helper.rb:55:in `download
_version'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/lib/chromedriver/helper.rb:85:in `version_
install_dir'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/lib/chromedriver/helper.rb:79:in `platform
_install_dir'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/lib/chromedriver/helper.rb:72:in `binary_p
ath'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/lib/chromedriver/helper.rb:20:in `download
'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/lib/chromedriver/helper.rb:15:in `run'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/bin/chromedriver:5:in `<top (required)>'
        from C:/Ruby23-x64/bin/chromedriver:22:in `load'
        from C:/Ruby23-x64/bin/chromedriver:22:in `<main>'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/helpers/utilities.rb:58:in `run_command_safely': undefine
d method `chomp' for nil:NilClass (NoMethodError)
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/helpers/utilities.rb:36:in `list_debug_infor
mation'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/cli.rb:169:in `info'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.20.0/lib/thor/base.rb:466:in `start'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/bin/wraith:5:in `<top (required)>'
        from C:/Ruby23-x64/bin/wraith:22:in `load'
        from C:/Ruby23-x64/bin/wraith:22:in `<main>'
  • [X ] I have run the command in verbose mode (by adding verbose: true to my config) and pasted the output below:
C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:933:in `connect_nonblock': SSL_connect returned=1 errno=0 state=error: cert
ate verify failed (OpenSSL::SSL::SSLError)
        from C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:933:in `connect'
        from C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:863:in `do_start'
        from C:/Ruby23-x64/lib/ruby/2.3.0/net/http.rb:852:in `start'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:319:in `open_http'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:737:in `buffer_open'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:212:in `block in open_loop'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:210:in `catch'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:210:in `open_loop'
        from C:/Ruby23-x64/lib/ruby/2.3.0/open-uri.rb:151:in `open_uri'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/lib/chromedriver/helper/google_code_pa
.rb:13:in `initialize'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/lib/chromedriver/helper.rb:63:in `new'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/lib/chromedriver/helper.rb:63:in `goog
ode_parser'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/lib/chromedriver/helper.rb:55:in `down
_version'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/lib/chromedriver/helper.rb:85:in `vers
install_dir'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/lib/chromedriver/helper.rb:79:in `plat
_install_dir'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/lib/chromedriver/helper.rb:72:in `bina
ath'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/lib/chromedriver/helper.rb:20:in `down
'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/lib/chromedriver/helper.rb:15:in `run'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/chromedriver-helper-1.2.0/bin/chromedriver:5:in `<top (required)
        from C:/Ruby23-x64/bin/chromedriver:22:in `load'
        from C:/Ruby23-x64/bin/chromedriver:22:in `<main>'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/helpers/utilities.rb:58:in `run_command_safely': unde
d method `chomp' for nil:NilClass (NoMethodError)
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/helpers/utilities.rb:36:in `list_debug_i
mation'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/validate.rb:14:in `validate'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/cli.rb:121:in `block in capture'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/helpers/utilities.rb:4:in `within_accept
_limits'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/lib/wraith/cli.rb:120:in `capture'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.20.0/lib/thor/base.rb:466:in `start'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.2.1/bin/wraith:5:in `<top (required)>'
        from C:/Ruby23-x64/bin/wraith:22:in `load'
        from C:/Ruby23-x64/bin/wraith:22:in `<main>'
  • I have pasted the contents of my config file below:
##############################################################
##############################################################
# This is an example configuration provided by Wraith.
# Feel free to amend for your own requirements.
# ---
# This particular config is intended to demonstrate how
# to use Wraith in 'capture' mode, which is best suited to
# comparing a test and live version of the same website.
#
# `wraith capture capture.yaml`
#
##############################################################
##############################################################

# (required) The engine to run Wraith with. Examples: 'phantomjs', 'casperjs', 'slimerjs'
browser: "phantomjs"

# (required) The domains to take screenshots of.
domains:
  current:  "http://www.bbc.com"
  new:      "http://www.bbc.com"

# (required) The paths to capture. All paths should exist for both of the domains specified above.
paths:
  home:     /
  #about:    /about
  #contact:  /get-in-touch

# (required) Screen widths (and optional height) to resize the browser to before taking the screenshot.
screen_widths:
  - 320
  - 600x768
  - 768
  - 1024
  - 1280

# (optional) JavaScript file to execute before taking screenshot of every path. Default: nil
before_capture: 'javascript/disable_javascript--phantom.js'

# (required) The directory that your screenshots will be stored in
directory: 'shots'

# (required) Amount of fuzz ImageMagick will use when comparing images. A higher fuzz makes the comparison less strict.
fuzz: '20%'

# (optional) The maximum acceptable level of difference (in %) between two images before Wraith reports a failure. Default: 0
threshold: 5

# (optional) Specify the template (and generated thumbnail sizes) for the gallery output.
gallery:
  template: 'slideshow_template' # Examples: 'basic_template' (default), 'slideshow_template'
  thumb_width:  200
  thumb_height: 200

# (optional) Choose which results are displayed in the gallery, and in what order. Default: alphanumeric
# Options:
#   alphanumeric - all paths (with or without a difference) are shown, sorted by path
#   diffs_first - all paths (with or without a difference) are shown, sorted by difference size (largest first)
#   diffs_only - only paths with a difference are shown, sorted by difference size (largest first)
# Note: different screen widths are always grouped together.
mode: diffs_first
 
verbose: true

I've run into this issue before. What version of PhantomJS are you using? You can have a look at #479 as this looks similar to the error i got and this fixed it for me.