I had downloaded and installed heroku-toolbelt for my Window PC.
I wanted an application to be deployed to heroku ,
but My login fails
Please help me to solve this problem
The error messages are written below.
C:\Users\shree1>heroku login
DL is deprecated, please use Fiddle
Enter your Heroku credentials.
Email: xxxx@xxx.com
Password (typing will be hidden): C:/Ruby200-x64/lib/ruby/2.0.0/Win32API.rb
n `initialize': No such file or directory (LoadError)
from C:/Ruby200-x64/lib/ruby/2.0.0/Win32API.rb:14:in `dlopen'
from C:/Ruby200-x64/lib/ruby/2.0.0/Win32API.rb:14:in `initialize'
from C:/Users/shree1/.heroku/client/lib/heroku/auth.rb:236:in `new'
from C:/Users/shree1/.heroku/client/lib/heroku/auth.rb:236:in `ask_
assword_on_windows'
from C:/Users/shree1/.heroku/client/lib/heroku/auth.rb:211:in `ask_
redentials'
from C:/Users/shree1/.heroku/client/lib/heroku/auth.rb:262:in `ask_
nd_save_credentials'
from C:/Users/shree1/.heroku/client/lib/heroku/auth.rb:106:in `get_
ntials'
from C:/Users/shree1/.heroku/client/lib/heroku/auth.rb:41:in `login
from C:/Users/shree1/.heroku/client/lib/heroku/command/auth.rb:31:i
gin'
from C:/Users/shree1/.heroku/client/lib/heroku/command.rb:221:in `r
from C:/Users/shree1/.heroku/client/lib/heroku/cli.rb:39:in `start'
from C:/Program Files (x86)/Heroku/bin/heroku:29:in `<main>'
This is the error messege which is being displayed.
I'm muddling my way through sorting out the problem myself, but it seems to be a conflict between the ruby version included in the toolbelt (1.9.3) and the ruby version you're using. In my case I switched ruby versions to 1.9.3 and the toolbelt worked. It didn't matter that my app was running a more recent version of ruby.
I was having the same problem when using "heroku login" command from outside the install dir, because it used my Ruby 2.1 installation as explained by @kdmcclin.
But if you go first to install dir and then "bin", the command works fine :
But, we have to run the command from our project dir. So what I did is changing the PATH system variable in order to have Heroku/bin path before Ruby2.1.
Old PATH :
New PATH :
And now it's working :