From: Peter Szinek Date: 2007-11-02T17:08:58+09:00 Subject: Re: Install hpricot on Leopard Hi, > MacBookPro:spider colin$ which ruby > /usr/local/bin/ruby > MacBookPro:spider colin$ ruby -v > ruby 1.8.4 (2005-12-24) [i686-darwin8.10.1] > > Same error still: > MacBookPro:spider colin$ ruby scrape.rb > /usr/local/lib/ruby/gems/1.8/gems/mechanize-0.6.10/lib/mechanize/ > inspect.rb:44: undefined method `pretty_inspect' for class > `WWW::Mechanize::Page' (NameError) > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 27:in `require' > from /usr/local/lib/ruby/gems/1.8/gems/mechanize-0.6.10/lib/ > mechanize.rb:42 > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: > 32:in `require' > from scrape.rb:14 I am not sure this is leopard-related. I have the same bug submitted to the scRUBYt! lighthouse: http://scrubyt.lighthouseapp.com/projects/2912/tickets/17-undefined-method-pretty_inspect-for-class-www-mechanize-page and AFAIK this happens both on win32 and linux (ubuntu, at least). So I believe this is a mechanize bug, introduced in 0.6.10. I have tried to contact Aaron Patterson but got no response. I guess we should file a bug. Cheers, Peter ___ http://www.rubyrailways.com http://scrubyt.org