Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[resolved] HELP! weird Bundler and/or Rails 3 beta 3 error

#4416

There is a little back-story, so please bear with me...

I have a Rails 3 application that used to be running fine. (Source is linked below.) It started as a Rails 3beta1 app. When beta2 was released, I upgraded without incident. I don't remember if I ran bundle install after upgrading or not but I certainly ran bundle check. I also upgraded to beta3 without any issues. So far no problems.

Tonight I was experimenting with different servers, since WEBrick is so slow. rails s, rackup and thin start all worked fine. Then I uncommented gem 'unicorn'. My system gems don't include unicorn, so I ran bundle install, followed by bundle check. Everything seemed okay, so I tried rails s. Then rackup. Then thin start. Then unicorn and unicorn_rails. Everything gave me the same error:

/usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0.beta3/lib/active_support/dependencies.rb:209:in `require': no such file to load -- sqlite_adapter (LoadError)

... followed by a long stack trace. I commented gem 'unicorn' back out in my Gemfile, and I still get the error. git diff and git status both confirm that nothing in my project is different from when it would run. How does bundle install break things this badly? The error says sqlite_adapter could not be found. I tried to install it, but it doesn't seem to exist.

http://github.com/ravinggenius/scratch_pad

Does anyone have a solution for this?

Reported by ravinggenius · April 16th, 2010 @ 02:21 PM

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Andre Arko
    Andre Arko

    It's broken because your gem versions are out of sync. The DataMapper that you are using from Git expects to find the file 'sqlite_adapter', and you only have a file named 'sqlite3_adapter'. I think the gem that your DM is expecting to find is here: http://github.com/datamapper/dm-sqlite-adapter.

    April 16th, 2010 @ 04:10 PM

  2. ravinggenius
    ravinggenius

    I tried adding "gem 'dm-sqlite-adapter', '~> 0.10.3', :git => 'git://github.com/datamapper/dm-sqlite-adapter.git', :require => 'sqlite_adapter'" to my Gemfile, but then bundle install gives me this error:

    No compatible versions could be found for required dependencies:
        dm-do-adapter (~> 0.10.3, runtime) not found in any of the sources
          required by dm-sqlite-adapter (~> 0.10.3, runtime)
        All possible versions of origin requirements conflict.
    

    When I require DataMapper 0.10.2, I get:

    No compatible versions could be found for required dependencies:
        dm-do-adapter (~> 0.10.3, runtime) not found in any of the sources
          required by dm-sqlite-adapter (~> 0.10.2, runtime)
        All possible versions of origin requirements conflict.
    

    April 16th, 2010 @ 04:35 PM

  3. ravinggenius
    ravinggenius

    I manually uninstalled most of my system gems, then reran bundle install. Everything works now, so I'm going to close this ticket. Thanks everybody for your help.

    April 19th, 2010 @ 04:43 PM

  4. ravinggenius
    ravinggenius
    • Title changed from HELP! weird Bundler and/or Rails 3 beta 3 error to [resolved] HELP! weird Bundler and/or Rails 3 beta 3 error

    April 19th, 2010 @ 04:45 PM

  5. Ryan Bigg
    Ryan Bigg
    • State changed from new to resolved

    April 26th, 2010 @ 09:24 AM

  6. bingbing