
dm-core 1.0.0 breaks sinatra app.
Reported by Ian Alexander Wood | June 8th, 2010 @ 03:08 PM
Hi there. After updating to dm-core 1.0.0 Datamapper no longer recognises SQlite3!
Here's the error when trying to launch a simple SQlite3 based sinatra app:
/Users/i0n/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require': no such file to load -- sqlite_adapter
(LoadError)
from /Users/i0n/.rvm/rubies/ruby-1.8.7-p174/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /Users/i0n/.rvm/gems/ruby-1.8.7-p174/gems/dm-core-1.0.0/lib/dm-core/adapters.rb:165:in `load_adapter'
from /Users/i0n/.rvm/gems/ruby-1.8.7-p174/gems/dm-core-1.0.0/lib/dm-core/adapters.rb:133:in `adapter_class'
from /Users/i0n/.rvm/gems/ruby-1.8.7-p174/gems/dm-core-1.0.0/lib/dm-core/adapters.rb:13:in `new'
from /Users/i0n/.rvm/gems/ruby-1.8.7-p174/gems/dm-core-1.0.0/lib/dm-core.rb:257:in `setup'
from rambo.rb:8
Comments and changes to this ticket
-
Dan Kubb (dkubb) June 9th, 2010 @ 12:33 AM
- State changed from new to not-applicable
@Ian: You need to install the dm-sqlite-adapter, and possibly dm-migrations if you use auto-migrations at all.
See the release notes for more information on this:
http://groups.google.com/group/datamapper/browse_thread/thread/6e3d51520cb63d9c
-
Carmen July 5th, 2010 @ 12:19 PM
- Milestone order changed from 0 to 0
Hi
I was having the same problem that Ian had doing SQlite3 based sinatra app, and it passed when I installed sqlite_adapter but then I got (with dm-migrations installed)
NoMethodError: undefined method
auto_upgrade!' for DataMapper:Module
./adserver.rb:29 /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
gem_original_require' /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
require' /Library/Ruby/Gems/1.8/gems/shotgun-0.7/lib/shotgun/loader.rb:111:ininner_app' /Library/Ruby/Gems/1.8/gems/shotgun-0.7/lib/shotgun/loader.rb:99:in
assemble_app' /Library/Ruby/Gems/1.8/gems/shotgun-0.7/lib/shotgun/loader.rb:83:inproceed_as_child' /Library/Ruby/Gems/1.8/gems/shotgun-0.7/lib/shotgun/loader.rb:28:in
call!' /Library/Ruby/Gems/1.8/gems/shotgun-0.7/lib/shotgun/loader.rb:18:incall' /Library/Ruby/Gems/1.8/gems/shotgun-0.7/lib/shotgun/favicon.rb:12:in
call' /Library/Ruby/Gems/1.8/gems/shotgun-0.7/lib/shotgun/static.rb:14:incall' /Library/Ruby/Gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:77:in
call' /Library/Ruby/Gems/1.8/gems/rack-1.2.1/lib/rack/content_length.rb:13:incall' /Library/Ruby/Gems/1.8/gems/rack-1.2.1/lib/rack/chunked.rb:15:in
call' /Library/Ruby/Gems/1.8/gems/rack-1.2.1/lib/rack/handler/mongrel.rb:67:inprocess' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in
process_client' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:ineach' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in
process_client' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:inrun' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in
initialize' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:innew' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in
run' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:ininitialize' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in
new' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:inrun' /Library/Ruby/Gems/1.8/gems/rack-1.2.1/lib/rack/handler/mongrel.rb:38:in
run' /Library/Ruby/Gems/1.8/gems/shotgun-0.7/bin/shotgun:150 /usr/bin/shotgun:19:inload'
I'm using DataMapper 1.0. I am pretty new on this. I am doing an app testing to see if I can build a reporting app with DataMapper. Maybe, I'm doing something wrong but I thought it'd be helpful
Here is my gem list,
dm-aggregates (1.0.0)
dm-constraints (1.0.0)
dm-core (1.0.0)
dm-do-adapter (1.0.0)
dm-migrations (1.0.0)
dm-serializer (1.0.0)
dm-sqlite-adapter (1.0.0)
dm-timestamps (1.0.0)
dm-transactions (1.0.0)
dm-types (1.0.0)
dm-validations (1.0.0)
dnssd (1.3.1, 0.6.0)
do_sqlite3 (0.10.2)rack (1.2.1, 1.0.1)
rack-test (0.5.3)Thanks,
-
Martin Gamsjaeger (snusnu) July 8th, 2010 @ 05:00 PM
Carmen, do you explicitly
require 'dm-migrations'
? You need to do that (as opposed todm-sqlite-adapter
which gets required automatically) -
Carmen July 17th, 2010 @ 12:29 AM
- Assigned user set to Martin Gamsjaeger (snusnu)
No, I didn't ... that was my problem. Thanks a lot Martin. This is awesome!
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »