fcoury / octopi

A Ruby interface to GitHub API v2
http://hasmany.info/2009/4/18/ruby-interface-to-github-api
MIT License
216 stars 47 forks source link

Error listing issues for a project #40

Open icco opened 14 years ago

icco commented 14 years ago

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:inrequire' 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:in each' 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:ingem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in require' from ./erasmus/github.rb:4 from ./bots.rb:7:inrequire' from ./bots.rb:7

The code that is using this is at http://github.com/icco/erasmus/blob/master/lib/erasmus/github.rb

icco commented 14 years ago

Aparrently this is supposed to be used with 1.9 not 1.8, which might be where my problem lies...

xiongchiamiov commented 14 years ago

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.

radar commented 14 years ago

It's neither. Did you install the mechanize gem?

radar commented 14 years ago

Could you please try installing the latest from gemcutter too (which should automatically install mechanize too)

icco commented 14 years ago

I just did sudo gem install octopi, if it's not one of the dependencies for the gem, then I didn't.