Comments (13)
I'm getting this as well, any ideas?
from heroku-buildpack-toolbelt.
As far as I know, the toolbelt install should self sufficient and not be reaching into your rubygems dirs. What is your PATH var in the dyno?
from heroku-buildpack-toolbelt.
Just tried again. See PATH below:
~ $ ./vendor/heroku-toolbelt/bin/heroku -v
/app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- netrc (LoadError)
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /app/vendor/heroku-toolbelt/lib/heroku/auth.rb:6:in `<top (required)>'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /app/vendor/heroku-toolbelt/lib/heroku/client.rb:4:in `<top (required)>'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /app/vendor/heroku-toolbelt/lib/heroku.rb:1:in `<top (required)>'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /app/vendor/heroku-toolbelt/lib/heroku/cli.rb:4:in `<top (required)>'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from ./vendor/heroku-toolbelt/bin/heroku:22:in `<main>'
~ $ echo $PATH
/app/bin:/app/vendor/bundle/bin:/app/vendor/bundle/ruby/2.0.0/bin:bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin
from heroku-buildpack-toolbelt.
I think your path is way too inclusive so naming and path conflicts are leading to not met deps.
Try:
~ $ env PATH='/app/bin' ./vendor/heroku-toolbelt/bin/heroku apps
Also, netrc is a terrible thing to try and fake, so I am moving to only using HEROKI_API_KEY env var. Sneak peek is here: https://github.com/gregburek/heroku-buildpack-toolbelt/tree/no-netrc
from heroku-buildpack-toolbelt.
Same thing:
~ $ env PATH='/app/bin' ./vendor/heroku-toolbelt/bin/heroku apps
/app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- netrc (LoadError)
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /app/vendor/heroku-toolbelt/lib/heroku/auth.rb:6:in `<top (required)>'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /app/vendor/heroku-toolbelt/lib/heroku/client.rb:4:in `<top (required)>'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /app/vendor/heroku-toolbelt/lib/heroku.rb:1:in `<top (required)>'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /app/vendor/heroku-toolbelt/lib/heroku/cli.rb:4:in `<top (required)>'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from ./vendor/heroku-toolbelt/bin/heroku:22:in `<main>'
from heroku-buildpack-toolbelt.
This worked for me!—
Sent from Mailbox for iPhone
On Mon, Mar 31, 2014 at 5:58 AM, barrywoolgar [email protected]
wrote:
I'm having the same problem with another heroku plugin, try prepending this to your deploy script:
gem install netrc && gem install heroku-api
Reply to this email directly or view it on GitHub:
#5 (comment)
from heroku-buildpack-toolbelt.
@kbaum what worked for you? I think a comment is missing
from heroku-buildpack-toolbelt.
Sorry, someone replied to my question above and i am not quite sure why it's not appearing in this issue. I did the following:
gem install netrc && gem install heroku-api
from heroku-buildpack-toolbelt.
@kbaum Where did you put that?
from heroku-buildpack-toolbelt.
I ran that command before my call to the heroku cli.
from heroku-buildpack-toolbelt.
@kbaum got it to work, thanks!
from heroku-buildpack-toolbelt.
When i run {rake}. This is what i got. Would somebody help me? Thanks
(in /Users/thanhnguyen/Downloads/learn_ruby-master)
/Users/thanhnguyen/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require': /Users/thanhnguyen/Downloads/learn_ruby-master/00_hello/hello.rb:7: syntax error, unexpected keyword_end (SyntaxError) from /Users/thanhnguyen/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
require'
from /Users/thanhnguyen/Downloads/learn_ruby-master/00_hello/hello_spec.rb:116:in <top (required)>' from /Users/thanhnguyen/.rvm/gems/ruby-2.1.1/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in
load'
from /Users/thanhnguyen/.rvm/gems/ruby-2.1.1/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in block in load_spec_files' from /Users/thanhnguyen/.rvm/gems/ruby-2.1.1/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in
each'
from /Users/thanhnguyen/.rvm/gems/ruby-2.1.1/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in load_spec_files' from /Users/thanhnguyen/.rvm/gems/ruby-2.1.1/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:22:in
run'
from /Users/thanhnguyen/.rvm/gems/ruby-2.1.1/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:80:in run' from /Users/thanhnguyen/.rvm/gems/ruby-2.1.1/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:17:in
block in autorun'
/Users/thanhnguyen/.rvm/rubies/ruby-2.1.1/bin/ruby -S rspec /Users/thanhnguyen/Downloads/learn_ruby-master/00_hello/hello_spec.rb -I/Users/thanhnguyen/Downloads/learn_ruby-master/00_hello -I/Users/thanhnguyen/Downloads/learn_ruby-master/00_hello/solution -f documentation -r ./rspec_config failed
from heroku-buildpack-toolbelt.
@thanh8604 This is not the place for general ruby help. I suggest trying #ruby
on IRC or the resources listed on http://testfirst.org/about#jointheconversation
Also, you have an extra end
in hello.rb
, as the stack trace indicates.
from heroku-buildpack-toolbelt.
Related Issues (8)
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 heroku-buildpack-toolbelt.