7789663a7d8647f5a20c585dc177cbd18aace1c3 rails/activesupport/lib/active_support/i18n.rb:1:in `require'': no such file to load -- i18n The vendor i18n code is missing. I assume this relates to lighthouse ticket 3492 or 2871. The vendored i18n files are missing. Installing the i18n gems did not help: i18n (0.3.3) i18n-tools (0.0.6) i18n_label (0.1.0) I commented out the i18n.rb file, and I get the following: rails/actionpack/lib/action_dispatch.rb:29:in `require'': no such file to load -- rack (LoadError) I expect this is a similar issue. Nathan Zook -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Try installing the i18n gem. 2010/1/1 Student <blogger@pierian-spring.net>> 7789663a7d8647f5a20c585dc177cbd18aace1c3 > > rails/activesupport/lib/active_support/i18n.rb:1:in `require'': no such > file to load -- i18n > > The vendor i18n code is missing. I assume this relates to lighthouse > ticket 3492 or 2871. The vendored i18n files are missing. Installing > the i18n gems did not help: > i18n (0.3.3) > i18n-tools (0.0.6) > i18n_label (0.1.0) > > I commented out the i18n.rb file, and I get the following: > > > rails/actionpack/lib/action_dispatch.rb:29:in `require'': no such file > to load -- rack (LoadError) > > I expect this is a similar issue. > > Nathan Zook > > -- > > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com<rubyonrails-core%2Bunsubscribe@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > > >-- Ryan Bigg -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Oops you did, my bad. Maybe it is not including rubygems, therefore not looking for the i18n gem? 2010/1/1 Ryan Bigg <radarlistener@gmail.com>> Try installing the i18n gem. > > 2010/1/1 Student <blogger@pierian-spring.net> > > 7789663a7d8647f5a20c585dc177cbd18aace1c3 >> >> rails/activesupport/lib/active_support/i18n.rb:1:in `require'': no such >> file to load -- i18n >> >> The vendor i18n code is missing. I assume this relates to lighthouse >> ticket 3492 or 2871. The vendored i18n files are missing. Installing >> the i18n gems did not help: >> i18n (0.3.3) >> i18n-tools (0.0.6) >> i18n_label (0.1.0) >> >> I commented out the i18n.rb file, and I get the following: >> >> >> rails/actionpack/lib/action_dispatch.rb:29:in `require'': no such file >> to load -- rack (LoadError) >> >> I expect this is a similar issue. >> >> Nathan Zook >> >> -- >> >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Core" group. >> To post to this group, send email to rubyonrails-core@googlegroups.com. >> To unsubscribe from this group, send email to >> rubyonrails-core+unsubscribe@googlegroups.com<rubyonrails-core%2Bunsubscribe@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-core?hl=en. >> >> >> > > > -- > Ryan Bigg >-- Ryan Bigg -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Mikel Lindsaar
2010-Jan-01 12:28 UTC
Re: Edge Actionpack Test failures: i18n & rack missing
On Fri, Jan 1, 2010 at 4:48 PM, Ryan Bigg <radarlistener@gmail.com> wrote:> Oops you did, my bad. Maybe it is not including rubygems, therefore not > looking for the i18n gem? >I had something like this on a pg dependancy - bad install of the pg gem. Found the handling was to delete the gem and cache versions of pg out of vendor/gems/ and then stand in the top directory and type "gem bundle". It found pg missing and re-fetched it. Mikel -- http://lindsaar.net/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Installing the gems & requiring rubygems fixes these. The next problem is a requirement for rack/test, which I cannot find anywhere: diff --git a/actionpack/lib/action_view/template/handlers/erb.rb b/ actionpack/lib/action_view/template/handlers/erb.rb index 93a4315..eee1760 100644 --- a/actionpack/lib/action_view/template/handlers/erb.rb +++ b/actionpack/lib/action_view/template/handlers/erb.rb @@ -1,6 +1,16 @@ require ''active_support/core_ext/class/attribute_accessors'' require ''active_support/core_ext/string/output_safety'' -require ''erubis'' +begin + require ''erubis'' +rescue LoadError => e + raise e unless e.message == ''no such file to load -- erubis'' + require ''rubygems'' + require ''erubis'' +rescue LoadError => e + raise e unless e.message == ''no such file to load -- erubis'' + $stderr.puts ''!!! erubis gem now required. Please install the erubis gem and try again: sudo gem install erubis.'' + raise e +end module ActionView module Template::Handlers diff --git a/activesupport/lib/active_support/i18n.rb b/activesupport/ lib/active_support/i18n.rb index 854c60e..33c3693 100644 --- a/activesupport/lib/active_support/i18n.rb +++ b/activesupport/lib/active_support/i18n.rb @@ -1,2 +1,13 @@ -require ''i18n'' -I18n.load_path << "#{File.dirname(__FILE__)}/locale/en.yml" \ No newline at end of file +begin + require ''i18n'' +rescue LoadError => e + raise e unless e.message == ''no such file to load -- i18n'' + require ''rubygems'' + require ''i18n'' +rescue LoadError => e + raise e unless e.message == ''no such file to load -- i18n'' + $stderr.puts ''!!! The bundled i18n gem is no longer included. Please install the i18n gem and try again: sudo gem install i18n.'' + raise e +end + +I18n.load_path << "#{File.dirname(__FILE__)}/locale/en.yml" The rake/test requirement is at actionpack/lib/action_dispatch/testing/integration.rb -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Real fix: cd gem ; sudo gem install bundler ; sudo gem bundle 2557 tests, 11752 assertions, 0 failures, 0 errors On Dec 31 2009, 11:13 pm, Student <blog...@pierian-spring.net> wrote:> 7789663a7d8647f5a20c585dc177cbd18aace1c3 > > rails/activesupport/lib/active_support/i18n.rb:1:in `require'': no such > file to load -- i18n > > The vendor i18n code is missing. I assume this relates to lighthouse > ticket 3492 or 2871. The vendored i18n files are missing. Installing > the i18n gems did not help: > i18n (0.3.3) > i18n-tools (0.0.6) > i18n_label (0.1.0) > > I commented out the i18n.rb file, and I get the following: > > rails/actionpack/lib/action_dispatch.rb:29:in `require'': no such file > to load -- rack (LoadError) > > I expect this is a similar issue. > > Nathan Zook-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.