GithubHelp home page GithubHelp logo

Comments (13)

gabriel403 avatar gabriel403 commented on July 21, 2024

I'm getting this as well, any ideas?

from heroku-buildpack-toolbelt.

gregburek avatar gregburek commented on July 21, 2024

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.

kbaum avatar kbaum commented on July 21, 2024

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.

gregburek avatar gregburek commented on July 21, 2024

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.

kbaum avatar kbaum commented on July 21, 2024

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.

kbaum avatar kbaum commented on July 21, 2024

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.

hundredwatt avatar hundredwatt commented on July 21, 2024

@kbaum what worked for you? I think a comment is missing

from heroku-buildpack-toolbelt.

kbaum avatar kbaum commented on July 21, 2024

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.

hundredwatt avatar hundredwatt commented on July 21, 2024

@kbaum Where did you put that?

from heroku-buildpack-toolbelt.

kbaum avatar kbaum commented on July 21, 2024

I ran that command before my call to the heroku cli.

from heroku-buildpack-toolbelt.

hundredwatt avatar hundredwatt commented on July 21, 2024

@kbaum got it to work, thanks!

from heroku-buildpack-toolbelt.

thanhnguyen9 avatar thanhnguyen9 commented on July 21, 2024

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:inrequire'
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:inload'
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:ineach'
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:inrun'
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:inblock 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.

gregburek avatar gregburek commented on July 21, 2024

@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 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.