From benaroia at gmail.com Sun Feb 17 23:15:19 2008 From: benaroia at gmail.com (benaroia) Date: Sun, 17 Feb 2008 23:15:19 -0500 Subject: [SafariWatir-general] problems installing Message-ID: <47B90657.1090004@gmail.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hey everyone, I'm new to ruby in general, and I'm trying to learn Watir (lacking IE on a mac). I seem to have trouble installing/using safariwatir on my machine. (1.33Ghz iBook, PowerPC Tiger) This is the error: /usr/local/lib/ruby/gems/1.8/gems/rb-appscript-0.5.0/lib/ae.bundle: Failed to load /usr/local/lib/ruby/gems/1.8/gems/rb-appscript-0.5.0/lib/ae.bundle (LoadError) ~ from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require' ~ from /usr/local/lib/ruby/gems/1.8/gems/rb-appscript-0.5.0/lib/_aem/mactypes.rb:10 ~ from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require' ~ from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require' ~ from /usr/local/lib/ruby/gems/1.8/gems/rb-appscript-0.5.0/lib/appscript.rb:5 ~ from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require' ~ from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require' ~ from /usr/local/lib/ruby/gems/1.8/gems/safariwatir-0.2.6/./safariwatir/scripter.rb:3 ~ from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require' ~ from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require' ~ from /usr/local/lib/ruby/gems/1.8/gems/safariwatir-0.2.6/./safariwatir.rb:2 ~ from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require' ~ from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require' ~ from safari_test_watir.rb:3 Any help? The program I'm trying to run is: require 'rubygems' require 'safariwatir' browser = Watir::Safari.new browser.goto("http://google.com") browser.text_field(:name, "q").set("obtiva") browser.button(:name, "btnI").click puts "FAILURE" unless browser.contains_text("software") ~Ben -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAke5BlEACgkQtZWK0QrjSE95UACeMb/WfBk/ct7c2Y/NmcMVkdDK mKEAn2yxxvqgE1godwhq+qzvF8pvu3bF =ESFw -----END PGP SIGNATURE----- From dave at obtiva.com Mon Feb 18 09:35:05 2008 From: dave at obtiva.com (Dave Hoover) Date: Mon, 18 Feb 2008 08:35:05 -0600 Subject: [SafariWatir-general] Fwd: problems installing In-Reply-To: References: <47B90657.1090004@gmail.com> <11c8704e0802180412v5c6cf182sc0d8693f3a96943e@mail.gmail.com> Message-ID: <11c8704e0802180635i67093feavebc1ddbeb845c915@mail.gmail.com> >From the author of rb-appscript, the Apple Event bridge that SafariWatir depends on... ---------- Forwarded message ---------- From: has Date: Feb 18, 2008 8:29 AM Subject: Re: [SafariWatir-general] problems installing To: Dave Hoover On 18 Feb 2008, at 12:12, Dave Hoover wrote: > Any thoughts on this installation problem? > Hey everyone, > I'm new to ruby in general, and I'm trying to learn Watir (lacking > IE on > a mac). I seem to have trouble installing/using safariwatir on my > machine. (1.33Ghz iBook, PowerPC Tiger) This is the error: > /usr/local/lib/ruby/gems/1.8/gems/rb-appscript-0.5.0/lib/ae.bundle: > Failed to load Sounds like their appscript gem is hosed.Ask the OP how they installed it and if they have Apple's developer tools installed (since gcc is required to build the ae.bundle extension). FWIW, I've just posted 0.5.1 along with my first attempt at a binary gem using gembuilder (the one with the 'universal-darwin-9' suffix). In theory, this should obviate the need for gcc although I'll wait and see if it actually works as advertised before drawing attention to it. If you want to give it a try, let us know how it goes. HTH has -- http://appscript.sourceforge.net http://rb-appscript.rubyforge.org From dave at obtiva.com Mon Feb 18 22:06:14 2008 From: dave at obtiva.com (Dave Hoover) Date: Mon, 18 Feb 2008 21:06:14 -0600 Subject: [SafariWatir-general] Fwd: problems installing In-Reply-To: References: <47B90657.1090004@gmail.com> <11c8704e0802180412v5c6cf182sc0d8693f3a96943e@mail.gmail.com> <11c8704e0802180635i67093feavebc1ddbeb845c915@mail.gmail.com> <47B99E5C.5090804@gmail.com> <11c8704e0802180744n6de13695j45f13dda603220fc@mail.gmail.com> Message-ID: <11c8704e0802181906l291bd3f9m20735caffd09e3f9@mail.gmail.com> Continuing my role of go-between... ---------- Forwarded message ---------- From: has Date: Feb 18, 2008 3:58 PM Subject: Re: [SafariWatir-general] problems installing To: Dave Hoover On 18 Feb 2008, at 15:44, Dave Hoover wrote: > This is what I get when I try to install rb-appscript (0.5.1 darwin > universal) > ERROR: While executing gem ... (RuntimeError) > ~ Error instaling rb-appscript-0.5.1-universal-darwin-9.gem: > ~ attempt to install file into > "/var/folders/p+/p+pBAQxKE-S81g-RmJ1K8U+++TI/-Tmp-/gembuilder/TODO" Ho-hum. Same problem here. Taking the universal gem file apart, looks like gembuilder has thoroughly messed up the build. Gembuilder doesn't seem to have been maintained recently, which is unfortunate as it looks like it's well broken by recent rubygems releases. I've yanked the binary gem from the appscript site for now and posted a request for advice on gembuilder to ruby-talk. If the OP has Dev Tools installed or is willing/able to install it, they could try clearing out any old appscript installations (sudo gem uninstall rb-appscript) and then installing the source-based gem (sudo gem install rb-appscript). If not, let me know and I'll make up a .pkg installer to tide them over in the meantime. Apologies for the hassle (it's frustrating for me too). has -- http://appscript.sourceforge.net http://rb-appscript.rubyforge.org