WinXP/sqlite Problem: do_sqlite3 (LoadError)

110 views
Skip to first unread message

Eric

unread,
Nov 24, 2008, 11:32:35 PM11/24/08
to merb
Hi, I'm trying to run Merb on WinXP and I get the following error:

E:\blog>merb
Loading init file from E:/blog/config/init.rb
Loading E:/blog/config/environments/development.rb
~ Connecting to database...
e:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require': no such file to load -- do_sqlite3 (LoadError)
from e:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
36:in `require'
from e:/ruby/lib/ruby/gems/1.8/gems/dm-core-0.9.7/lib/dm-core/
adapters/sqlite3_adapter.rb:2
from e:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
from e:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from e:/ruby/lib/ruby/gems/1.8/gems/dm-core-0.9.7/lib/dm-
core.rb:146:in `setup'
from e:/ruby/lib/ruby/gems/1.8/gems/merb_datamapper-1.0.2/lib/
merb/orms/data_mapper/connection.rb:44:in `setup_connections'
from e:/ruby/lib/ruby/gems/1.8/gems/merb_datamapper-1.0.2/lib/
merb/orms/data_mapper/connection.rb:27:in `connect'
from e:/ruby/lib/ruby/gems/1.8/gems/merb_datamapper-1.0.2/lib/
merb_datamapper.rb:17:in `run'
from e:/ruby/lib/ruby/gems/1.8/gems/merb-core-1.0.2/lib/merb-
core/bootloader.rb:99:in `run'
from e:/ruby/lib/ruby/gems/1.8/gems/merb-core-1.0.2/lib/merb-
core/server.rb:172:in `bootup'
from e:/ruby/lib/ruby/gems/1.8/gems/merb-core-1.0.2/lib/merb-
core/server.rb:42:in `start'
from e:/ruby/lib/ruby/gems/1.8/gems/merb-core-1.0.2/lib/merb-
core.rb:170:in `start'
from e:/ruby/lib/ruby/gems/1.8/gems/merb-core-1.0.2/bin/merb:
11
from e:/ruby/bin/merb:19:in `load'
from e:/ruby/bin/merb:19

I've got the following gems installed;
sqlite3-ruby (1.2.2)
do_sqlite3 (0.9.7)

As well as the rest of DataMapper 0.9.7, Merb 1.0.2, and the sqlite
DLL listed here: http://wiki.merbivore.com/faq/merb_and_windows

Any suggestions?

Thanks!

Hong Jiang

unread,
Nov 25, 2008, 1:36:03 AM11/25/08
to merb
I am having the same problem after upgrading to merb 1.0.2.

jimjimovich

unread,
Nov 25, 2008, 1:46:51 AM11/25/08
to merb
Same problem here on Ubuntu

Yehuda Katz

unread,
Nov 25, 2008, 1:49:30 AM11/25/08
to me...@googlegroups.com
Ubuntu? Can you provide more details?

-- Yehuda
--
Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325

Hong Jiang

unread,
Nov 25, 2008, 1:49:55 AM11/25/08
to merb
I just downgraded do_sqlite3 and data_objects to 0.9.7 (from 0.9.8).
Things seem to work now. I'm a new Ruby/Merb user, so I am not sure if
it's a problem with the new do_sqlite3 gem.

jimjimovich

unread,
Nov 25, 2008, 1:56:00 AM11/25/08
to merb
It seems that the versions are out of sync for dataobjects sqlite3
adapter and datamapper

dm-core (0.9.7, 0.9.6)
do_sqlite3 (0.9.8, 0.9.7, 0.9.6)

How can I specify do_sqlite3 0.9.7 or uninstall 0.9.8 ?

jimjimovich

unread,
Nov 25, 2008, 2:04:49 AM11/25/08
to merb
I uninstalled version 0.9.8 of data_objects and do_sqlite3 and now
things work on Ubuntu too.

sudo gem uninstall data_objects
sudo gem uninstall do_sqlite3

Hong Jiang

unread,
Nov 25, 2008, 2:11:13 AM11/25/08
to merb
On Nov 24, 10:49 pm, Hong Jiang <h...@hjiang.net> wrote:
> I just downgraded do_sqlite3 and data_objects to 0.9.7 (from 0.9.8).
> Things seem to work now. I'm a new Ruby/Merb user, so I am not sure if
> it's a problem with the new do_sqlite3 gem.

