Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

Inconsistent hierarchy....

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


maillists at aspiretools

Aug 17, 2009, 8:48 AM

Post #1 of 7 (1498 views)
Permalink
Inconsistent hierarchy....

i have a working application which i'm installing on a fresh box, with a
fresh build of everything. But i've run into this:

Couldn't instantiate component "threesixty::Model::CDBI", "Inconsistent
hierarchy during C3 merge of class 'Class::DBI::__::Base':
current merge results [
Class::DBI::__::Base,
Class::Accessor,
]
merging failed on 'Class::Data::Inheritable' at
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Class/C3/XS.pm line
53."Compilation failed in require at ./script/threesixty_server.pl line 49.


I've read all the bits and pieces on FastMmap, about using only
Plugin::Authentication - checked all that. But i'm still banging my head
against the wall.

Infact i can't even start up the Tutorial.pm server either...so there is
something about my underlying installation which is really troubling
catalyst. Class::DBI seems to be the problem, but i dunno.

(actually, when i say that i mean if i add a simple "use base
'Catalyst::Model::CDBI'" into Model/CDBI.pm in Tutorial, then it bails).

So it seems adding a simple Model::CDBI trashes my app now...

Any thoughts greatly appreciated!
--
View this message in context: http://www.nabble.com/Inconsistent-hierarchy....-tp25008810p25008810.html
Sent from the Catalyst Web Framework mailing list archive at Nabble.com.


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


jshirley at gmail

Aug 17, 2009, 9:07 AM

Post #2 of 7 (1406 views)
Permalink
Re: Inconsistent hierarchy.... [In reply to]

On Mon, Aug 17, 2009 at 8:48 AM, mrchips <maillists [at] aspiretools>wrote:

>
> Infact i can't even start up the Tutorial.pm server either...so there is
> something about my underlying installation which is really troubling
> catalyst. Class::DBI seems to be the problem, but i dunno.
>
> (actually, when i say that i mean if i add a simple "use base
> 'Catalyst::Model::CDBI'" into Model/CDBI.pm in Tutorial, then it bails).
>
> So it seems adding a simple Model::CDBI trashes my app now...
>

Which tutorial are you following, exactly? The Catalyst::Manual::Tutorial
is using DBIx::Class and I've yet to see any Catalyst tutorial that uses
Class::DBI.

-J


maillists at aspiretools

Aug 17, 2009, 12:30 PM

Post #3 of 7 (1402 views)
Permalink
Re: Inconsistent hierarchy.... [In reply to]

>Which tutorial are you following, exactly? The Catalyst::Manual::Tutorial
>is using DBIx::Class and I've yet to see any Catalyst tutorial that uses
>Class::DBI.

sorry, i'm not following any tutorial. I just meant that one of the
downloadable tutorial projects (which doesn't do much beyond a bit of 'Hello
World'), even that wont start with Class::DBI on my system...even though it
doesn't do any DB access. I was just describing that CDBI wont start up in
any application i try on my system, however small or complext it is.

I have a relatively vanilla install Centos 5.3, and i installed catalyst
through CPAN, as per:
perl -MCPAN -e 'install Task::Catalyst'



--
View this message in context: http://www.nabble.com/Inconsistent-hierarchy....-tp25008810p25012754.html
Sent from the Catalyst Web Framework mailing list archive at Nabble.com.


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


jshirley at gmail

Aug 17, 2009, 12:49 PM

Post #4 of 7 (1403 views)
Permalink
Re: Inconsistent hierarchy.... [In reply to]

On Mon, Aug 17, 2009 at 12:30 PM, mrchips <maillists [at] aspiretools>wrote:

>
>
> >Which tutorial are you following, exactly? The Catalyst::Manual::Tutorial
> >is using DBIx::Class and I've yet to see any Catalyst tutorial that uses
> >Class::DBI.
>
> sorry, i'm not following any tutorial. I just meant that one of the
> downloadable tutorial projects (which doesn't do much beyond a bit of
> 'Hello
> World'), even that wont start with Class::DBI on my system...even though it
> doesn't do any DB access. I was just describing that CDBI wont start up in
> any application i try on my system, however small or complext it is.
>
> I have a relatively vanilla install Centos 5.3, and i installed catalyst
> through CPAN, as per:
> perl -MCPAN -e 'install Task::Catalyst'
>
>
>
>
Few people use Class::DBI as their ORM these days, especially on conjunction
with Catalyst. It is highly likely you're going to debug this on your own
(and please submit a patch).

I would highly recommend using DBIx::Class, though. It has a CDBI
compatibility layer, as well.

That's what most people who use an ORM with Catalyst choose, for many
reasons.

-J


maillists at aspiretools

Aug 18, 2009, 3:59 AM

Post #5 of 7 (1381 views)
Permalink
Re: Inconsistent hierarchy.... [In reply to]

>Few people use Class::DBI as their ORM these days, especially on
conjunction
>with Catalyst. It is highly likely you're going to debug this on your own
>(and please submit a patch).

>I would highly recommend using DBIx::Class, though. It has a CDBI
>compatibility layer, as well.

>That's what most people who use an ORM with Catalyst choose, for many
>reasons.


Lucky me :)
I downgraded to 5.7015 and everything is fine (no surprise there)..so it
seems CDBI just doesn't work with 5.8


--
View this message in context: http://www.nabble.com/Inconsistent-hierarchy....-tp25008810p25022582.html
Sent from the Catalyst Web Framework mailing list archive at Nabble.com.


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


moseley at hank

Aug 18, 2009, 7:19 AM

Post #6 of 7 (1377 views)
Permalink
Re: Inconsistent hierarchy.... [In reply to]

On Tue, Aug 18, 2009 at 3:59 AM, mrchips <maillists [at] aspiretools>wrote:

>
>
> Lucky me :)
> I downgraded to 5.7015 and everything is fine (no surprise there)..so it
> seems CDBI just doesn't work with 5.8


I have two old application using CDBI and they run fine with Catalyst 5.8.
I had the standard NEXT warnings, but that was easy to suppress.

I'm very impressed what a good job the Cat developers did making the 5.8
move smooth.


--
Bill Moseley
moseley [at] hank


dhutty at allgoodbits

Aug 19, 2009, 9:43 AM

Post #7 of 7 (1349 views)
Permalink
Re: Inconsistent hierarchy.... [In reply to]

mrchips wrote:
> i have a working application which i'm installing on a fresh box, with a
> fresh build of everything. But i've run into this:
>
> Couldn't instantiate component "threesixty::Model::CDBI", "Inconsistent
> hierarchy during C3 merge of class 'Class::DBI::__::Base':
> current merge results [
> Class::DBI::__::Base,
> Class::Accessor,
> ]
> merging failed on 'Class::Data::Inheritable' at
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Class/C3/XS.pm line
> 53."Compilation failed in require at ./script/threesixty_server.pl line 49.

I have a similar situation with Catalyst::Controller:FormBuilder on a
CentOS 5.3 box using my own perl5.10 with Catalyst 5.8007 from
Task::Catalyst.

Inconsistent hierarchy during C3 merge of class
'MyApp::Controller::Articles': merging failed on parent
'Catalyst::Controller' at /usr/local/lib/perl5/5.10.0/mro.pm line 23.

I can recreate this from scratch with:
catalyst.pl MyApp
myapp_create.pl controller Articles
and adding use base 'Catalyst::Controller::FormBuilder'; to
MyApp/Controller/Articles.pm as suggested in the synopsis of the
C::C::FormBuilder docs.

Is there something I'm misunderstanding about how to use this? Or have I
run across a problem?

--
Duncan Hutty

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.