On 06/14/2010 11:27 AM, Jesse Luehrs wrote: > On Mon, Jun 14, 2010 at 11:20:15AM +0200, Emmanuel Quevillon wrote: >> Hi Moose people, >> >> I must confess I'm not really ease with Moose behavior, but I get a >> strange error from it when I start my perl script. >> >> Here it is : >> >> Couldn't load class (BiblioList::Abstract) because: Couldn't load >> class (BiblioList::Root) because: BiblioList::Root already has a >> metaclass, but it does not inherit Moose::Meta::Class >> (Class::MOP::Class=HASH(0x2e79840)). at >> /usr/local/lib/perl/5.10.1/Moose.pm line 166 > > You should include the code that's causing this error; it's not really > possible to figure out what's wrong just from the message. Some > possibilities include a circular dependency between use/extends/etc > statements, or some part of the code accessing the BiblioList::Root > class before it actually gets loaded. > > -doy Hi Jesse, all,
I solved my problem by moving BiblioList::Root to a Moose::Role as it is essentially used to 'throw', 'verbose' etc... Thanks to Jesse for helping me out. Cheers guys -- ------------------------- Emmanuel Quevillon Biological Software and Databases Group Institut Pasteur +33 1 44 38 95 98 tuco at_ pasteur dot fr -------------------------