1.0.7.1 data_objects error?

1 view
Skip to first unread message

needmorebikes

unread,
Jan 6, 2009, 10:47:14 AM1/6/09
to merb
Is anyone else getting this? I just upgraded to 1.0.7.1 from 1.0.7
and get this:

~ Running bootloaders...
Loading init file from /Users/Malcolm/Dev/MerbApps/MERB1.0Apps/
save_my_route/config/init.rb
~ Expanding RUBY_PATH...
~ loading gem 'merb-action-args' ...
~ loading gem 'merb-assets' ...
~ loading gem 'merb-cache' ...
~ loading gem 'merb-helpers' ...
~ loading gem 'merb-mailer' ...
~ loading gem 'merb-slices' ...
~ loading gem 'merb-auth-core' ...
~ loading gem 'merb-auth-more' ...
~ Registered slice 'MerbAuthSlicePassword' located at /usr/local/lib/
ruby/gems/1.8/gems/merb-auth-slice-password-1.0.7.1
~ loading gem 'merb-auth-slice-password' ...
~ loading gem 'merb-param-protection' ...
~ loading gem 'merb-exceptions' ...
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:149:in `activate': can't
activate data_objects (= 0.9.9, runtime), already activated
data_objects-0.9.10.1 (Gem::Exception)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:165:in
`activate'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:164:in
`each'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:164:in
`activate'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:49:in `gem'
from /usr/local/lib/ruby/gems/1.8/gems/dm-core-0.9.8/lib/dm-
core/adapters/sqlite3_adapter.rb:1
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/dm-core-0.9.8/lib/dm-
core/adapters.rb:9
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/dm-core-0.9.8/lib/dm-
core.rb:56
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/
merb-core/core_ext/kernel.rb:149:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/
merb-core/core_ext/kernel.rb:149:in `load_dependency'
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/
merb-core/bootloader.rb:405:in `load_dependencies'
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/
merb-core/bootloader.rb:405:in `each'
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/
merb-core/bootloader.rb:405:in `load_dependencies'
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/
merb-core/bootloader.rb:393:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/
merb-core/bootloader.rb:99:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/
merb-core/server.rb:172:in `bootup'
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/
merb-core/server.rb:42:in `start'
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/
merb-core.rb:170:in `start'
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/bin/
merb:11
from /usr/local/bin/merb:19:in `load'
from /usr/local/bin/merb:19

Thomas Marek

unread,
Jan 6, 2009, 1:09:23 PM1/6/09
to me...@googlegroups.com
You must updgrade your datamapper dependency to 0.9.9 too

config/dependencies.rb:
...
dm_gems_version   = "0.9.9"
...


Thomas

needmorebikes

unread,
Jan 6, 2009, 4:29:16 PM1/6/09
to merb
Ahh - thanks. Thought I had the latest DM, but needed to update that
too - then this worked.

-Malcolm

RichOnRails

unread,
Jan 6, 2009, 11:09:10 PM1/6/09
to merb
Got the same error while:
merb-gen controller Uploads

Loading init file from /Users/rich/Desktop/Merb/upload_app/config/
init.rb
Loading /Users/rich/Desktop/Merb/upload_app/config/environments/
development.rb
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:149:in `activate': can't
activate data_objects (= 0.9.9, runtime), already activated
data_objects-0.9.10.1 (Gem::Exception)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:165:in
`activate'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:164:in
`each'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:164:in
`activate'
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/
merb-core/core_ext/kernel.rb:142:in `load_dependency'
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/
merb-core/bootloader.rb:405:in `load_dependencies'
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/
merb-core/bootloader.rb:405:in `each'
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/
merb-core/bootloader.rb:405:in `load_dependencies'
from /usr/local/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/
merb-core/bootloader.rb:393:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/merb-gen-1.0.7.1/lib/
merb-gen/generator.rb:43:in `initialize'
from /usr/local/lib/ruby/gems/1.8/gems/merb-gen-1.0.7.1/lib/
merb-gen/named_generator.rb:10:in `initialize'
from /usr/local/lib/ruby/gems/1.8/gems/templater-0.5.0/lib/
templater/cli/generator.rb:61:in `new'
from /usr/local/lib/ruby/gems/1.8/gems/templater-0.5.0/lib/
templater/cli/generator.rb:61:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/templater-0.5.0/lib/
templater/cli/manifold.rb:24:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/templater-0.5.0/lib/
templater/manifold.rb:80:in `run_cli'
from /usr/local/lib/ruby/gems/1.8/gems/merb-gen-1.0.7.1/bin/
merb-gen:6
from /usr/local/bin/merb-gen:19:in `load'
from /usr/local/bin/merb-gen:19

Followed above by
config/dependencies.rb:
...
dm_gems_version = "0.9.9"

and updated my dm- gems

still get the above error.

Matt Aimonetti

unread,
Jan 6, 2009, 11:20:13 PM1/6/09
to me...@googlegroups.com
activate data_objects (= 0.9.9, runtime), already activated
data_objects-0.9.10.1 (Gem::Exception)


What that message means is that one of your dependency has a hard requirement on data_objects 0.9.9 but another dependency already loaded 0.9.10.1

Usually this kind of issue happens when you update datamapper without updating the data objects or vice versa.

You have to solutions to this problem:

1. check on your config/dependencies.rb file and update to 0.9.10.1
2. bundle your app by doing `thor merb:gem:install`  and run your app by doing `./bin/merb`

The second option is usually the recommended way so you don't have to deal with system upgrades breaking your dependencies and other developers can work on the same project and just rebuild the gems by doing:
`./bin/thor merb:gem:redeploy`  Finally, it makes deployment much easier.

I hope this helps,

- Matt

RichOnRails

unread,
Jan 7, 2009, 1:51:08 PM1/7/09
to merb
Ahhh. So data_objects-0.9.10.1 was installed from some other
dependency and now the dms 0.9.9 are not compatible.

I tried solution# 1 and since the dms of 0.9.10.1 do not exist, this
does not work. So to find out what the dependencies are, I tried
this:

gem uninstall data_objects -v 0.9.10.1

You have requested to uninstall the gem:
data_objects-0.9.10.1
do_mysql-0.9.10.1 depends on [data_objects (= 0.9.10.1)]
dm-core-0.9.8 depends on [data_objects (~> 0.9.9)]
dm-core-0.9.9 depends on [data_objects (~> 0.9.10)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn]

So perhaps I should back down to
do_mysql-0.9.9 and dm-core-0.9.8.
And back down to data_objects-0.9.9.

codeinnova

unread,
Jan 7, 2009, 6:49:07 PM1/7/09
to merb
I just upgraded to merb 1.0.7.1 today and generated an app and when i
ran the 'merb' command, i got the following error:
Loading init file from E:/ROR/merb/projects/ruby_simple_app/config/
init.rb
Loading E:/ROR/merb/projects/ruby_simple_app/config/environments/
development.rb
c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:149:in `activate': can't
activate dat
a_objects (= 0.9.9, runtime), already activated data_objects-0.9.10.1
(Gem::Exce
ption)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:165:in
`activate'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:164:in `each'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:164:in
`activate'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:49:in `gem'
from c:/ruby/lib/ruby/gems/1.8/gems/dm-core-0.9.8/lib/dm-core/
adapters/s
qlite3_adapter.rb:1
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `ge
m_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `re
quire'
from c:/ruby/lib/ruby/gems/1.8/gems/dm-core-0.9.8/lib/dm-core/
adapters.r
b:9
... 12 levels...
from c:/ruby/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/lib/merb-
core.rb:1
70:in `start'
from c:/ruby/lib/ruby/gems/1.8/gems/merb-core-1.0.7.1/bin/merb:
11
from c:/ruby/bin/merb:19:in `load'
from c:/ruby/bin/merb:19

