#1231 ✓resolved

dm-is-list requires unavailable version of dm-transactions

Reported by ravinggenius | April 2nd, 2010 @ 09:14 PM | in 1.0.0

Why does a DataMapper plugin depend on an unpublished version of another plugin? I keep getting the following error when running bundle install. My Gemfile is attached.

No compatible versions could be found for required dependencies:
    dm-transactions (~> 0.10.3, runtime) not found in any of the sources
      required by dm-is-list (~> 0.10.2, runtime)
    All possible versions of origin requirements conflict.

Running gem list | grep dm gives me:

dm-adjust (0.10.2)
dm-aggregates (0.10.2)
dm-ar-finders (0.10.2)
dm-cli (0.10.2)
dm-constraints (0.10.2)
dm-core (0.10.2, 0.10.1)
dm-is-list (0.10.2)
dm-is-nested_set (0.10.2)
dm-is-remixable (0.10.2)
dm-is-searchable (0.10.2)
dm-is-state_machine (0.10.2)
dm-is-tree (0.10.2)
dm-is-versioned (0.10.2)
dm-is-viewable (0.10.1)
dm-migrations (0.10.2)
dm-more (0.10.2)
dm-observer (0.10.2)
dm-querizer (0.10.1)
dm-rest-adapter (0.10.2)
dm-serializer (0.10.2)
dm-shorthand (0.10.1)
dm-sweatshop (0.10.2)
dm-tags (0.10.2)
dm-timestamps (0.10.2)
dm-types (0.10.2)
dm-validations (0.10.2)

Comments and changes to this ticket

  • ravinggenius

    ravinggenius April 2nd, 2010 @ 09:16 PM

    • Tag changed from rails3 0.10.2 0.10.3 to 0.10.2, 0.10.3, rails3
  • Martin Gamsjaeger (snusnu)

    Martin Gamsjaeger (snusnu) April 3rd, 2010 @ 11:33 AM

    • Milestone set to 1.0.0
    • State changed from “new” to “confirmed”
    • Assigned user set to “Martin Gamsjaeger (snusnu)”


    So the issue is that the transaction code was extracted into dm-transactions only recently, and no gem has been published yet because there currently is no dm-core gem released, on which dm-transactions could depend (0.10.2 still contains the transaction code inside dm-core, and it's too early to release a new dm-core version at this point).

    So it's only an issue if you're using master branches, and from the rails3 tag you added to the ticket, I assume you're using rails3 :) See if adding

    gem 'dm-transactions', '~> 0.10.3', :git => 'git://github.com/datamapper/dm-transactions.git

    to your rails3 app's Gemfile helps. I'm almost certain it would. If so, I'll add it to the Gemfile generated by default, when creating a new dm-rails application.

  • ravinggenius

    ravinggenius April 3rd, 2010 @ 04:02 PM

    Thanks for getting back with this. Yes this project is Rails 3, and your suggestion worked. For reference I have included the text of my working Gemfile below. I added dm-transactions just after dm-core. Also I slightly modified the line for dm-rails from the README on GitHub.

    source 'http://gemcutter.org'
    rails_version = '~> 3.0.0.beta2'
    do_version = '~> 0.10.1'
    dm_version = '~> 0.10.3'
    git 'git://github.com/rails/rails.git'
    gem 'activesupport',         rails_version, :require => 'active_support'
    gem 'actionpack',            rails_version, :require => 'action_pack'
    gem 'railties',              rails_version, :require => 'rails'
    gem 'actionmailer',          rails_version, :require => 'action_mailer'
    gem 'data_objects',          do_version
    gem 'do_sqlite3',            do_version
    # You can use any of the other available database adapters.
    # This is only a small excerpt of the list of all available adapters
    # Have a look at
    #  http://wiki.github.com/datamapper/dm-core/adapters
    #  http://wiki.github.com/datamapper/dm-core/community-plugins
    # for a rather complete list of available datamapper adapters and plugins
    # gem 'do_mysql',            do_version
    # gem 'do_postgres',         do_version
    # gem 'do_oracle',           do_version
    gem 'dm-core',               dm_version, :git => 'git://github.com/datamapper/dm-core.git'
    gem 'dm-transactions',       dm_version, :git => 'git://github.com/datamapper/dm-transactions.git'
    git 'git://github.com/datamapper/dm-more.git' do
      gem 'dm-types',            dm_version
      gem 'dm-validations',      dm_version
      gem 'dm-constraints',      dm_version
      gem 'dm-aggregates',       dm_version
      gem 'dm-timestamps',       dm_version
      gem 'dm-migrations',       dm_version
      gem 'dm-observer',         dm_version
      gem 'dm-is-list',          dm_version
      gem 'dm-is-nested_set',    dm_version
    gem 'dm-rails',              '~> 0.10.2', :git => 'git://github.com/datamapper/dm-rails.git'
    gem 'haml',                  '~> 3.0.0.beta'
    gem 'compass',               '~> 0.10.0.rc1'
    gem 'compass-susy-plugin',   '~> 0.6.3'
    gem 'compass-jquery-plugin', '~> 0.2.5'
    group(:development) do
      gem 'hirb'
  • Martin Gamsjaeger (snusnu)

    Martin Gamsjaeger (snusnu) April 4th, 2010 @ 08:06 PM

    • State changed from “confirmed” to “resolved”

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »