« Return to Thread: Ruby Hpricot

Re: Ruby Hpricot

by Erno Mononen :: Rate this Message:

Reply to Author | View in Thread

Hello,

Can you double check that you have the hpricot gem installed for the
JRuby 1.1.4 platform you use? Note that the latest hpricot version
doesn't work with JRuby, please see
http://kenai.com/projects/jruby/pages/Hpricot for more info.

Erno


aslambilal wrote:

> Hello
>
>
>
>
> Code:
> require 'rubygems'
>
> require 'hpricot'
>
> require 'open-uri'
>
>
>
> url = "http://api.comicvine.com/characters/?api_key=(MYAPI)&format=xml"
>
>
>
> doc = Hpricot( open( url ) )
>
>
>
> puts (doc/"number_of_page_results").inner_html
>
>
>
> puts "test"
>
>
>
>
>
> When i try to run the file using Ctrl + f6 for testing the file
>
> /usr/local/netbeans-6.5.1/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34:in `require': no such file to load -- hpricot (LoadError)
>
>
>
> Any ideas?
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: Ruby Hpricot