I've had similar problems. I think the etl library is using rails
from gems while your models are using vendor/rails. I ended up not
using the etl from within edge rails and just redefining my models in
my etl file. Super hack job. If you figure out how to fix it
properly, please share.
- Brandon
On Nov 27, 2007, at 14:44, Blake Mizerany wrote:
> Hi everyone,
> I'm currently working with the AW etl with Rails 2.0 rc1 frozen to
> vendor/rails. My etl scripts are:
>
> blake:~/Sites/metrics/etl blake$ find .
> .
> ./database.yml
> ./log_parser.rb
> ./update_logs.ctl
> ./updates_apache_log_parser.rb
>
> when I run:
>
> etl update_logs.ctl
>
> I get:
>
> blake:~/Sites/metrics/etl blake$ etl update_logs.ctl
> Using AdapterExtensions
> Starting ETL process
> initializing ETL engine
> Processing update_logs.ctl
> /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/
> active_support/dependencies.rb:263:in
> `load_missing_constant': uninitialized constant
> ActionView::Helpers::BasicObject (NameError)
> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/
> lib/active_support/dependencies.rb:452:in
> `const_missing'
> from
> /Users/blake/Sites/metrics/vendor/rails/actionpack/lib/action_view/
> helpers/prototype_helper.rb:816
> from
> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require'
> from
> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/
> lib/active_support/dependencies.rb:495:in
> `require'
> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/
> lib/active_support/dependencies.rb:342:in
> `new_constants_in'
> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/
> lib/active_support/dependencies.rb:495:in
> `require'
> from
> /Users/blake/Sites/metrics/vendor/rails/actionpack/lib/action_view/
> helpers/javascript_helper.rb:2
> ... 61 levels...
> from /opt/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/
> lib/active_support/dependencies.rb:495:in
> `require'
> from /opt/local/lib/ruby/gems/1.8/gems/activewarehouse-
> etl-0.9.0
> /bin/etl:28
> from /opt/local/bin/etl:16:in `load'
> from /opt/local/bin/etl:16
>
> My ctl files looks like:
>
> $:.unshift(File.dirname(__FILE__))
> require File.dirname(__FILE__) + '/../config/environment'
>
>
> require File.dirname(__FILE__) + '/updates_apache_log_parser'
>
> source :in, {
> :file => '',
> :parser => :updates_apache_log_parser
> },
> {}
>
> destination :out, {
> :file => 'updates.txt',
> :separator => "\t"
> },
> {
> :order => [:date_id, :uid]
> }
>
> post_process :bulk_import, {
> :file => 'updates.txt',
> :truncate => true,
> :columns => [:date_id, :uid],
> :target => {
> :adapter => 'mysql',
> :database => 'updates_development',
> :table => 'update_facts'
> }
> }
>
>
> I'm givin 'er all I got and can't seem to get this working. Any
> ideas?
>
> --
> _______________________________________________
> Activewarehouse-discuss mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/activewarehouse-discuss
_______________________________________________
Activewarehouse-discuss mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/activewarehouse-discuss