From: Joel Pearson Date: 2012-07-24T01:31:54+09:00 Subject: Ocra just stopped working with webdriver This code functions fine from a script, but when I try to package it with Ocra I get an error... ruby 1.9.3 watir-webdriver 0.6.1 ocra 1.3.0 Platform: Windows 7 64-bit ___________________________________________________________________________ Ruby Code: ___________________________________________________________________________ require 'watir-webdriver' testy = Watir::Browser.new testy.goto("www.purple.com") testy.quit puts "Complete" exit ___________________________________________________________________________ Console output: ___________________________________________________________________________ C:\Users\test\Desktop>ocra driver.rb === Loading script to check dependencies Complete C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:467: Use RbConfig instea d of obsolete and deprecated Config. C:/Ruby193/lib/ruby/gems/1.9.1/gems/addressable-2.3.1/lib/addressable/idna/pure. rb:323:in `load': marshal data too short (ArgumentError) from C:/Ruby193/lib/ruby/gems/1.9.1/gems/addressable-2.3.1/lib/addressab le/idna/pure.rb:323:in `block in ' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/addressable-2.3.1/lib/addressab le/idna/pure.rb:322:in `open' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/addressable-2.3.1/lib/addressab le/idna/pure.rb:322:in `' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/addressable-2.3.1/lib/addressab le/idna/pure.rb:20:in `' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/addressable-2.3.1/lib/addressab le/idna/pure.rb:19:in `' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i n `require' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i n `require' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/addressable-2.3.1/lib/addressab le/idna.rb:24:in `rescue in ' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/addressable-2.3.1/lib/addressab le/idna.rb:19:in `' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i n `require' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i n `require' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/addressable-2.3.1/lib/addressab le/uri.rb:20:in `' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:i n `require' from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:i n `require' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/libwebsocket-0.1.3/lib/libwebso cket/url.rb:1:in `' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:467:in `con st_get' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:467:in `blo ck (3 levels) in attempt_load_autoload' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:464:in `eac h' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:464:in `blo ck (2 levels) in attempt_load_autoload' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:462:in `eac h' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:462:in `blo ck in attempt_load_autoload' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:456:in `loo p' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:456:in `att empt_load_autoload' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:679:in `bui ld_exe' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.0/bin/ocra:1138:in `bl ock in ' C:\Users\test\Desktop> -- Posted via http://www.ruby-forum.com/.