On Tue, Jun 15, 2010 at 03:54:01PM -0700, I. E. Smith-Heisters wrote: > > Upgrading from 2.1.9, I get these errors trying to create an engine, > after I already initialized an engine: > > -- > /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/ruote/ > worker.rb:132:in `step': undefined method `utc' for "now":String > (NoMethodError) > from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/ruote-2.1.10/lib/ > ruote/worker.rb:70:in `run'
Hello Ian, this is line 132 of the ruote worker : http://github.com/jmettraux/ruote/blob/ruote2.1/lib/ruote/worker.rb#L132 The error message indicates that Time.now returns "now" (the String) in your system/install. The String class doesn't have (out of the box) the method 'utc'. With the same ruby / gemset, what does this yield in irb : p Time.now for you ? Are you using some library re-openening Time and changing its 'now' method ? > trying to debug it in the console, my first engine works: > > -- > Ruote::StorageParticipant.new(engine).size # => 10 > -- > > but when I try to create a second worker, it fails again: > > -- > > ruby-1.8.7-p249 > hs = Ruote::HashStorage.new('s_logger' => ['ruote/ > log/test_logger', 'Ruote::TestLogger']) > => #<Ruote::HashStorage:0xb6edfe34 @mon_waiting_queue=[], > @h={"variables"=>{}, "errors"=>{}, "workitems"=>{}, "msgs"=>{}, > "schedules"=>{}, "configurations"=>{"engine"=>{"_rev"=>0, > "put_at"=>"2010-06-15 22:51:02.289941 UTC", "_id"=>"engine", > "type"=>"configurations", "s_logger"=>["ruote/log/test_logger", > "Ruote::TestLogger"]}}, "expressions"=>{}}, @mon_entering_queue=[], > @mon_count=0, @mon_owner=nil> > ruby-1.8.7-p249 > w = Ruote::Worker.new(hs) > NameError: uninitialized constant Rufus::TreeChecker::RubyParser > from /home/ian/.rvm/gems/ruby-1.8.7-p249/gems/rufus- > treechecker-1.0.3/lib/rufus/treechecker.rb:545:in `parse' Is the gem 'ruby_parser' present in that environment ? The message seems to say it's missing. Best regards, -- John Mettraux - http://jmettraux.wordpress.com -- you received this message because you are subscribed to the "ruote users" group. to post : send email to [email protected] to unsubscribe : send email to [email protected] more options : http://groups.google.com/group/openwferu-users?hl=en
