paperclipftp
paperclipftp copied to clipboard
uninitialized constant Paperclip::Storage::Ftp::Timeout (NameError)
paperclipftp works perfectly when developing in ruby 1.8.7 but if i switch to 1.9.2 using rvm in mac os x i get this error when i start the webbrick server using the 'rails s' command:
/Users/phaser/Sites/porlaputa/vendor/ruby/1.9.1/gems/paperclipftp-0.2.4/lib/paperclipftp.rb:4:in `<module:Ftp>': uninitialized constant Paperclip::Storage::Ftp::Timeout (NameError)
from /Users/phaser/Sites/porlaputa/vendor/ruby/1.9.1/gems/paperclipftp-0.2.4/lib/paperclipftp.rb:3:in `<module:Storage>'
from /Users/phaser/Sites/porlaputa/vendor/ruby/1.9.1/gems/paperclipftp-0.2.4/lib/paperclipftp.rb:2:in `<module:Paperclip>'
from /Users/phaser/Sites/porlaputa/vendor/ruby/1.9.1/gems/paperclipftp-0.2.4/lib/paperclipftp.rb:1:in `<top (required)>'
from /Users/phaser/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
from /Users/phaser/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /Users/phaser/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `each'
from /Users/phaser/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `block in require'
from /Users/phaser/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `each'
from /Users/phaser/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `require'
from /Users/phaser/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.15/lib/bundler.rb:120:in `require'
from /Users/phaser/Sites/porlaputa/config/application.rb:7:in `<top (required)>'
from /Users/phaser/Sites/porlaputa/vendor/ruby/1.9.1/gems/railties-3.0.9/lib/rails/commands.rb:28:in `require'
from /Users/phaser/Sites/porlaputa/vendor/ruby/1.9.1/gems/railties-3.0.9/lib/rails/commands.rb:28:in `block in <top (required)>'
from /Users/phaser/Sites/porlaputa/vendor/ruby/1.9.1/gems/railties-3.0.9/lib/rails/commands.rb:27:in `tap'
from /Users/phaser/Sites/porlaputa/vendor/ruby/1.9.1/gems/railties-3.0.9/lib/rails/commands.rb:27:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
i´ve googled the hell out of this problem and it seems im the only one. perhaps there is an incompatibility with the gems in my application? my Gemfile is this:
source 'http://rubygems.org'
gem 'rails', '3.0.9' gem "rake", "0.8.7" gem 'sqlite3' gem 'authlogic' gem 'cancan' gem 'paperclip' gem 'paperclipftp' gem 'twitter' gem 'hoptoad_notifier' gem 'heroku' gem 'kaminari'
I've got this as well on 3 machines out of 4. All running Ruby 1.9.2. Have no problems on my works Windows XP box, but windows 7, OSX and Ubuntu at home give the same problem. Home machines were all originally Ruby 1.8.7 and had the same problem.
Hi, its due to the timeout class not being loaded. (Something changed between 1.9.2p0 and 1.9.2p180)
just add
require 'timeout'
to the application.rb and this will fix your error till an update is added to the gem
any news on when the patch will be added
+1