Sorry, forgot to add system info last time: Ubuntu 8.10, system ruby
(1.8.7). I installed rubygems from source (to the default directory),
and then installed merb, datamapper and related gems to the default
system gems directory. I didn't install any gems to the project
directory (haven't quite figured out bundling yet). It had been fine
when I was running Merb 1.0 and 1.0.1. I ran 'gem update --system &&
gem update' this evening to upgrade all gems. I saw an error similar
to the OP, but it was trying to load do_sqlite-0.9.8 instead of 0.9.7.
The message complains about not being able to load
do_sqlite-0.9.8.bundle. I looked at the directory, it has
do_sqlite-0.9.8.so.

I then downgraded do_sqlite3 and data_objects, and everything works
again.

Yehuda Katz

unread,
Nov 25, 2008, 2:12:31 AM11/25/08
to me...@googlegroups.com
Damn. I released 0.9.8 in an attempt to fix a problem that had occurred with 0.9.7, but it seems to have broken things. I'll delete the update.

-- Yehuda

Eric

unread,
Nov 25, 2008, 12:11:07 PM11/25/08
to merb
Hmmm. I was using 0.9.7 all along... Anyone here had success running
Merb 1.0.2 with sqlite Datamapper on WinXP?

I have sqlite installed (i.e., I can run it from the command line),
along with the gems:
sqlite3-ruby (1.2.2)
do_sqlite3 (0.9.7)

If I can get this worked out, I promise to document it to the Merb
wiki! ;-)

Thanks for your time.
-E

venetanji

unread,
Nov 25, 2008, 12:24:43 PM11/25/08
to merb
Is there any win32 build for do_sqlite3-0.9.7?

I installed version 0.9.6 but dm-core wants version 0.9.7. I get this
error

/site_ruby/1.8/rubygems.rb:636:in `report_activate_error': RubyGem
version error: do_sqlite3(0.9.6 not ~> 0.9.7) (Gem::LoadError)

I tried to downgrade dm to 0.9.5 (0.9.6 doesn't seem to work for gem,
why?) ad i get "cannot find dm-core" error

Any clue?

I wish I could install ubuntu at work...

Luis Lavena

unread,
Nov 25, 2008, 12:34:19 PM11/25/08
to me...@googlegroups.com
On Tue, Nov 25, 2008 at 3:24 PM, venetanji <giovan...@gmail.com> wrote:
>
> Is there any win32 build for do_sqlite3-0.9.7?
>
> I installed version 0.9.6 but dm-core wants version 0.9.7. I get this
> error
>
> /site_ruby/1.8/rubygems.rb:636:in `report_activate_error': RubyGem
> version error: do_sqlite3(0.9.6 not ~> 0.9.7) (Gem::LoadError)
>
> I tried to downgrade dm to 0.9.5 (0.9.6 doesn't seem to work for gem,
> why?) ad i get "cannot find dm-core" error
>
> Any clue?

I'll like to comment on this topic.

Both 0.9.6 and 0.9.7 releases of DM where made due the need to "match"
Merb updates and it's fast RC cycle.

Due that, more than 15 gems that conform DM were released without
proper testing.

This is better described in this ticket of DM:

http://wm.lighthouseapp.com/projects/4819/tickets/660-require-sqlite3-fails-with-do_sqlite3-097

We could do a quick release and try to fix this mess, but we believe
it will only delay another series of problems.

I've been working on the simplification of the gem compilation process
so it doesn't require a Windows box to do the releases.

On this front I cannot go faster since daily job requires my attention.

> I wish I could install ubuntu at work...
>

Yet still 0.9.7 will not work for you, due the inclusion of the
windows binary inside the gem, something that shouldn't be in the
first place.

--
Luis Lavena
AREA 17
-
Human beings, who are almost unique in having the ability to learn from
the experience of others, are also remarkable for their apparent
disinclination to do so.
Douglas Adams

Eric

unread,
Nov 25, 2008, 2:20:41 PM11/25/08
to merb
No worries, Luis! As long as things are broken for others, I don't
mind them not working for me. :-) I was just beginning to feel like a
total n00b...

I agree that at this point it's more important to get it right than to
get it quick.

Regardless of present difficulties, I still want to send a big THANK
YOU to the whole Datamapper team. It's a really awesome project.

-E

