Facing dependency error for "faraday"

136 views
Skip to first unread message

Fahim Patel

unread,
Jun 17, 2013, 7:25:09 PM6/17/13
to rubyonra...@googlegroups.com
Hi,
Please solve below dependency.

Bundler could not find compatible versions for gem "faraday":
  In Gemfile:
    swiftype (>= 0) ruby depends on
      faraday (~> 0.8.1) ruby

    context-io (>= 0) ruby depends on
      faraday (0.7.6)


 I follow below links but not getting:-
  1. http://stackoverflow.com/questions/6132479/2-gems-need-different-versions-of-the-same-dependency
    http://stackoverflow.com/questions/8878980/rails-bundle-one-gem-two-versions?rq=1
    http://stackoverflow.com/questions/6320363/adding-2-versions-of-a-gem-in-bundler?rq=1


  2. Thanks

    Best Regards
    Fahim Babar Patel


Colin Law

unread,
Jun 18, 2013, 2:41:45 AM6/18/13
to rubyonra...@googlegroups.com
On 18 June 2013 00:25, Fahim Patel <paf...@gmail.com> wrote:
> Hi,
>
> Please solve below dependency.
>
>
> Bundler could not find compatible versions for gem "faraday":
> In Gemfile:
> swiftype (>= 0) ruby depends on
> faraday (~> 0.8.1) ruby
>
> context-io (>= 0) ruby depends on
> faraday (0.7.6)

If what you have stated above is correct then you are stuck as there
is no version of faraday that will satisfy both requirements. Have
you checked whether you have the latest versions of context-io and
swiftype?

Try
bundle update swiftype
bundle update context-io
bundle install

Colin
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/48f0bf8e-7c7a-4e40-b8d8-650781a7ae33%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Fahim Patel

unread,
Jun 18, 2013, 1:43:40 PM6/18/13
to rubyonra...@googlegroups.com
Thanks Colin for reply. 
When i try to fire your commands terminal get hanged.

aman mangal

unread,
Jun 18, 2013, 2:27:15 PM6/18/13
to rubyonra...@googlegroups.com
Hi,

I caught up in the same situation when I was trying to use pingdom-client and google_drive together in one application. Pingdom--client has dependency on faraday0.5.6 whereas google_drive depends upon faraday0.8 . I downloaded the pingdom-client gem, stored it locally(not the standard ruby gems location) and in the Gemfile  provided a local link. Then I changed in the config files the dependency to newer version of faraday. Though it didn't work in my case for some reason I don't remember, you can try if this works for you. I'd love to see any standard solution to this.

Aman Mangal
3rd year Undergraduate
Department of Computer Science & Engineering
IIT Bombay
www.cse.iitb.ac.in/~amanmangal


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.

Tamara Temple

unread,
Jun 22, 2013, 2:55:09 PM6/22/13
to rubyonra...@googlegroups.com
Fahim Patel <paf...@gmail.com> wrote:
> Please solve below dependency.

Use contextio instead of context-io

Reply all
Reply to author
Forward
0 new messages