Open icco opened 14 years ago
Aparrently this is supposed to be used with 1.9 not 1.8, which might be where my problem lies...
Working off of (essentially) the same code, I get (basically) the same error on a fresh install of ruby- and rubygems-1.8:
> ruby-1.8 bots.rb /opt/ruby1.8/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- mechanize (LoadError) from /opt/ruby1.8/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /opt/ruby1.8/lib/ruby/gems/1.8/gems/octopi-0.2.2/lib/octopi.rb:4 from /opt/ruby1.8/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' from /opt/ruby1.8/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' from ./erasmus/github.rb:4 from bots.rb:7:in `require' from bots.rb:7
So my guess is that octopi isn't 1.8 compatible.
It's neither. Did you install the mechanize gem?
Could you please try installing the latest from gemcutter too (which should automatically install mechanize too)
I just did sudo gem install octopi, if it's not one of the dependencies for the gem, then I didn't.
I just installed octopi and I'm getting the following error. Anyone know why?
/var/lib/gems/1.8/gems/octopi-0.2.2/lib/octopi/commit.rb:2: uninitialized constant Octopi::Base (NameError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
require' from /var/lib/gems/1.8/gems/octopi-0.2.2/lib/octopi.rb:15 from /var/lib/gems/1.8/gems/octopi-0.2.2/lib/octopi.rb:15:ineach' from /var/lib/gems/1.8/gems/octopi-0.2.2/lib/octopi.rb:15 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in
gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:inrequire' from ./erasmus/github.rb:4 from ./bots.rb:7:in
require' from ./bots.rb:7The code that is using this is at http://github.com/icco/erasmus/blob/master/lib/erasmus/github.rb