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

ReadMe does not list Dependencies #10

Open
itsSaad opened this issue Feb 26, 2015 · 12 comments
Open

ReadMe does not list Dependencies #10

itsSaad opened this issue Feb 26, 2015 · 12 comments

Comments

@itsSaad
Copy link

itsSaad commented Feb 26, 2015

Can we please have a list of dependencies this gem depends on. like ffmpeg

I get this error on uploading video.

LoadError (cannot load such file --/Users/SM/Developer/QBXNet/RoR/etracs/project/lib/paperclip_processors/transcoder.rb)

any other files needed. where do we get this file?

@owahab
Copy link
Member

owahab commented Mar 1, 2015

The dependencies should not be listed in the README file, the gemspec is usually the expected location since Ruby Gem will automatically pull required dependencies.
I haven't came across this error before and I need a lot more information. Can you post the full error stack?

@owahab
Copy link
Member

owahab commented Apr 10, 2015

Closing for being inactive.

@owahab owahab closed this as completed Apr 10, 2015
@shokunin-kishitsu
Copy link

Same problem.

cannot load such file -- /releases/20150527180521/lib/paperclip_processors/transcoder.rb
/shared/bundle/ruby/2.1.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require'
/shared/bundle/ruby/2.1.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `block in require'
/shared/bundle/ruby/2.1.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:236:in `load_dependency'
/shared/bundle/ruby/2.1.0/gems/activesupport-3.2.19/lib/active_support/dependencies.rb:251:in `require'
/shared/bundle/ruby/2.1.0/gems/paperclip-4.2.0/lib/paperclip/processor.rb:64:in `load_processor'
/shared/bundle/ruby/2.1.0/gems/paperclip-4.2.0/lib/paperclip/processor.rb:56:in `processor'
/shared/bundle/ruby/2.1.0/gems/paperclip-4.2.0/lib/paperclip/attachment.rb:523:in `block in post_process_style'
/shared/bundle/ruby/2.1.0/gems/paperclip-4.2.0/lib/paperclip/attachment.rb:522:in `each'
/shared/bundle/ruby/2.1.0/gems/paperclip-4.2.0/lib/paperclip/attachment.rb:522:in `inject'
/shared/bundle/ruby/2.1.0/gems/paperclip-4.2.0/lib/paperclip/attachment.rb:522:in `post_process_style'
/home/web/camdolls/shared/bundle/ruby/2.1.0/gems/paperclip-4.2.0/lib/paperclip/attachment.rb:515:in `block in post_process_styles'
/shared/bundle/ruby/2.1.0/gems/paperclip-4.2.0/lib/paperclip/attachment.rb:514:in `each'
/shared/bundle/ruby/2.1.0/gems/paperclip-4.2.0/lib/paperclip/attachment.rb:514:in `post_process_styles'
/shared/bundle/ruby/2.1.0/gems/paperclip-4.2.0/lib/paperclip/attachment.rb:506:in `block (2 levels) in post_process'
/shared/bundle/ruby/2.1.0/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:458:in `_run__413283399654332819__attachment_post_process__3167645885543296521__callbacks'
/shared/bundle/ruby/2.1.0/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:405:in `__run_callback'
/shared/bundle/ruby/2.1.0/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:385:in `_run_attachment_post_process_callbacks'
/shared/bundle/ruby/2.1.0/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:81:in `run_callbacks'
/shared/bundle/ruby/2.1.0/gems/paperclip-4.2.0/lib/paperclip/callbacks.rb:36:in `run_paperclip_callbacks'
/shared/bundle/ruby/2.1.0/gems/paperclip-4.2.0/lib/paperclip/attachment.rb:504:in `block in post_process'
/shared/bundle/ruby/2.1.0/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:403:in `_run__413283399654332819__post_process__3167645885543296521__callbacks'
/shared/bundle/ruby/2.1.0/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:405:in `__run_callback'
/shared/bundle/ruby/2.1.0/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:385:in `_run_post_process_callbacks'
/shared/bundle/ruby/2.1.0/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:81:in `run_callbacks'
/shared/bundle/ruby/2.1.0/gems/paperclip-4.2.0/lib/paperclip/callbacks.rb:36:in `run_paperclip_callbacks'
/shared/bundle/ruby/2.1.0/gems/paperclip-4.2.0/lib/paperclip/attachment.rb:503:in `post_process'
/shared/bundle/ruby/2.1.0/gems/paperclip-4.2.0/lib/paperclip/attachment.rb:459:in `post_process_file'
/shared/bundle/ruby/2.1.0/gems/paperclip-4.2.0/lib/paperclip/attachment.rb:107:in `assign'
/shared/bundle/ruby/2.1.0/gems/paperclip-4.2.0/lib/paperclip/attachment.rb:334:in `reprocess!'

@owahab
Copy link
Member

owahab commented May 27, 2015

Are you sure you did run bundle install after adding the gem to your Gemfile?

@shokunin-kishitsu
Copy link

paperclip-av-transcoder is in Gemfile.lock

@owahab owahab reopened this May 27, 2015
@owahab
Copy link
Member

owahab commented May 27, 2015

@shokunin-kishitsu can you try Paperclip < 4.2 and let me know the result?

@itsSaad
Copy link
Author

itsSaad commented May 27, 2015

Yes. I solved this by downgrading the gem itself. an earlier version worked for me.

@shokunin-kishitsu
Copy link

Here's how I made it work. In /initializers/paperclip_processors.rb:

require 'paperclip/av/transcoder'

Paperclip.configure do |c|
  c.register_processor :transcoder, Paperclip::Transcoder
end

@owahab
Copy link
Member

owahab commented May 28, 2015

@shokunin-kishitsu awesome. Will give that a try.

@tedma4
Copy link

tedma4 commented Jun 7, 2015

@itsSaad What versions of av-transcoder and paperclip did you use to get this to work?

@davidpatters0n
Copy link

@tedma4 I took the slightly different approach and successfully now have this working. (tears of joy) :bowtie: I upgraded paperclip to 4.3.0 which just got released 9 days ago. Let me know how this works for you and hopefully helps others

@RailsCod3rFuture
Copy link

I'm on Windows 10, and it doesn't work for me. I'm unable to see video posts, and it rolls back automatically once the encoding process succeeds.

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

No branches or pull requests

6 participants