Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

uninitialized constant Paperclip::Storage::Ftp::Timeout (NameError) #4

Open
explodi opened this issue Aug 7, 2011 · 4 comments
Open

Comments

@explodi
Copy link

explodi commented Aug 7, 2011

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'

@nautique69
Copy link

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.

@dripster82
Copy link

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

@dripster82
Copy link

any news on when the patch will be added

@wintondeshong
Copy link

+1

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

No branches or pull requests

4 participants