GithubHelp home page GithubHelp logo

Comments (11)

rafaltrojanowski avatar rafaltrojanowski commented on July 21, 2024 2

I can say that when I added your gem to Gemfile in that way:

gem 'ibm_watson'

it installed a version where authenticator was missing in the codebase, so that was the reason for the error from the title.

Not sure how many Rails Devs would use this gem but IMHO it would be good to add docs for installation with Rails, like:

gem 'ibm_watson', '~> 1.3'

Btw, thanks for a great gem!

from ruby-sdk.

mamoonraja avatar mamoonraja commented on July 21, 2024 1

I see an issue on rails repo, It looks like the fix is to move to 6.0.x stable version. Which version are you using @ajshemi ?

from ruby-sdk.

ajshemi avatar ajshemi commented on July 21, 2024 1

It worked. I think I was missing the right apikey.

ruby version
ruby -v
ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-darwin17]

my gemfile includes
ruby '2.6.1'
gem 'ibm_watson', '~> 1.3

from ruby-sdk.

mamoonraja avatar mamoonraja commented on July 21, 2024

Hi @drwhirst , Thanks for opening the issue, can you please confirm which version of Ruby SDK are you using?

from ruby-sdk.

drwhirst avatar drwhirst commented on July 21, 2024

ibm_watson-0.20.1

from ruby-sdk.

drwhirst avatar drwhirst commented on July 21, 2024

I resolved this issue by switching my ruby version from 2.6.2 to 2.6.0, as 2.6.2 isn't supported by the gem

from ruby-sdk.

rafaltrojanowski avatar rafaltrojanowski commented on July 21, 2024

Same issue with ruby 2.6.3p62. Thanks for sharing @drwhirst

In my case downgrade to 2.6.0 didn't help. I had to use the latest master version of this gem to be able to run it with Rails 👍

Finally, I made it work with ruby 2.6.3p62

Gemfile:

gem 'ibm_watson', git: 'https://github.com/watson-developer-cloud/ruby-sdk', branch: 'master'

However, there were some problems with 'require_relative` on 2.7.0 with Rails 6.0:

24: from bin/rails:3:in `<main>'
	23: from bin/rails:3:in `require_relative'
(...)
.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/bootsnap-1.4.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in `require': no implicit conversion of String into Integer (TypeError)

from ruby-sdk.

ajshemi avatar ajshemi commented on July 21, 2024

I wonder if a solution has been found for this load error issue

from ruby-sdk.

ajshemi avatar ajshemi commented on July 21, 2024

I am using ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin17]. is the version acceptable?

from ruby-sdk.

mamoonraja avatar mamoonraja commented on July 21, 2024

@ajshemi Glad, it worked :)

Thanks, @rafaltrojanowski, Interesting why rails is not adding the recent version. We will look into adding additional instructions for people seeing this issue in rails. One additional issue with adding a specific version in the readme is that semantic release has to update readme too. Anyways we will update the instructions soon :)

from ruby-sdk.

Mikemosca avatar Mikemosca commented on July 21, 2024

talked with @mamoonraja and will we close this one for now.

from ruby-sdk.

Related Issues (18)

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.