On Nov 25, 12:34 pm, "Luis Lavena" <luislav...@gmail.com> wrote:
> On Tue, Nov 25, 2008 at 3:24 PM, venetanji <giovanni.l...@gmail.com> wrote:
>
> > Is there any win32 build for do_sqlite3-0.9.7?
>
> > I installed version 0.9.6 but dm-core wants version 0.9.7. I get this
> > error
>
> > /site_ruby/1.8/rubygems.rb:636:in `report_activate_error': RubyGem
> > version error: do_sqlite3(0.9.6 not ~> 0.9.7) (Gem::LoadError)
>
> > I tried to downgrade dm to 0.9.5 (0.9.6 doesn't seem to work for gem,
> > why?) ad i get "cannot find dm-core" error
>
> > Any clue?
>
> I'll like to comment on this topic.
>
> Both 0.9.6 and 0.9.7 releases of DM where made due the need to "match"
> Merb updates and it's fast RC cycle.
>
> Due that, more than 15 gems that conform DM were released without
> proper testing.
>
> This is better described in this ticket of DM:
>
> http://wm.lighthouseapp.com/projects/4819/tickets/660-require-sqlite3...

venetanji

unread,
Nov 25, 2008, 5:21:27 PM11/25/08
to merb


On Nov 25, 6:34 pm, "Luis Lavena" <luislav...@gmail.com> wrote:
> On Tue, Nov 25, 2008 at 3:24 PM, venetanji <giovanni.l...@gmail.com> wrote:
>
> > Is there any win32 build for do_sqlite3-0.9.7?
>
> > I installed version 0.9.6 but dm-core wants version 0.9.7. I get this
> > error
>
> > /site_ruby/1.8/rubygems.rb:636:in `report_activate_error': RubyGem
> > version error: do_sqlite3(0.9.6 not ~> 0.9.7) (Gem::LoadError)
>
> > I tried to downgrade dm to 0.9.5 (0.9.6 doesn't seem to work for gem,
> > why?) ad i get "cannot find dm-core" error
>
> > Any clue?
>
> I'll like to comment on this topic.
>
> Both 0.9.6 and 0.9.7 releases of DM where made due the need to "match"
> Merb updates and it's fast RC cycle.
>
> Due that, more than 15 gems that conform DM were released without
> proper testing.
>
> This is better described in this ticket of DM:
>
> http://wm.lighthouseapp.com/projects/4819/tickets/660-require-sqlite3...
>
> We could do a quick release and try to fix this mess, but we believe
> it will only delay another series of problems.

Don't worry, focus on what is most important.

> I've been working on the simplification of the gem compilation process
> so it doesn't require a Windows box to do the releases.
>
> On this front I cannot go faster since daily job requires my attention.
>
> > I wish I could install ubuntu at work...
>
> Yet still 0.9.7 will not work for you, due the inclusion of the
> windows binary inside the gem, something that shouldn't be in the
> first place.

0.9.7 actually works on my ubuntu. 0.9.8 doesn't due to the .bundle
issue.

Anyway, don't worry! Keep up the great work. I still have a lot of
thinking to do before i actually need to write the code. So I hope
that by the time I'm ready I'll just need to gem update. In the mean
time I'll try to help :)

Thanks

G

IndianGuru

unread,
Nov 25, 2008, 10:40:00 PM11/25/08
to merb
It does not work for me too, after upgrading to 1.0.3 from 1.0.1

venetanji

unread,
Nov 26, 2008, 4:32:59 AM11/26/08
to merb

> > Hmmm. I was using 0.9.7 all along...  Anyone here had success running
> > Merb 1.0.2 with sqlite Datamapper on WinXP?

1.0.3 works for me! I installed the 0.9.7 found in this google group
(http://merb.googlegroups.com/web/do_sqlite3-0.9.7-x86-mingw32.gem)

then:

gem uninstall data_objects -v 0.9.8

And there you go!

Lovely...

IndianGuru

unread,
Nov 26, 2008, 6:13:09 AM11/26/08
to merb
Thanks. This worked for me too.

Dan Kubb (dkubb)

unread,
Nov 27, 2008, 8:27:22 PM11/27/08
to merb
This issue should be resolved in DataObjects 0.9.9 which was just
released a moment ago: http://is.gd/9k4J

Dan
(dkubb)

Eric

unread,
Nov 27, 2008, 8:34:31 PM11/27/08
to merb
w00t!
Reply all
Reply to author
Forward
0 new messages