I tried to completely uninstall (using gem uninstall <packagename>)
and re-install win32-* gems, windows-* gems and Watir.. I still have
the same problem. Here's my gem list :
*** LOCAL GEMS ***
activesupport (2.2.2)
builder (2.1.2)
commonwatir (1.6.2)
firewatir (1.6.2)
fxri (0.3.6)
fxruby (1.6.16)
hoe (1.8.3)
hpricot (0.6.164)
log4r (1.0.5)
ptools (1.1.6)
rake (0.8.3)
ruby-opengl (0.60.0)
rubyforge (1.0.2)
s4t-utils (1.0.4)
test-unit (2.0.2, 2.0.1)
user-choices (1.1.6)
watir (1.6.2)
win32-api (1.3.0)
win32-process (0.6.0)
windows-api (0.3.0)
windows-pr (1.0.1)
xml-simple (1.0.11)
and here's my ENV :
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.1
- RUBY VERSION: 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
- INSTALLATION DIRECTORY: C:/Ruby/lib/ruby/gems/1.8
- RUBY EXECUTABLE: C:/Ruby/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/Ruby/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mswin32-60
- GEM PATHS:
- C:/Ruby/lib/ruby/gems/1.8
- C:/Documents and Settings/benoit.MSHEADOFFICE/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org/
Thanks for your help!
Ben Lemire
On Feb 12, 1:58 am, Bret Pettichord <[email protected]> wrote:
> I think you need to do more than that. The problem seems to be that
> there bad versions of these gems out there, and that they were fixed
> without changing the version number. So the gem installer won't update
> your gem.
>
> The solution, therefore, would be uninstall these gems and then
> reinstall them.
>
> Bret
>
> Charley Baker wrote:
> > It seems there are some compatibility issues here with some of the
> > win32utils. Try updating your win32-api gem, win32-process and the
> > windows-pr gem as well. Same instructions that Aidy mentioned before
> > with those gems.
>
> > Charley Baker
> > blog:http://charleybakersblog.blogspot.com/
> > Lead Developer, Watir,http://wtr.rubyforge.org
> > QA Architect, Gap Inc Direct
>
> > On Thu, Feb 5, 2009 at 6:51 AM, aidy lewis <[email protected]
> > <mailto:[email protected]>> wrote:
>
> > This will work
>
> > require 'watir'
> > Watir::Browser.default = "ie"
> > �...@browser ||= Watir::Browser.new
>
> > Aidy
>
> > 2009/2/5 Jaz <[email protected]
> > <mailto:[email protected]>>:
>
> > > Hi!
>
> > > Thanks for answering so fast Aidy
> > > Unfortuneatly it still doesn't work =(
>
> > > (Going crazy soon...)
>
> > > /jasmin
>
> > > On Feb 5, 1:59 pm, aidy lewis <[email protected]
> > <mailto:[email protected]>> wrote:
> > >> gem list -r win*
>
> > >> gem update windows-api -y
>
> > >> Aidy
>
> > >> 2009/2/5 Jaz <[email protected]
> > <mailto:[email protected]>>:
>
> > >> > How do I do that?
>
> > >> > On Feb 5, 12:36 pm, aidy lewis <[email protected]
> > <mailto:[email protected]>> wrote:
> > >> >> At a guess try updating your windows api gem
>
> > >> >> Aidy
>
> > >> >> 2009/2/5 Jaz <[email protected]
> > <mailto:[email protected]>>:
>
> > >> >> > Hi!
>
> > >> >> > Recently installed ruby to use watir, and I get a strange
> > error when I
> > >> >> > execute the steps in "Watir in 5 minutes"
> > >> >> >http://wiki.openqa.org/display/WTR/Watir+in+5+Minutes
>
> > >> >> > These are the steps I follow:
>
> > >> >> > 1. require "watir"
>
> > >> >> > 2. ie = Watir::IE.new
>
> > >> >> > When I perform step 2 I get the following error:
>
> > >> >> > Win32::API::Error: Attempt to format message failed
> > >> >> > from
> > C:/Ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.0/lib/windows/
> > >> >> > api.rb:333 in 'initialize'
> > >> >> > from
> > C:/Ruby/lib/ruby/gems/1.8/gems/windows-api-0.3.0/lib/windows/
> > >> >> > api.rb:333 in 'new'
> > >> >> > .
> > >> >> > .
> > >> >> > .
> > >> >> > .. and the message continues.
> > >> >> > I can write the whole message down if necessary. It's
> > really long =(- Hide quoted text -
>
> > >> >> - Show quoted text -- Hide quoted text -
>
> > >> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---