[noob] Mechanize problem

  • Thread starter Ramiro Diaz Trepat
  • Start date
R

Ramiro Diaz Trepat

Hello,
I can't run even the most trivial examples of Mechanize, neither on
Ubuntu nor in Leopard because I get the following error:

/mechanize.rb:4: uninitialized constant WWW (NameError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from google.rb:2

I have installed mechanize with all its dependencies.
Can anybody give me a hint about what's wrong with my installation or
whatever am I doing wrong?
Thanks


r.
 
R

Ryan Davis

I can't run even the most trivial examples of Mechanize, neither on
Ubuntu nor in Leopard because I get the following error:

./mechanize.rb:4: uninitialized constant WWW (NameError)

rename your script from mechanize.rb to something else. '.' is in your
path so the require 'mechanize' you (should) have does nothing.

Bites us all now and then.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,600
Members
45,180
Latest member
CryptoTax Software
Top