Can't open phantom.js / Invalid drive specification
delawareschidtgroup opened this issue · comments
Hello,
When I try to do a capture I have the following error message:
Unable to open file: 'C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.0.0/lib/wraith/javascript/casper.js'
I have try the same kind with phantomjs:
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.0.0/lib/wraith/javascript/phantom.js''
I have already try to put the everyone in ful control on the javascript folder without success.
I am working on windows 8 on wraith 4.0.0.
Here is the tests I have already done:
cmd> phatomjs -v
2.1.1
-> this mean that phantomjs is installed correcty and that my path is correctly set
cmd> casperjs --help
-> I have a response so this path is also correct
cmd> wraith info
-> Invalid drive specification.
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.0.0/lib/wraith/helpers/utilities.rb:56:in `run_command_safely': undefined method `chomp' for nil:NilClass (NoMet
hodError)
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.0.0/lib/wraith/helpers/utilities.rb:37:in `list_debug_information'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.0.0/lib/wraith/cli.rb:169:in `info'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.0.0/bin/wraith:5:in `<top (required)>'
from C:/Ruby23-x64/bin/wraith:22:in `load'
from C:/Ruby23-x64/bin/wraith:22:in `<main>'
Issue checklist:
-
I have validated my config file against YAML Validator to make sure it is valid YAML.
-
I have run the
wraith info
command and pasted the output below:
paste results here
- I have run the command in verbose mode (by adding
verbose: true
to my config) and pasted the output below:
Invalid drive specification.
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.0.0/lib/wraith/helpers/utilities.rb:56:in `run_command_safely': undefined method `chomp' for nil:NilClass (NoMet
hodError)
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.0.0/lib/wraith/helpers/utilities.rb:37:in `list_debug_information'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.0.0/lib/wraith/validate.rb:14:in `validate'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.0.0/lib/wraith/cli.rb:121:in `block in capture'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.0.0/lib/wraith/helpers/utilities.rb:4:in `within_acceptable_limits'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.0.0/lib/wraith/cli.rb:120:in `capture'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.0.0/bin/wraith:5:in `<top (required)>'
from C:/Ruby23-x64/bin/wraith:22:in `load'
from C:/Ruby23-x64/bin/wraith:22:in `<main>'
The non verbose mode give me this:
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.0.0/lib/wraith/javascript/phantom.js''
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.0.0/lib/wraith/javascript/phantom.js''
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.0.0/lib/wraith/javascript/phantom.js''
Can't open ''C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.0.0/lib/wraith/javascript/phantom.js''
CROPPING IMAGES
Process.fork is not supported by this Ruby
COMPARING IMAGES
Process.fork is not supported by this Ruby
GENERATING THUMBNAILS
Process.fork is not supported by this Ruby
GENERATING GALLERY
Gallery generated
View the gallery in your browser:
file://C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-4.0.0/spec/configs/shots/gallery.html
- I have pasted the contents of my config file below:
##########
### NB: the paths in this YAML config are relative to the root of the Wraith directory,
### as `bundle exec rspec` is run from the root.
##########
#Headless browser option
browser:
phantomjs: "phantomjs"
# we've deliberately left out the snap_file
resize_or_reload: resize
# Type the name of the directory that shots will be stored in
directory: 'shots'
# Add only 2 domains, key will act as a label
domains:
afrique: "http://www.bbc.com/afrique"
russian: "http://www.bbc.com/russian"
#Type screen widths below, here are a couple of examples
screen_widths:
- 320
- 600
- 1280
#Type page URL paths below, here are a couple of examples
paths:
home: /
uk_index: /uk
#Amount of fuzz ImageMagick will use
fuzz: '20%'
verbose: true
This is a known issue - please see #489.
Current workaround is to use a version of Phantom below 2.