Rails 3 + Polyglot require error

107 views
Skip to first unread message

Cássio Marques

unread,
Sep 1, 2010, 11:20:27 AM9/1/10
to cu...@googlegroups.com
Hello,

I'm upgrading an app to Rails 3 and I'm getting the following error when trying to start my server:

[ree-1.8.7-2010.02@csh-web-rails3]~/dev/shh/csh-web(rails3*)$ rails s
/Users/cmarques/.rvm/gems/ree-1.8.7-2010.02@csh-web-rails3/gems/polyglot-0.3.1/lib/polyglot.rb:64:in `polyglot_original_require': no such file to load -- activesupport (LoadError)
from /Users/cmarques/.rvm/gems/ree-1.8.7-2010.02@csh-web-rails3/gems/polyglot-0.3.1/lib/polyglot.rb:64:in `require'
from /Users/cmarques/.rvm/gems/ree-1.8.7-2010.02@csh-web-rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /Users/cmarques/.rvm/gems/ree-1.8.7-2010.02@csh-web-rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Users/cmarques/.rvm/gems/ree-1.8.7-2010.02@csh-web-rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
from /Users/cmarques/.rvm/gems/ree-1.8.7-2010.02@csh-web-rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Users/cmarques/.rvm/gems/ree-1.8.7-2010.02@csh-web-rails3/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
from /Users/cmarques/.rvm/gems/ree-1.8.7-2010.02@csh-web-rails3/gems/metric_fu-1.4.0/lib/metric_fu.rb:3
from /Users/cmarques/.rvm/gems/ree-1.8.7-2010.02@csh-web-rails3/gems/bundler-1.0.0/lib/bundler/runtime.rb:64:in `require'
from /Users/cmarques/.rvm/gems/ree-1.8.7-2010.02@csh-web-rails3/gems/bundler-1.0.0/lib/bundler/runtime.rb:64:in `require'
from /Users/cmarques/.rvm/gems/ree-1.8.7-2010.02@csh-web-rails3/gems/bundler-1.0.0/lib/bundler/runtime.rb:62:in `each'
from /Users/cmarques/.rvm/gems/ree-1.8.7-2010.02@csh-web-rails3/gems/bundler-1.0.0/lib/bundler/runtime.rb:62:in `require'
from /Users/cmarques/.rvm/gems/ree-1.8.7-2010.02@csh-web-rails3/gems/bundler-1.0.0/lib/bundler/runtime.rb:51:in `each'
from /Users/cmarques/.rvm/gems/ree-1.8.7-2010.02@csh-web-rails3/gems/bundler-1.0.0/lib/bundler/runtime.rb:51:in `require'
from /Users/cmarques/.rvm/gems/ree-1.8.7-2010.02@csh-web-rails3/gems/bundler-1.0.0/lib/bundler.rb:112:in `require'
from /Users/cmarques/dev/shh/csh-web/config/application.rb:7
from /Users/cmarques/.rvm/gems/ree-1.8.7-2010.02@csh-web-rails3/gems/railties-3.0.0/lib/rails/commands.rb:28:in `require'
from /Users/cmarques/.rvm/gems/ree-1.8.7-2010.02@csh-web-rails3/gems/railties-3.0.0/lib/rails/commands.rb:28
from /Users/cmarques/.rvm/gems/ree-1.8.7-2010.02@csh-web-rails3/gems/railties-3.0.0/lib/rails/commands.rb:27:in `tap'
from /Users/cmarques/.rvm/gems/ree-1.8.7-2010.02@csh-web-rails3/gems/railties-3.0.0/lib/rails/commands.rb:27
from script/rails:6:in `require'
from script/rails:6

It seems to be something regarding polyglot, is there any specific versions I should be using? Here's my current versions:

  * cucumber (0.8.5)
  * cucumber-rails (0.3.2)
  * polyglot (0.3.1)

Thanks!

--
Cássio Marques

Blog: http://cassiomarques.wordpress.com

If you're writing code and you're not testing it, the code is wrong. I don't care if it does the right thing, and people need to understand this. If it works by accident, you're still wrong.
Bryan Liles - Ruby Hoedown 2008

aslak hellesoy

unread,
Sep 1, 2010, 11:47:19 AM9/1/10
to cu...@googlegroups.com
2010/9/1 Cássio Marques <cass...@gmail.com>:

Cucumber no longer depends on polyglot. Try removing it from your
Gemfile and see what happens.

Aslak

> I should be using? Here's my current versions:
>   * cucumber (0.8.5)
>   * cucumber-rails (0.3.2)
>   * polyglot (0.3.1)
> Thanks!
> --
> Cássio Marques
>
> Blog: http://cassiomarques.wordpress.com
>
> If you're writing code and you're not testing it, the code is wrong. I don't
> care if it does the right thing, and people need to understand this. If it
> works by accident, you're still wrong.
> Bryan Liles - Ruby Hoedown 2008
>

> --
> You received this message because you are subscribed to the Google Groups
> "Cukes" group.
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to
> cukes+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cukes?hl=en.
>

Cássio Marques

unread,
Sep 1, 2010, 11:52:47 AM9/1/10
to cu...@googlegroups.com
Thanks Aslak, I just figured out that I was using an old version of metric_fu and that was causing the problems. Thanks anyway!
Reply all
Reply to author
Forward
0 new messages