48

I get this error while running bundle install in a rails app,

I thought the latest version is 0.2.0...could anybody help me out on this?

bundle install
Fetching gem metadata from https://rubygems.org/..........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Could not find thread_safe-0.3.0 in any of the sources
nucka
  • 559
  • 5
  • 12

4 Answers4

39

I was experiencing the same problem.

The thread_safe gem version 0.3.0 has been yanked now from Ruby Gems: http://rubygems.org/gems/thread_safe/versions

So you might want to specify a different version in your Gemfile, or you can point the Gemfile directly to GitHub.

I solved the problem with this line in my Gemfile:

gem 'thread_safe', '0.2.0'
mat_jack1
  • 1,712
  • 1
  • 14
  • 15
  • 4
    thanks this solved the issue! the actual command was 'bundle update thread_safe' as I had my thread safe locked at 0.3.0 – nucka Mar 20 '14 at 07:12
  • Followed these steps and Gemfile.lock points to version `0.2.0` or earlier. Still get the same error when pushing to Heroku. – migu Mar 20 '14 at 22:57
15

As dreamnid said, "Look like they yank the 0.3.0 build a few hours ago to troubleshoot a build issue".

Try to run gem uninstall thread_safe (to remove yanked version) and later bundle update to install the correct versions.

19WAS85
  • 2,853
  • 1
  • 20
  • 19
8

Running:

bundle update

Fixed the issue for me, with the message: "Using thread_safe 0.2.0 (was 0.3.0)"

Joey
  • 343
  • 2
  • 10
4

I had the same problem. I took mat_jack1's advice, but I also ran "bundle update thread_safe". That resolved the issue for me.

user632657
  • 473
  • 3
  • 10