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

New Cocaine API Breaks Old Paperclip Gems #1038

Closed
boone opened this Issue Oct 5, 2012 · 16 comments

Comments

Projects
None yet
@boone
Contributor

boone commented Oct 5, 2012

The old paperclip.gemspec allowed any version of the Cocaine gem >= 0.0.2. So currently installs of the Paperclip gem will include Cocaine 0.4.0, which did not work for me. I was using an old version in development (2.4.5), but updating to the latest (3.2.0) didn't help.

d15d8d8

I was getting this error:

Command :: identify -format %wx%h :file
[paperclip] An error was received while processing: #<Paperclip::NotIdentifiedByImageMagickError: {path to my image} is not recognized by the 'identify' command.>

I solved this by removing Cocaine 0.4.0 and adding this to my Gemfile:

gem 'cocaine', '0.3.2'
@complistic-gaff

This comment has been minimized.

complistic-gaff commented Oct 6, 2012

I just did a bundle update and this issue came up.. I was confused for a bit before I worked it out.

I can confirm that using gem 'cocaine', '0.3.2' works with paperclip-2.7 + ruby-1.9.2

@gjones

This comment has been minimized.

gjones commented Oct 6, 2012

+1

@ItaiLeibowitz

This comment has been minimized.

ItaiLeibowitz commented Oct 6, 2012

Thanks guys, had the same issue and now it's resolved by rolling back to cocaine 0.3.2

@mvilrokx

This comment has been minimized.

mvilrokx commented Oct 7, 2012

omg, I tried to fix this issue for the last 2 days and rolling back cocaine fixed the issue (OSX 10.8.2, Rails 3.2.8). Thank you so much.

@davidw

This comment has been minimized.

davidw commented Oct 7, 2012

Spent 2/3 hours tracking that down myself. Ouch.

@jyurek

This comment has been minimized.

Contributor

jyurek commented Oct 7, 2012

I'm sorry about the trouble, everyone. I just released both 3.3.0 and 2.8.0 that have been upgraded for Cocaine 0.4.0.

@jyurek jyurek closed this Oct 7, 2012

@joelcogen

This comment has been minimized.

joelcogen commented Oct 8, 2012

Could you make minor versions with a stricter dependency on cocaine, like ~> 0.3.2.
Projects with a dependency on paperclip ~> 3.1.4, 3.2.0, etc will currently break if you bundle update :(

@jyurek

This comment has been minimized.

Contributor

jyurek commented Oct 8, 2012

Yes, I just did that and pushed 3.2.1 and 2.7.2.

@taimoor

This comment has been minimized.

taimoor commented Feb 8, 2013

+1 for adding gem 'cocaine', '0.3.1'

@martinstreicher

This comment has been minimized.

Contributor

martinstreicher commented Apr 3, 2013

What combination of cocaine and paperclip are known to work. I have a Gemfile with paperclip (3.3.1) and cocaine (0.4.2) and I am seeing the is not recognized by the 'identify' command error.

@dangluan

This comment has been minimized.

dangluan commented May 10, 2013

--The first
using paperclip v 3.0 and cocaine v 0.3.2
and add line in development.rb in environment directory
Paperclip.options[:command_path] = "/usr/local/bin/"
--The second you need check
identify image.png if errors you need install imagemagick again using:
+ sudo apt-get install imagemagick
+ sudo apt-get install graphicsmagick-libmagick-dev-compat
and check again.

@liuganggang

This comment has been minimized.

liuganggang commented May 10, 2013

This is the 2 times to find this problem in ree and paperclip 2.4.5.

@vishalzambre

This comment has been minimized.

vishalzambre commented Oct 18, 2013

still getting same error and If I'm trying to downgrade cocaine version it gives error
Bundler could not find compatible versions for gem "cocaine":
In Gemfile:
spree (>= 0) ruby depends on
cocaine (~> 0.5.0) ruby

cocaine (0.3.2)
@benjiwheeler

This comment has been minimized.

benjiwheeler commented Mar 28, 2014

getting same error with paperclip ~> 4.1 and the cocaine it defaults to using

@johnantoni

This comment has been minimized.

johnantoni commented Mar 9, 2015

thanks for posting this.

lifesaver

@cs102

This comment has been minimized.

cs102 commented Jun 13, 2016

thanks, adding

gem 'cocaine', '0.3.2'

to my gem file fixed the problem 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment