[Catalyst] Can't infer join condition

Chisel Wright chisel at herlpacker.co.uk
Mon Jan 16 15:14:37 CET 2006


On Mon, Jan 16, 2006 at 12:23:36PM +0000, Chisel Wright wrote:
> Does anyone know what might cause the following error?
> 
> ---- cut here ----
> chisel at zombie parley $ ./script/parley_server.pl -r
> Too late to run INIT block at /usr/lib/perl5/vendor_perl/5.8.7/Class/C3.pm line 52.
> Couldn't load "Parley::Model::ParleyDB::Person", "Can't infer join condition for authentication on Parley::Model::ParleyDB::Person; Parley::Model::ParleyDB::Authentication has no primary keys at /usr/lib/perl5/vendor_perl/5.8.7/Module/Pluggable/Fast.pm line 82
> Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.7/Module/Pluggable/Fast.pm line 82.
> " at /usr/lib/perl5/vendor_perl/5.8.7/Module/Pluggable/Fast.pm line 84.
> Compilation failed in require at ./script/parley_server.pl line 49.
> chisel at zombie parley $
> ---- cut here ----

Responding to myself in case anyone else hits this.

It dawned on me that it wasn't finding columns in my tables, so I
thought I'd check the Pg loader using my bash function:

 chisel at zombie parley $ perlversion  DBIx::Class::Loader::Pg
 Can't locate Lingua/EN/Inflect.pm in @INC

So, I installed Lingua::EN::Inflect and DBIx::Class::Loader::Pg was much
happier when it was used.

What dark magic prevented the actual "oh s**t, can't load
DBIx::Class::Loader::Pg" error message from being displayed?

Chisel
-- 
Chisel Wright
e: chisel at herlpacker.co.uk
w: http://www.herlpacker.co.uk/

This is not an automated signature. I type this in to the bottom of every
message. 



More information about the Catalyst mailing list