#777

error on db:setup

Status: Fixed
Priority: Should have
 
Assigned To:
Unassigned

Feb 08 2010 * 16:23
olivM

using code from git

$ rake RAILS_ENV=production db:setup --trace > db_setup.txt

rake aborted!
wrong number of arguments (4 for 3)
/opt/local/lib/ruby/gems/1.8/gems/i18n-0.3.3/lib/i18n/backend/base.rb:114:in `normalize_translation_keys'
/opt/local/lib/ruby/gems/1.8/gems/i18n-0.3.3/lib/i18n/backend/base.rb:114:in `send'
/opt/local/lib/ruby/gems/1.8/gems/i18n-0.3.3/lib/i18n/backend/base.rb:114:in `lookup'
/opt/local/lib/ruby/gems/1.8/gems/i18n-0.3.3/lib/i18n/backend/base.rb:39:in `translate'
/opt/local/lib/ruby/gems/1.8/gems/i18n-0.3.3/lib/i18n.rb:208:in `t'
/Users/oliv/Workspace/retrospectiva/lib/retrospectiva/configuration_manager/units.rb:44:in `default_label'
/Users/oliv/Workspace/retrospectiva/lib/retrospectiva/configuration_manager/units.rb:40:in `label'
/Users/oliv/Workspace/retrospectiva/lib/retrospectiva/configuration_manager/units.rb:14:in `validate_and_link!'
/Users/oliv/Workspace/retrospectiva/lib/retrospectiva/configuration_manager/units.rb:94:in `validate_and_link!'
/opt/local/lib/ruby/1.8/erb.rb:719:in `to_proc'
/Users/oliv/Workspace/retrospectiva/lib/retrospectiva/configuration_manager.rb:64:in `each'
/Users/oliv/Workspace/retrospectiva/lib/retrospectiva/configuration_manager.rb:64:in `load_sections'
/Users/oliv/Workspace/retrospectiva/lib/retrospectiva/configuration_manager.rb:17:in `sections'
/Users/oliv/Workspace/retrospectiva/lib/retrospectiva/configuration_manager.rb:35:in `find'
/Users/oliv/Workspace/retrospectiva/lib/retrospectiva/configuration_manager.rb:11:in `[]'
/Users/oliv/Workspace/retrospectiva/config/environment.rb:73
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:614:in `call'
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:614:in `after_initialize'
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:613:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:613:in `after_initialize'
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:179:in `process'
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send'
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run'
/Users/oliv/Workspace/retrospectiva/config/environment.rb:11
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/misc.rake:4
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/opt/local/bin/rake:19:in `load'
/opt/local/bin/rake:19

Comments and Changes

Jan
Feb 19 2010 * 14:55
Jan

I have the same problem. Any hints?

Jan
Feb 22 2010 * 17:50
Jan

This is caused by a conflict between the I18n Gem and some other kind of I18n. If you gem uninstall I18n, retrospectiva runs properly.

Jan
Feb 22 2010 * 17:50
Jan

This is caused by a conflict between the I18n Gem and some other kind of I18n. If you gem uninstall I18n, retrospectiva runs properly.

Jan
Feb 22 2010 * 18:15
Jan

I have solved the problem. Remove the first half of /vendor/plugins/retro_i18n/lib/retro_i18n/patches.rb (leave only the Object patches). I have attached a patch.

THIS PATCH WILL LIKELY BREAK RETROSPECTIVA! In case you’re still using the 0.1.3 (ActiveSupport provided) I18n version.

So, in addition, you will require a current I18n version or perform additional hackery.

Feb 26 2010 * 08:52
Dimitrij Denissenko
  • Status changed from Open to Fixed

Yes, the patch will break almost everything :-). No worries, [8515ef3b9bc5513448b89e25a128cf8a7d1decea] should solve this problem.

Very soon, Retrospectiva will be using bundler to prevent version conflicts like this one.

Comment

Options