Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install codesake-dawn gem #61

Closed
lohithmv019 opened this issue Apr 17, 2014 · 4 comments
Closed

Unable to install codesake-dawn gem #61

lohithmv019 opened this issue Apr 17, 2014 · 4 comments
Labels

Comments

@lohithmv019
Copy link

I am not able to install codesake-dawn gem because of the dependency on multiple versions of "mime-types" gem.

grit requires mime-types (> 1.15)(mime type 2 will not work)
rest-client requires mime-types (>= 1.16)
mechanize requires mime-types (
> 2.0)

I tried installing both version of the "mime-types" gem (1.25 and 2.2) then gem installed successfully but i am unable to run dawn,when try to run dawn I am getting following error
" `raise_if_conflicts': Unable to activate grit-2.5.0, because mime-types-2.2 conflicts with mime-types (~> 1.15) (Gem::LoadError)"

I am running ubuntu 13.10 and RVM with ruby 1.9.3 and ruby 2.1

Please let me know if there is any work around for this ?

@thesp0nge
Copy link
Owner

@lohithmv019 this is very specific issue you're experiencing due to your current gemset configuration I can't solve.

You can try to use a fresh gemset to install dawn.

@lohithmv019
Copy link
Author

@thesp0nge I am using fresh install of ruby(ruby 2.1) just to install this gem.All the gems I mentioned above are used by your gem only(I am not using them for any purpose.).Let me know if I am missing anything here.

@tecknicaltom
Copy link

I am experiencing this same issue while trying to evaluate dawn. I am using Kali Linux, with very few gems installed. Additionally, the claim is backed by the Gemnasium dependencies linked to in the readme.
The problematic dependency tree:

codesake-dawn (https://gemnasium.com/codesake/codesake-dawn)

  • codesake-commons ~> 0.95.0
    • mechanize >= 0 (newest is 2.7.3)
      • mime-types ~> 2.0
  • grit >= 0 (newest is 2.5.0)
    • mime-types ~> 1.15

The problem appears to be that codesake-dawn depends on the grit library, which is unmaintained and has old dependencies. https://github.com/mojombo/grit says "Grit is no longer maintained. Check out libgit2/rugged"

@Chillibear
Copy link

It's the codesake-commons gem that I think is bringing in the problem. It requires any version of mechanize and as tecknicaltom says the current version is 2.7.3 where the dependency on mime-types switched to version 2. You could try hacking the gem spec of your copy of code sake-commons to specify an older version of mechanize, i.e. gem.add_dependency 'mechanize', '<= 2.7.2' in codesake-commons.gemspec. I just encountered the same problem myself and this temporarily fixed it by getting the slightly older version of mechanize installed.

The long term solution is probably to switch to Rugged rather than Grit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants