Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load bundler: Could not locate Gemfile or .bundle/ directory #45

Closed
yosriady opened this issue Aug 5, 2015 · 4 comments
Closed

Comments

@yosriady
Copy link

yosriady commented Aug 5, 2015

I tried installing iruby using RVM into my global gemset. Now, I'm getting the following error:

$ iruby
Could not load bundler: Could not locate Gemfile or .bundle/ directory
W, [2015-08-06T05:22:30.899010 #26154]  WARN -- : Could not load bundler: Could not locate Gemfile or .bundle/ directory
/Users/yosriady/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.8.4/lib/bundler.rb:198:in `rescue in root'
/Users/yosriady/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.8.4/lib/bundler.rb:194:in `root'
/Users/yosriady/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.8.4/lib/bundler.rb:101:in `bundle_path'
/Users/yosriady/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.8.4/lib/bundler.rb:420:in `configure_gem_home_and_path'
/Users/yosriady/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.8.4/lib/bundler.rb:92:in `configure'
/Users/yosriady/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.8.4/lib/bundler.rb:153:in `definition'
/Users/yosriady/.rvm/gems/ruby-2.2.0@global/gems/iruby-0.2.7/lib/iruby/command.rb:109:in `check_bundler'
/Users/yosriady/.rvm/gems/ruby-2.2.0@global/gems/iruby-0.2.7/lib/iruby/command.rb:67:in `run_kernel'
/Users/yosriady/.rvm/gems/ruby-2.2.0@global/gems/iruby-0.2.7/lib/iruby/command.rb:34:in `run'
/Users/yosriady/.rvm/gems/ruby-2.2.0@global/gems/iruby-0.2.7/bin/iruby:5:in `<top (required)>'
/Users/yosriady/.rvm/rubies/ruby-2.2.0/bin/iruby:23:in `load'
/Users/yosriady/.rvm/rubies/ruby-2.2.0/bin/iruby:23:in `<main>'
/Users/yosriady/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `eval'
/Users/yosriady/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `<main>'

Any ideas? I also tried requiring gnuplot in my Ruby notebooks, and it fails.

LoadError: cannot load such file -- gnuplot
@v0dro
Copy link
Member

v0dro commented Aug 6, 2015

If you're using OSX this might be related to #40

@minad
Copy link
Contributor

minad commented Aug 7, 2015

This is just a warning, not an error. iruby should work normally afterwards.

@minad minad closed this as completed Aug 7, 2015
@Ryuutei
Copy link

Ryuutei commented Oct 6, 2015

I have the same warning. iruby installed perfectly, dependencies too.
Although the console loads without that warning when iruby or jupyter-console --kernel=ruby are launched in the jupyter kernel folder or the iruby source folder.

Is there a way to set iruby to tell bundler to check in those folders instead of the folder where the command is executed ?

Thanks.

@brodock
Copy link

brodock commented Nov 14, 2018

@Ryuutei it's possible, when using bundler pass: --gemfile=path/to/Gemfile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants