Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

`const_missing': uninitialized constant I18n::Backend::Redis::Flatten (NameError) #36

Closed
hernan43 opened this Issue Sep 24, 2010 · 2 comments

Comments

Projects
None yet
3 participants

When trying to run "script/server" I'm getting the following error:

/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:105:in `const_missing': uninitialized constant I18n::Backend::Redis::Flatten (NameError)
    from /usr/lib/ruby/gems/1.8/gems/redis-store-1.0.0.beta3/lib/i18n/backend/redis.rb:4
    from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
    from /usr/lib/ruby/gems/1.8/gems/redis-store-1.0.0.beta3/lib/redis-store.rb:43
    from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:64:in `require'
    from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:64:in `require'
    from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:62:in `each'
    from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:62:in `require'
    from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:51:in `each'
    from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:51:in `require'
    from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler.rb:112:in `require'
    from ./script/../config/boot.rb:114:in `load_gems'
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:164:in `process'
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in `send'
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in `run'
    from /home/me/redis_test/config/environment.rb:9
    from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
    from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/commands/server.rb:84
    from script/server:3:in `require'
    from script/server:3

I'm using Rails 2.3.8, bundler 1.0.0, redis(server) 2.0.2, redis(gem) 2.0.10, redis-store 1.0.0.beta3. I followed the README for the Rails 2.x.x + Bundler directions.

In my Googling and overall searching I haven't found an error quite like this. Anyone know what might be wrong, or what I might be doing wrong?

I'm also seeing this error for the beta3.
I'm using an older version of redis server ( 1.3.10 ), but just updated to the 2.0.10 redis
gem. Also rails 2.3.5. I just switched back to beta2 for now.

Owner

jodosha commented Sep 27, 2010

The problem is that Rails 2.3.x includes an outdated version of the i18n gem (0.3.7). The Flatten module was introduced in the 0.4.0 http://github.com/svenfuchs/i18n/commit/2ec9d699

So I guess, I have to update the README and let people to being noticed about this.

@jodosha jodosha closed this Jan 18, 2013

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