Open KamalPatel365 opened 4 years ago
Anyone any suggestion on this @kojix2
Well, there have been a lot of troubles reported about bundler in the past... A number of contributors have tried to solve these problems. However, even today, IRuby is not fully integrated with bundler. That's why I was hesitant to reply.
So I'm going to ask a few additional questions, even though I may not be able to solve this problem...
bundle install
command yet?payapi_client
your original gem? Perhaps it's some kind of API client you make to get data from the web service, and that hasn't been open-sourced yet?payapi_client
with bundler
in Jupyter
? I mean, is this problem specific to payapi_client
? Or you can not call all the other gem?payapi_client
with bundle exec irb -r payapi_clinet
? I mean, is this problem specific to IRuby and you can call payapi_client in irb console?jupyter lab
or jupyter notebook
or other consoles?@kojix2 Answer to your question
bundle install
' but it didn't resolve the error.payapi_client
' is original gem and its not opensource. It is local gem.require
'IRuby
'Jupyter Notebook
'.'IRuby'
not rails.$LOAD_PATH is a Ruby array of paths to look for files to ’require‘ in. Does your path show up in that array? If not, can you add it, and work around your issue?
Ok I will try this. Thanks @olleolleolle
It was not reproduced in the latest environment. IRuby 0.4.0 and Ruby 2.7.1
As @olleolleolle suggests, you should check p $LOAD_PATH
to see if bundler adds the load path correctly.
Ok @kojix2 I will do this
Hey @KamalPatel365, I couldn't tell if you've already tried this, but this seems to work for me for local gems with iRuby.
In Gemfile:
gem 'payapi_client', path: 'path/to/payapi_client'
In notebook:
# require all gems
Bundler.require
# or require individually
require "payapi_client"
### Below is the version of Ruby and RubyGem:
$ruby -v
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]$bundle -v
Bundler version 1.17.3$gem -v
3.0.3