citrus / spree_essential_cms

SpreeEssentialCms is a full featured CMS for Spree Commerce.
BSD 3-Clause "New" or "Revised" License
68 stars 82 forks source link

active_merchant dependancy #2

Closed wejrowski closed 13 years ago

wejrowski commented 13 years ago

I'm trying to install the spree_active_shipping gem. I'm getting an error that the gem conflicts with your gem dependancies.. and I'm not sure how to resolve it. I was looking into why/where your spree_essential_cms is using activemerchant and I couldn't find that either.

Bundler could not find compatible versions for gem "activemerchant":
  In Gemfile:
    spree_essential_cms depends on
      activemerchant (= 1.14.0)

    spree_active_shipping depends on
      activemerchant (1.9.0)
citrus commented 13 years ago

I'm not sure why this is happening... Spree_essential_cms doesn't rely on activemerchant directly. Which version of spree & spree_essentials are you running?

wejrowski commented 13 years ago

Just using the 'spree' gem. So whichever that is (I have 0.60.1 and 0.40.0 installed). And spree_essentials 0.2.2.

Weird it's showing that eror your gem doesn't use it. Is there a way to find out exactly where that dependency is coming from?

Thanks for the help!

citrus commented 13 years ago

I would recommend adding a version constraint to the spree gem in your Gemfile:

gem 'spree', '~> 0.60.1'

Both spree 0.40.0 and 0.60.1 require activemerchant = 1.15.0, and spree_active_shipping requires activemerchant = 1.9.0.

So I'm not sure that this is related to spree_essential_cms. Maybe you could take it out of your Gemfile for debugging? Also, pasting your Gemfile might shed some more light...

wejrowski commented 13 years ago

Hmm, so now it's saying it's an issue between spree and spree_active_shipping. Thanks. I suppose I'll ask those guys, unless you have any solutions off hand.

Bundler could not find compatible versions for gem "activemerchant":
  In Gemfile:
spree (~> 0.60.1) depends on
  activemerchant (= 1.15.0)

spree_active_shipping depends on
  activemerchant (1.9.0)
citrus commented 13 years ago

It looks like v1.0.0 of spree_active_shipping is the culprit here... The released version depends on activemerchant but the edge version doesn't. So in your Gemfile just change your spree_active_shipping line to:

gem 'spree_active_merchant', :git => 'git://github.com/spree/spree_active_shipping.git'

I'd bring this up with the spree folks too so future users don't have the same issues...

Hope that helps!

-Spencer

wejrowski commented 13 years ago

Genius. Ah thanks! BTW I think you meant to say

gem 'spree_active_shipping', :git => 'git://github.com/spree/spree_active_shipping.git'

Random question. When you use gems with git, where do these install to? They never appear in the gems directory.

wejrowski commented 13 years ago

Answered my question with

bundle show spree_active_shipping
citrus commented 13 years ago

haha yes, definitely meant 'spree_active_shipping' hahaha...

And right on for finding bundle show!

jclay commented 12 years ago

Thanks for this! Pulling from the git repo fixed it for me also.