nerdsfornature / changebrackets

This is a public repo for our project that uses angle brackets to monitor environmental change
MIT License
5 stars 4 forks source link

fireslurprb error #3

Open mmaki2321 opened 10 years ago

mmaki2321 commented 10 years ago

I apologize if this is not the right place to report this. We would like to start using changebrackets for the Springs Fire recovery in the Santa Monica Mountains.

I'm trying to run fireslurp.rb --help on Debian squeeze. Everything installed without error, ruby rubygems, and bundler. When I run ruby fireslurp.rb --help it I get:

/var/lib/gems/1.8/gems/faraday-0.8.9/lib/faraday/request/multipart.rb:4: warning: already initialized constant DEFAULT_BOUNDARY /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require': no such file to load -- instagram (LoadError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:inrequire' from fireslurp.rb:8

Thanks,

Mike

kueda commented 10 years ago

Hey Mike. Make sure you've run bundle install to get all the gems you need. I'd also advise running bundle exec ruby fireslurp.rb to ensure ruby is running with the gems in the bundle.

mmaki2321 commented 10 years ago

Thank you!

bundle exec ruby fireslurp.rb --help works as expected

Now when I run

bundle exec ruby fireslurp.rb --instagram-key=mykey springsfire01

I get:

Faraday: you may want to install system_timer for reliable timeouts /var/lib/gems/1.8/gems/faraday-0.8.9/lib/faraday/request/multipart.rb:4: warning: already initialized constant DEFAULT_BOUNDARY fireslurp.rb:187:in search': undefined methodyield' for

Proc:0xb726a8ec@fireslurp.rb:221 (NoMethodError)

from fireslurp.rb:186:in each' from fireslurp.rb:186:insearch' from fireslurp.rb:182:in send' from fireslurp.rb:182:inmethod_missing' from fireslurp.rb:221:in write_to_csv' from fireslurp.rb:220:ineach' from fireslurp.rb:220:in write_to_csv' from fireslurp.rb:218:ineach' from fireslurp.rb:218:in `write_to_csv' from fireslurp.rb:289

Thanks again,

Mike

On Thu, Aug 7, 2014 at 3:06 PM, Ken-ichi notifications@github.com wrote:

Hey Mike. Make sure you've run bundle install to get all the gems you need. I'd also advise running bundle exec ruby fireslurp.rb to ensure ruby is running with the gems in the bundle.

— Reply to this email directly or view it on GitHub https://github.com/nerdsfornature/changebrackets/issues/3#issuecomment-51538958 .

kueda commented 10 years ago

That doesn't sound right. What version of ruby are you using? I'm using 1.9.3 p484, but maybe something changed in Ruby 2+? I don't think it should have http://ruby-doc.org/core-2.0/Proc.html#method-i-yield. Can you try switching Ruby versions (assuming you're using RVM)?

mmaki2321 commented 10 years ago

ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

On Thu, Aug 7, 2014 at 4:36 PM, Ken-ichi notifications@github.com wrote:

That doesn't sound right. What version of ruby are you using? I'm using 1.9.3 p484, but maybe something changed in Ruby 2+? I don't think it should have http://ruby-doc.org/core-2.0/Proc.html#method-i-yield. Can you try switching Ruby versions (assuming you're using RVM)?

— Reply to this email directly or view it on GitHub https://github.com/nerdsfornature/changebrackets/issues/3#issuecomment-51546699 .

mmaki2321 commented 10 years ago

My mistake, wrong machine.

ruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux]

I'll update and let you know. Thanks!

Mike

On Thu, Aug 7, 2014 at 4:48 PM, Mike Maki mmaki2321@gmail.com wrote:

ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

On Thu, Aug 7, 2014 at 4:36 PM, Ken-ichi notifications@github.com wrote:

That doesn't sound right. What version of ruby are you using? I'm using 1.9.3 p484, but maybe something changed in Ruby 2+? I don't think it should have http://ruby-doc.org/core-2.0/Proc.html#method-i-yield. Can you try switching Ruby versions (assuming you're using RVM)?

— Reply to this email directly or view it on GitHub https://github.com/nerdsfornature/changebrackets/issues/3#issuecomment-51546699 .