Could not find byebug-3.5.1 in any of the sources

azangru

I am making a rather simple Rails app with Rails 4.1.6. Initially, I used Ruby version 1.9.3 (which is what I used for another project, and this Ruby version was set as default), but half way through the app I decided to change the Ruby version to the most recent 2.1.3 (rvm use 2.1.3). After the change of the Ruby version, I re-bundled.

For debugging purposes, I added pry, because debugger doesn't work with recent versions of Ruby:

Gemfile:

group :development, :test do
  gem 'pry-rails'
  gem 'pry-byebug'
end

Now every time I try to enter the rails console (rails c), I get the following error:

Could not find byebug-3.5.1 in any of the sources

Which is strange, because the list of gems printed out in the console after bundling contains the following:

Using byebug 3.5.1
<...>
Using pry 0.10.1
Using pry-byebug 2.0.0
Using pry-rails 0.3.2

and the command bundle show byebug

returns:

/home/<my home directory>/.rvm/gems/ruby-2.1.3/gems/byebug-3.5.1

I tried to bundle update and to delete the Gemfile.lock and re-bundle, but the error remains. Could you suggest how to solve it?

azangru

By a stroke of luck, I found an answer here.

Apparently, Rails 4.1 uses something called "springs". I have no idea what they are, but it seems they were interfering with the rails console. After I killed the springs, the console started working.

Looks like black magic. If anyone could explain what these springs are and why they were preventing rails console from starting, I would be much obliged.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Capistrano -- Could not find *** in any of the sources

From Dev

Could not find bcrypt-3.1.7 in any of the sources

From Dev

Could not find ffi-1.9.4 in any of the sources

From Dev

Could not find nokogiri-1.6.7.1 in any of the sources

From Dev

Ruby on Rails - Could not find xpath-2.0.0 in any of the sources

From Dev

Deploying rails - Could not find rake-11.1.2 in any of the sources

From Dev

Could not find gem mime-types-2.4.1 in any of the sources

From Dev

Capistrano: Could not find rake-$WRONG_VERSION in any of the sources

From Dev

Rubymine - Uncaught exception: Could not find rake-10.1.0 in any of the sources

From Dev

Rails: Could not find rake-10.1.1 in any of the sources

From Dev

Could not find thread_safe-0.3.0 in any of the sources

From Dev

Bundler::GemNotFound: Could not find rake-10.3.2 in any of the sources

From Dev

error Could not find i18n-0.7.0 in any of the sources

From Dev

Bundler::GemNotFound: Could not find net-ssh-2.7.0 in any of the sources

From Dev

Ruby on Rails - Could not find xpath-2.0.0 in any of the sources

From Dev

Rails not finding gem. "Could not find .. in any of the sources"

From Dev

Could not find rake-0.9.2 in any of the sources - Ubuntu 16.04

From Dev

Capistrano error: 'Could not find form_data-0.1.0 in any of the sources' while deploying

From Dev

rails s: Could not find rake-10.4.2 in any of the sources (Bundler::GemNotFound)

From Dev

Could not find sprockets-3.6.2 in any of the sources (Bundler::GemNotFound) when doing docker-compose up

From Dev

Server install stuck with error: Could not find pg-0.17.1 in any of the sources (Bundler::GemNotFound)

From Dev

How to solve "Could not find i18n-0.6.5 in any of the sources (Bundler::GemNotFound)" AWS deploy

From Dev

Rails rake updating issue - Could not find rake-10.4.2 in any of the sources

From Dev

Could not find rake-10.3.2 in any of the sources (Bundler::GemNotFound) on HTTPS push

From Dev

Rails new gives "Could not find proper version of railties (4.2.5.1) in any of the sources" error

From Dev

Error "Could not find rake-10.5.0 in any of the sources" on Phusion Passenger Docker image

From Dev

Not able to run the RoR project using rails s. Could not find pg-0.17.1 in any of the sources

From Dev

Rails 4.2 ActiveJob: Every adapter results in PhusionPassenger error: Could not find [gem] in any of the sources (Bundler::GemNotFound)

From Dev

error:: could not find rake-11.1.2 in any of the sources run `bundle install` to install missing gems

Related Related

  1. 1

    Capistrano -- Could not find *** in any of the sources

  2. 2

    Could not find bcrypt-3.1.7 in any of the sources

  3. 3

    Could not find ffi-1.9.4 in any of the sources

  4. 4

    Could not find nokogiri-1.6.7.1 in any of the sources

  5. 5

    Ruby on Rails - Could not find xpath-2.0.0 in any of the sources

  6. 6

    Deploying rails - Could not find rake-11.1.2 in any of the sources

  7. 7

    Could not find gem mime-types-2.4.1 in any of the sources

  8. 8

    Capistrano: Could not find rake-$WRONG_VERSION in any of the sources

  9. 9

    Rubymine - Uncaught exception: Could not find rake-10.1.0 in any of the sources

  10. 10

    Rails: Could not find rake-10.1.1 in any of the sources

  11. 11

    Could not find thread_safe-0.3.0 in any of the sources

  12. 12

    Bundler::GemNotFound: Could not find rake-10.3.2 in any of the sources

  13. 13

    error Could not find i18n-0.7.0 in any of the sources

  14. 14

    Bundler::GemNotFound: Could not find net-ssh-2.7.0 in any of the sources

  15. 15

    Ruby on Rails - Could not find xpath-2.0.0 in any of the sources

  16. 16

    Rails not finding gem. "Could not find .. in any of the sources"

  17. 17

    Could not find rake-0.9.2 in any of the sources - Ubuntu 16.04

  18. 18

    Capistrano error: 'Could not find form_data-0.1.0 in any of the sources' while deploying

  19. 19

    rails s: Could not find rake-10.4.2 in any of the sources (Bundler::GemNotFound)

  20. 20

    Could not find sprockets-3.6.2 in any of the sources (Bundler::GemNotFound) when doing docker-compose up

  21. 21

    Server install stuck with error: Could not find pg-0.17.1 in any of the sources (Bundler::GemNotFound)

  22. 22

    How to solve "Could not find i18n-0.6.5 in any of the sources (Bundler::GemNotFound)" AWS deploy

  23. 23

    Rails rake updating issue - Could not find rake-10.4.2 in any of the sources

  24. 24

    Could not find rake-10.3.2 in any of the sources (Bundler::GemNotFound) on HTTPS push

  25. 25

    Rails new gives "Could not find proper version of railties (4.2.5.1) in any of the sources" error

  26. 26

    Error "Could not find rake-10.5.0 in any of the sources" on Phusion Passenger Docker image

  27. 27

    Not able to run the RoR project using rails s. Could not find pg-0.17.1 in any of the sources

  28. 28

    Rails 4.2 ActiveJob: Every adapter results in PhusionPassenger error: Could not find [gem] in any of the sources (Bundler::GemNotFound)

  29. 29

    error:: could not find rake-11.1.2 in any of the sources run `bundle install` to install missing gems

HotTag

Archive