Matt had mentioned that to solve this problem we have to
1. check on your config/dependencies.rb file and update to 0.9.10.1
Can you please elaborate as to what should be updated to 0.9.10.1 as i
don't see any entry for 'data-objects'?

Thanks

codeinnova

unread,
Jan 7, 2009, 6:53:01 PM1/7/09
to merb
An update on this.
Like RickonRails i uninstalled the data_objects 0.9.10.1

gem uninstall data_objects -v 0.9.10.1

and it worked.
So that means, when we upgrade merb, we have to have the specific
versions of other dependent gems. is this right?

Richard Boldway

unread,
Jan 7, 2009, 9:43:56 PM1/7/09
to me...@googlegroups.com
I took a different approach in fixing my problem.
I followed the TroubleShooting instructions at
http://wiki.merbivore.com/howto/installation/gems.
How I'm fat dumb and happy.

Matt Aimonetti

unread,
Jan 8, 2009, 1:27:35 AM1/8/09
to me...@googlegroups.com
hehe so turned out I had the same problem and I didn't feel like fixing the problem by any of the solutions given earlier.

I fixed the problem by editing my dependencies.rb file as follows:

dm_gems_version   = "0.9.9"

dependency "do_sqlite3", "0.9.10.1" # If using another database, replace this
dependency "do_mysql", "0.9.10.1", :require_as => nil
dependency "dm-core", dm_gems_version  


The problem is that some DM/DO dependencies use loose dependencies and some use some hard dependencies. I'll talk with the DM guys to get that fixed in a future release.

Move the do_* adapters above dm-core and rebundle your app.

thor merb:gem:install


- Matt

Richard Boldway

unread,
Jan 8, 2009, 1:51:38 AM1/8/09
to me...@googlegroups.com
Thanks, Matt, for watchdogging this.  Efforts like yours has affected me and my learning MERB.  And hopefully others.
Rich

scottmotte

unread,
Jan 15, 2009, 1:36:09 AM1/15/09
to merb
Thanks Matt.

On Jan 7, 10:51 pm, Richard Boldway <Rich...@Boldway.org> wrote:
> Thanks, Matt, for watchdogging this.  Efforts like yours has affected me
> and my learning MERB.  And hopefully others.
> Rich
>
> Matt Aimonetti wrote:
> > hehe so turned out I had the same problem and I didn't feel like
> > fixing the problem by any of the solutions given earlier.
>
> > I fixed the problem by editing my dependencies.rb file as follows:
>
> > dm_gems_version   = "0.9.9"
>
> > dependency "do_sqlite3", "0.9.10.1" # If using another database,
> > replace this
> > dependency "do_mysql", "0.9.10.1", :require_as => nil
> > dependency "dm-core", dm_gems_version  
>
> > The problem is that some DM/DO dependencies use loose dependencies and
> > some use some hard dependencies. I'll talk with the DM guys to get
> > that fixed in a future release.
>
> > Move the do_* adapters above dm-core and rebundle your app.
>
> > thor merb:gem:install
>
> > - Matt
>
Reply all
Reply to author
Forward
0 new messages