Git Product home page Git Product logo

Comments (7)

nolanbrown avatar nolanbrown commented on June 26, 2024

The openssl gem is required and it appears it isn't installed on your machine. Try installing openssl and compile ruby with openssl support, which is pretty easy using RVM.

from dropcam.

queuebit avatar queuebit commented on June 26, 2024

I was able to get it working using https://rvm.io/packages/openssl/.

Thanks.

Now to setup a cron job to turn ON and OFF the dropcam to save from uploading video of an empty room.

from dropcam.

stevenhaddox avatar stevenhaddox commented on June 26, 2024

Since this topic is still open I'll post here as I'm getting the same error with Ruby 2.0.0-p247:

$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.5.0]
$ ./dropcam.rb
/Users/steven/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/dropcam-0.0.4/lib/dropcam/base.rb:138:in `_dropcam_http': uninitialized constant Dropcam::Base::OpenSSL (NameError)
    from /Users/steven/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/dropcam-0.0.4/lib/dropcam/base.rb:69:in `post'
    from /Users/steven/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/dropcam-0.0.4/lib/dropcam/session.rb:14:in `authenticate'
    from /Users/steven/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/dropcam-0.0.4/lib/dropcam.rb:11:in `initialize'
    from ./dropcam.rb:6:in `new'
    from ./dropcam.rb:6:in `<main>'

However, OpenSSL itself seems to be working with Ruby just fine:

$ irb
> require 'openssl'
=> true
> key = OpenSSL::PKey::RSA.new 2048
=> #<OpenSSL::PKey::RSA:0x007fd0b137ae68>

Any other ideas what could be triggering this error?

from dropcam.

stevenhaddox avatar stevenhaddox commented on June 26, 2024

By the way, this seems to be working fine with Ruby 1.9.3-p448. It's only 2.x that seems to be having issues.

from dropcam.

nolanbrown avatar nolanbrown commented on June 26, 2024

I'll take a look and see. The library was only tested with 1.9.3 and there may be some landmines with adding support for 2.x.

from dropcam.

stevenhaddox avatar stevenhaddox commented on June 26, 2024

@nolanbrown understandable, I wouldn't sweat it too much. It's easy to set RBENV_VERSION as an ENV variable before running the script ;)

from dropcam.

radekw avatar radekw commented on June 26, 2024

This fixed it for me:
#8

from dropcam.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.