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.

active_support is trying to load 'sqlite_adapter'.

#4409

I'm working on a rails3 + dm-rails app, and just now active_support is crashing when attempting to load 'sqlite_adapter'.

Environment information:

$ ruby -v
ruby 1.9.1p376 (2009-12-07 revision 26041) [x86_64-linux]
$ rails -v
Rails 3.0.0.beta3
$ gem list rails

*** LOCAL GEMS ***

rails (3.0.0.beta3)
$ bundle version
Bundler version 0.9.19
$ bundle check
The Gemfile's dependencies are satisfied

Steps to reproduce:

$ bundle install
Your bundle is complete! Use `bundle show gemname` to see where a bundled gem is installed.
$ rails console
/home/hal/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/dependencies.rb:209:in `require': no such file to load -- sqlite_adapter (LoadError)
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/dependencies.rb:209:in `block in require'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/dependencies.rb:195:in `block in load_dependency'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/dependencies.rb:523:in `new_constants_in'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/dependencies.rb:195:in `load_dependency'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/lib/active_support/dependencies.rb:209:in `require'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/dm-core-37b4bd22b9e3842977cf83d32baba459607e900a-master/lib/dm-core/adapters.rb:146:in `rescue in load_adapter'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/dm-core-37b4bd22b9e3842977cf83d32baba459607e900a-master/lib/dm-core/adapters.rb:144:in `load_adapter'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/dm-core-37b4bd22b9e3842977cf83d32baba459607e900a-master/lib/dm-core/adapters.rb:130:in `adapter_class'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/dm-core-37b4bd22b9e3842977cf83d32baba459607e900a-master/lib/dm-core/adapters.rb:13:in `new'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/dm-core-37b4bd22b9e3842977cf83d32baba459607e900a-master/lib/dm-core.rb:236:in `setup'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/dm-rails-6d789ab541218bf52f1038ecd3856026704f4c3b-master/lib/dm-rails/setup.rb:25:in `setup_with_instrumentation'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/dm-rails-6d789ab541218bf52f1038ecd3856026704f4c3b-master/lib/dm-rails/setup.rb:14:in `block in setup'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/dm-rails-6d789ab541218bf52f1038ecd3856026704f4c3b-master/lib/dm-rails/setup.rb:13:in `each'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/dm-rails-6d789ab541218bf52f1038ecd3856026704f4c3b-master/lib/dm-rails/setup.rb:13:in `setup'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/dm-rails-6d789ab541218bf52f1038ecd3856026704f4c3b-master/lib/dm-rails/railtie.rb:64:in `setup_data_mapper'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/dm-rails-6d789ab541218bf52f1038ecd3856026704f4c3b-master/lib/dm-rails/railtie.rb:112:in `block in <class:Railtie>'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/application/finisher.rb:40:in `call'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/application/finisher.rb:40:in `block (2 levels) in <module:Finisher>'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/application/finisher.rb:39:in `each'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/application/finisher.rb:39:in `block in <module:Finisher>'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/initializable.rb:25:in `instance_exec'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/initializable.rb:25:in `run'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/initializable.rb:54:in `each'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/initializable.rb:54:in `run_initializers'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/application.rb:109:in `initialize!'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/application.rb:81:in `method_missing'
    from /home/hal/contracts/project/www.project.com/config/environment.rb:5:in `<top (required)>'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/commands.rb:33:in `require'
    from /home/hal/.bundle/ruby/1.9.1/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/commands.rb:33:in `<top (required)>'
    from script/rails:10:in `require'
    from script/rails:10:in `<main>'

Partially redacted Gemfile:

# Edit this Gemfile to bundle your application's dependencies.
source 'http://rubygems.org'

gem 'bundler', '0.9.19'

gem 'bcrypt-ruby', '2.1.2', :require => 'bcrypt'

git('git://github.com/rails/rails.git') do
  gem 'activesupport',  '~> 3.0.0.beta3', :require => 'active_support'
  gem 'actionpack',     '~> 3.0.0.beta3', :require => 'action_pack'
  gem 'railties',       '~> 3.0.0.beta3', :require => 'rails'
  gem 'actionmailer',   '~> 3.0.0.beta3', :require => 'action_mailer'
end

datamapper = 'git://github.com/datamapper'

gem 'dm-rails',           '~> 0.10.2', :git => "#{datamapper}/dm-rails.git"

# DataMapper adapters
gem 'dm-do-adapter',      '~> 0.10.3', :git => "#{datamapper}/dm-do-adapter.git"
gem 'dm-sqlite-adapter',  '~> 0.10.3', :git => "#{datamapper}/dm-sqlite-adapter.git"
gem 'dm-mysql-adapter',   '~> 0.10.3', :git => "#{datamapper}/dm-mysql-adapter.git"

# DataMapper dependencies
gem 'dm-core',            '~> 0.10.3', :git => "#{datamapper}/dm-core.git"
gem 'dm-types',           '~> 0.10.3', :git => "#{datamapper}/dm-types.git"
gem 'dm-validations',     '~> 0.10.3', :git => "#{datamapper}/dm-validations.git"
gem 'dm-constraints',     '~> 0.10.3', :git => "#{datamapper}/dm-constraints.git"
gem 'dm-aggregates',      '~> 0.10.3', :git => "#{datamapper}/dm-aggregates.git"
gem 'dm-timestamps',      '~> 0.10.3', :git => "#{datamapper}/dm-timestamps.git"
gem 'dm-migrations',      '~> 0.10.3', :git => "#{datamapper}/dm-migrations.git"
gem 'dm-observer',        '~> 0.10.3', :git => "#{datamapper}/dm-observer.git"

Reported by Postmodern · April 16th, 2010 @ 12:20 AM

State: invalid
Milestone: none
Assigned to: Ryan Bigg Ryan Bigg
Importance: Low

Activity

  1. Postmodern
    Postmodern

    Note, dm-core/dm-rails have been working with Rails edge for about a month now. Although, conflicts between the two libraries are not unheard of.

    April 16th, 2010 @ 12:24 AM

  2. Ryan Bigg
    Ryan Bigg
    • State changed from new to needs-more-info

    Is this still broken on the latest edge?

    April 19th, 2010 @ 10:10 PM

  3. Postmodern
    Postmodern

    This appears to be the result of a massive failure in libsqlite3.so (apparently got stripped of all symbols) and a platform-gem-separation bug in Bundler. You can go ahead and close this.

    April 20th, 2010 @ 12:12 AM

  4. Ryan Bigg
    Ryan Bigg
    • State changed from needs-more-info to invalid

    Thank you for the update on this, closing as recommended.

    April 20th, 2010 @ 12:18 AM