This project is archived and is in readonly mode.
[resolved] HELP! weird Bundler and/or Rails 3 beta 3 error
Reported by ravinggenius | April 16th, 2010 @ 02:21 PM
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?
Comments and changes to this ticket
-
Andre Arko April 16th, 2010 @ 04:10 PM
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.
-
ravinggenius April 16th, 2010 @ 04:35 PM
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.
-
ravinggenius April 19th, 2010 @ 04:43 PM
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. -
ravinggenius April 19th, 2010 @ 04:45 PM
- 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
-
Ryan Bigg April 26th, 2010 @ 09:24 AM
- State changed from new to resolved
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>