require 'roo' giving load error after installing Ruby using new rubyInstaller for windows

486 views
Skip to first unread message

Pals

unread,
Dec 16, 2009, 6:55:59 AM12/16/09
to ruby-roo
Hi All,
I have installed ruby 1.8.6-26 using the new Rubyinstaller and Dev kit
on windows Vista.
I have installed watir 1.6.5 after that.
I did gem install roo and the version that got installed was 1.9.1 .
I am trying to run the same example which was able to run in the
earlier environment (using oneclick installer Ruby1.8.6-26 ) which
also had roo 1.9.1.
I am getting the foll error at require 'roo' line.

C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- hpricot (LoadError)
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from C:/Ruby/lib/ruby/gems/1.8/gems/gimite-google-spreadsheet-
ruby-0.0.6/lib/google_spreadsheet.rb:9
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from C:/Ruby/lib/ruby/gems/1.8/gems/roo-1.9.1/lib/roo/google.rb:2
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from C:/Ruby/lib/ruby/gems/1.8/gems/roo-1.9.1/lib/roo.rb:71
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`require'
from rooexample.rb:3

The only change i have done is in Installation of Ruby. I have used
rubyinstaller and devkit instead of ruby oneclick installer for
windows.

Anyideas on this?

Regards,
Pallavi

Thomas Preymesser

unread,
Dec 16, 2009, 9:42:42 AM12/16/09
to ruby...@googlegroups.com
Hi,

2009/12/16 Pals <pals....@gmail.com>

Hi All,
I have installed ruby 1.8.6-26 using the new Rubyinstaller and Dev kit
on windows Vista.
I have installed watir 1.6.5 after that.
I did gem install roo and the version that got installed was 1.9.1 .
I am trying to run the same example which was able to run in the
earlier environment (using oneclick installer Ruby1.8.6-26 ) which
also had roo 1.9.1.
I am getting the foll error at require 'roo'  line.

C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': no such file to load -- hpricot (LoadError)

seems that the hpricot gem is missing. Try
  sudo gem install hpricot

-Thomas

pallavi shashidhar

unread,
Dec 17, 2009, 12:17:24 AM12/17/09
to ruby...@googlegroups.com
Hi,
It is working fine when i install hpricot. But i get nokogiri (1.4.1) installed with Ruby. Isnt that sufficient? Isn't nokogiri is a replacement for Hpricot? All i know is that both are a type of XML and HTML parsers.
and when i do "gem dependency roo" it displays  the foll:

spreadsheet (> 0.6.4, runtime)
nokogiri (>= 0.0.1, runtime)
builder (>= 2.1.2, runtime)
gimite-google-spreadsheet-ruby (>= 0.0.5, runtime)
febeling-rubyzip (>= 0.9.2, runtime)
bones (>= 2.5.1, development)

and there is no mention of Hpricot. Am curious to know why is that.

Regards,
Pallavi.

--

You received this message because you are subscribed to the Google Groups "ruby-roo" group.
To post to this group, send email to ruby...@googlegroups.com.
To unsubscribe from this group, send email to ruby-roo+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ruby-roo?hl=en.

Thomas Preymesser

unread,
Dec 17, 2009, 3:40:15 AM12/17/09
to ruby...@googlegroups.com
Hello,

2009/12/17 pallavi shashidhar <pals....@gmail.com>

Hi,
It is working fine when i install hpricot. But i get nokogiri (1.4.1) installed with Ruby. Isnt that sufficient? Isn't nokogiri is a replacement for Hpricot? All i know is that both are a type of XML and HTML parsers.
and when i do "gem dependency roo" it displays  the foll:

spreadsheet (> 0.6.4, runtime)
nokogiri (>= 0.0.1, runtime)
builder (>= 2.1.2, runtime)
gimite-google-spreadsheet-ruby (>= 0.0.5, runtime)
febeling-rubyzip (>= 0.9.2, runtime)
bones (>= 2.5.1, development)

hpricot is not a direct dependency of roo therefore it will not be listed with this command. The gimite-google-spreadsheet gem has this dependency.

When you type
 
$ gem dep gimite-google-spreadsheet
Gem gimite-google-spreadsheet-ruby-0.0.6
  hpricot (>= 0.3, development)

you will see the hpricot dependency. The gimite-google-spreadsheet should be responsible for installing also the hpricot gem. If this is not the case it is a "bug" of this gem and not of roo.

 -Thomas


--
Thomas Preymesser
tho...@gmail.com
http://thopre.googlepages.com/
http://thopre.wordpress.com/

Jonathan Swift  - "May you live every day of your life."
Reply all
Reply to author
Forward
0 new messages