Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
hernan43 opened this Issue · 2 comments

3 participants

@hernan43

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?

@jacklin10

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.

@jodosha
Owner

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.