Comments (11)
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.
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.
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.
Hi @drwhirst , Thanks for opening the issue, can you please confirm which version of Ruby SDK are you using?
from ruby-sdk.
ibm_watson-0.20.1
from ruby-sdk.
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.
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.
I wonder if a solution has been found for this load error issue
from ruby-sdk.
I am using ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-darwin17]. is the version acceptable?
from ruby-sdk.
@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.
talked with @mamoonraja and will we close this one for now.
from ruby-sdk.
Related Issues (18)
- Tone Analyzer: Invalid JSON input HOT 1
- Question about IAM authenticator token renewal HOT 1
- Issue with Ngrok and desactivating SSL
- Visual Recognition /classify classifier_ids should be array of strings, not string HOT 3
- Unnecessary deprecation warning for 'recognize_using_websocket' HOT 1
- IAMTokenManager leaks constants names HOT 3
- List the required dependencies along with their licenses HOT 2
- Disable Two or More Connection with Speech To Text Websocket (Real-Time) Recognition HOT 13
- Speaker labels unavailable HOT 4
- Cannot Delete Custom Words of Full-Size (Double Byte) Alphanumeric. HOT 5
- Has Occured TypeError in STT Real-Time Recognition. HOT 11
- v1 Goals HOT 5
- "language_customization_id" does not work HOT 2
- Authentication fails using ibm-credentials.env file HOT 2
- Unauthorized error for NaturalLanguageUnderstandingV1 HOT 4
- Speech to text not working with websockets HOT 2
- SpeechToTextV1 create_job Errno::EPIPE: Broken pipe HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-sdk.