One of the plugins I use is Workling. It throws the following error when I try to run it under 2.3: /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/ dependencies.rb:443:in `load_missing_constant'': uninitialized constant MemCache (NameError) The offending line is: @@memcache_client_class ||= ::MemCache I don''t know a lot about memcache, so I''m not sure what changed with 2.3 that could cause the error. Anyone have some ideas? Thanks! Tom --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I''m not sure why this happens, BUT in rails 2.3.2 you have to wrap your Workling loader a after_init like so: config.after_initialize do Workling::Remote.dispatcher Workling::Remote::Runners::StarlingRunner.new end On Mar 20, 6:42 am, TomRossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote:> One of the plugins I use is Workling. It throws the following error > when I try to run it under 2.3: > > /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/ > dependencies.rb:443:in `load_missing_constant'': uninitialized constantMemCache(NameError) > > The offending line is: > > @@memcache_client_class ||= ::MemCache > > I don''t know a lot aboutmemcache, so I''m not sure what changed with > 2.3 that could cause the error. Anyone have some ideas? > > Thanks! > Tom--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I''m having the same issue as Tom, but I''m not using Starling. I''m using spawn. I don''t have anything in an initializer to wrap in a after_initialize. Any ideas how to get workling to work in 2.3? Steve On Apr 7, 7:14 pm, Freddy Andersen <fre...-RCI/mp9mI1I6GGFevw1D/A@public.gmane.org> wrote:> I''m not sure why this happens, BUT in rails 2.3.2 you have to wrap > your Workling loader a after_init like so: > > config.after_initialize do > Workling::Remote.dispatcher > Workling::Remote::Runners::StarlingRunner.new > end > > On Mar 20, 6:42 am, TomRossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote: > > > One of the plugins I use is Workling. It throws the following error > > when I try to run it under 2.3: > > > /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/ > > dependencies.rb:443:in `load_missing_constant'': uninitialized constantMemCache(NameError) > > > The offending line is: > > > @@memcache_client_class ||= ::MemCache > > > I don''t know a lot aboutmemcache, so I''m not sure what changed with > > 2.3 that could cause the error. Anyone have some ideas? > > > Thanks! > > Tom--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Steve, Try throwing require ''memcache'' in your environment.rb? I think that is how I finally got around it... Thanks, Tom On Apr 7, 11:19 pm, Steve Odom <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m having the same issue as Tom, but I''m not using Starling. I''m > using spawn. I don''t have anything in an initializer to wrap in a > after_initialize. > > Any ideas how to get workling to work in 2.3? > > Steve > > On Apr 7, 7:14 pm, Freddy Andersen <fre...-RCI/mp9mI1I6GGFevw1D/A@public.gmane.org> wrote: > > > I''m not sure why this happens, BUT in rails 2.3.2 you have to wrap > > your Workling loader a after_init like so: > > > config.after_initialize do > > Workling::Remote.dispatcher > > Workling::Remote::Runners::StarlingRunner.new > > end > > > On Mar 20, 6:42 am, TomRossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote: > > > > One of the plugins I use is Workling. It throws the following error > > > when I try to run it under 2.3: > > > > /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/ > > > dependencies.rb:443:in `load_missing_constant'': uninitialized constantMemCache(NameError) > > > > The offending line is: > > > > @@memcache_client_class ||= ::MemCache > > > > I don''t know a lot aboutmemcache, so I''m not sure what changed with > > > 2.3 that could cause the error. Anyone have some ideas? > > > > Thanks! > > > Tom--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks Tom. The crappy part is I''m not using memcache for anything at the moment. Steve On Apr 8, 7:31 am, tomrossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote:> Steve, > > Try throwing require ''memcache'' in your environment.rb? I think that > is how I finally got around it... > > Thanks, > Tom > > On Apr 7, 11:19 pm, Steve Odom <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I''m having the same issue as Tom, but I''m not using Starling. I''m > > using spawn. I don''t have anything in an initializer to wrap in a > > after_initialize. > > > Any ideas how to get workling to work in 2.3? > > > Steve > > > On Apr 7, 7:14 pm, Freddy Andersen <fre...-RCI/mp9mI1I6GGFevw1D/A@public.gmane.org> wrote: > > > > I''m not sure why this happens, BUT in rails 2.3.2 you have to wrap > > > your Workling loader a after_init like so: > > > > config.after_initialize do > > > Workling::Remote.dispatcher > > > Workling::Remote::Runners::StarlingRunner.new > > > end > > > > On Mar 20, 6:42 am, TomRossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote: > > > > > One of the plugins I use is Workling. It throws the following error > > > > when I try to run it under 2.3: > > > > > /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/ > > > > dependencies.rb:443:in `load_missing_constant'': uninitialized constantMemCache(NameError) > > > > > The offending line is: > > > > > @@memcache_client_class ||= ::MemCache > > > > > I don''t know a lot aboutmemcache, so I''m not sure what changed with > > > > 2.3 that could cause the error. Anyone have some ideas? > > > > > Thanks! > > > > Tom--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ugh. But did it solve the problem? On Apr 8, 9:59 am, Steve Odom <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thanks Tom. The crappy part is I''m not using memcache for anything at > the moment. > > Steve > > On Apr 8, 7:31 am, tomrossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote: > > > Steve, > > > Try throwing require ''memcache'' in your environment.rb? I think that > > is how I finally got around it... > > > Thanks, > > Tom > > > On Apr 7, 11:19 pm, Steve Odom <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > I''m having the same issue as Tom, but I''m not using Starling. I''m > > > using spawn. I don''t have anything in an initializer to wrap in a > > > after_initialize. > > > > Any ideas how to get workling to work in 2.3? > > > > Steve > > > > On Apr 7, 7:14 pm, Freddy Andersen <fre...-RCI/mp9mI1I6GGFevw1D/A@public.gmane.org> wrote: > > > > > I''m not sure why this happens, BUT in rails 2.3.2 you have to wrap > > > > your Workling loader a after_init like so: > > > > > config.after_initialize do > > > > Workling::Remote.dispatcher > > > > Workling::Remote::Runners::StarlingRunner.new > > > > end > > > > > On Mar 20, 6:42 am, TomRossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote: > > > > > > One of the plugins I use is Workling. It throws the following error > > > > > when I try to run it under 2.3: > > > > > > /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/ > > > > > dependencies.rb:443:in `load_missing_constant'': uninitialized constantMemCache(NameError) > > > > > > The offending line is: > > > > > > @@memcache_client_class ||= ::MemCache > > > > > > I don''t know a lot aboutmemcache, so I''m not sure what changed with > > > > > 2.3 that could cause the error. Anyone have some ideas? > > > > > > Thanks! > > > > > Tom--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Unfortunately it didn''t solve the problem. I guess I could switch over to starling and that might solve it. On Apr 8, 9:16 am, tomrossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote:> Ugh. But did it solve the problem? > > On Apr 8, 9:59 am, Steve Odom <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Thanks Tom. The crappy part is I''m not using memcache for anything at > > the moment. > > > Steve > > > On Apr 8, 7:31 am, tomrossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote: > > > > Steve, > > > > Try throwing require ''memcache'' in your environment.rb? I think that > > > is how I finally got around it... > > > > Thanks, > > > Tom > > > > On Apr 7, 11:19 pm, Steve Odom <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > I''m having the same issue as Tom, but I''m not using Starling. I''m > > > > using spawn. I don''t have anything in an initializer to wrap in a > > > > after_initialize. > > > > > Any ideas how to get workling to work in 2.3? > > > > > Steve > > > > > On Apr 7, 7:14 pm, Freddy Andersen <fre...-RCI/mp9mI1I6GGFevw1D/A@public.gmane.org> wrote: > > > > > > I''m not sure why this happens, BUT in rails 2.3.2 you have to wrap > > > > > your Workling loader a after_init like so: > > > > > > config.after_initialize do > > > > > Workling::Remote.dispatcher > > > > > Workling::Remote::Runners::StarlingRunner.new > > > > > end > > > > > > On Mar 20, 6:42 am, TomRossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote: > > > > > > > One of the plugins I use is Workling. It throws the following error > > > > > > when I try to run it under 2.3: > > > > > > > /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/ > > > > > > dependencies.rb:443:in `load_missing_constant'': uninitialized constantMemCache(NameError) > > > > > > > The offending line is: > > > > > > > @@memcache_client_class ||= ::MemCache > > > > > > > I don''t know a lot aboutmemcache, so I''m not sure what changed with > > > > > > 2.3 that could cause the error. Anyone have some ideas? > > > > > > > Thanks! > > > > > > Tom--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Steve, I put a debugger statement in the plugin to figure out the problem. The error is definitely telling you that memcache hasn''t been loaded. You may need to move that require ''memcache'' statement around to make sure it is loading. Let me know what you find... Thanks, Tom On Apr 9, 9:18 am, Steve Odom <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Unfortunately it didn''t solve the problem. I guess I could switch over > to starling and that might solve it. > > On Apr 8, 9:16 am, tomrossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote: > > > Ugh. But did it solve the problem? > > > On Apr 8, 9:59 am, Steve Odom <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Thanks Tom. The crappy part is I''m not using memcache for anything at > > > the moment. > > > > Steve > > > > On Apr 8, 7:31 am, tomrossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote: > > > > > Steve, > > > > > Try throwing require ''memcache'' in your environment.rb? I think that > > > > is how I finally got around it... > > > > > Thanks, > > > > Tom > > > > > On Apr 7, 11:19 pm, Steve Odom <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > I''m having the same issue as Tom, but I''m not using Starling. I''m > > > > > using spawn. I don''t have anything in an initializer to wrap in a > > > > > after_initialize. > > > > > > Any ideas how to get workling to work in 2.3? > > > > > > Steve > > > > > > On Apr 7, 7:14 pm, Freddy Andersen <fre...-RCI/mp9mI1I6GGFevw1D/A@public.gmane.org> wrote: > > > > > > > I''m not sure why this happens, BUT in rails 2.3.2 you have to wrap > > > > > > your Workling loader a after_init like so: > > > > > > > config.after_initialize do > > > > > > Workling::Remote.dispatcher > > > > > > Workling::Remote::Runners::StarlingRunner.new > > > > > > end > > > > > > > On Mar 20, 6:42 am, TomRossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote: > > > > > > > > One of the plugins I use is Workling. It throws the following error > > > > > > > when I try to run it under 2.3: > > > > > > > > /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/ > > > > > > > dependencies.rb:443:in `load_missing_constant'': uninitialized constantMemCache(NameError) > > > > > > > > The offending line is: > > > > > > > > @@memcache_client_class ||= ::MemCache > > > > > > > > I don''t know a lot aboutmemcache, so I''m not sure what changed with > > > > > > > 2.3 that could cause the error. Anyone have some ideas? > > > > > > > > Thanks! > > > > > > > Tom--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi guys, I got the same problem this morning. workling throws memcache error on 2.3 Found out that after_init solution works. And if you are using workling + spawner, these lines work fine with me config.after_initialize do Workling::Remote::Runners::SpawnRunner.options = { :method => :spawn } Workling::Remote.dispatcher Workling::Remote::Runners::SpawnRunner.new end Cheers! On Apr 9, 10:09 pm, tomrossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote:> Steve, > > I put a debugger statement in the plugin to figure out the problem. > The error is definitely telling you that memcache hasn''t been loaded. > You may need to move that require ''memcache'' statement around to make > sure it is loading. Let me know what you find... > > Thanks, > Tom > > On Apr 9, 9:18 am, Steve Odom <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Unfortunately it didn''t solve the problem. I guess I could switch over > > to starling and that might solve it. > > > On Apr 8, 9:16 am, tomrossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote: > > > > Ugh. But did it solve the problem? > > > > On Apr 8, 9:59 am, Steve Odom <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Thanks Tom. The crappy part is I''m not using memcache for anything at > > > > the moment. > > > > > Steve > > > > > On Apr 8, 7:31 am, tomrossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote: > > > > > > Steve, > > > > > > Try throwing require ''memcache'' in your environment.rb? I think that > > > > > is how I finally got around it... > > > > > > Thanks, > > > > > Tom > > > > > > On Apr 7, 11:19 pm, Steve Odom <steve.o...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > I''m having the same issue as Tom, but I''m not using Starling. I''m > > > > > > using spawn. I don''t have anything in an initializer to wrap in a > > > > > > after_initialize. > > > > > > > Any ideas how to get workling to work in 2.3? > > > > > > > Steve > > > > > > > On Apr 7, 7:14 pm, Freddy Andersen <fre...-RCI/mp9mI1I6GGFevw1D/A@public.gmane.org> wrote: > > > > > > > > I''m not sure why this happens, BUT in rails 2.3.2 you have to wrap > > > > > > > your Workling loader a after_init like so: > > > > > > > > config.after_initialize do > > > > > > > Workling::Remote.dispatcher > > > > > > > Workling::Remote::Runners::StarlingRunner.new > > > > > > > end > > > > > > > > On Mar 20, 6:42 am, TomRossi7 <t...-5bxIUPmzHicFraO2wh7vUA@public.gmane.org> wrote: > > > > > > > > > One of the plugins I use is Workling. It throws the following error > > > > > > > > when I try to run it under 2.3: > > > > > > > > > /Library/Ruby/Gems/1.8/gems/activesupport-2.3.2/lib/active_support/ > > > > > > > > dependencies.rb:443:in `load_missing_constant'': uninitialized constantMemCache(NameError) > > > > > > > > > The offending line is: > > > > > > > > > @@memcache_client_class ||= ::MemCache > > > > > > > > > I don''t know a lot aboutmemcache, so I''m not sure what changed with > > > > > > > > 2.3 that could cause the error. Anyone have some ideas? > > > > > > > > > Thanks! > > > > > > > > Tom
I was having the same problem. I use NotRemoteRunner in dev mode and StarlingRunner in production right now. I found that putting the following code in development.rb solved my problem: config.after_initialize do Workling::Remote.dispatcher = Workling::Remote::Runners::NotRemoteRunner.new end Thanks! -ajg- Freddy Andersen wrote:> I''m not sure why this happens, BUT in rails 2.3.2 you have to wrap > your Workling loader a after_init like so: > > config.after_initialize do > Workling::Remote.dispatcher > Workling::Remote::Runners::StarlingRunner.new > end-- Posted via http://www.ruby-forum.com/.