[Handel] Can't find source for Carts

Christopher H. Laco claco at chrislaco.com
Sun Jun 18 18:37:46 CEST 2006


Jan Gerene wrote:
> Op zaterdag 17 juni 2006 15:11, schreef Jan Gerene:
>> Hello,
>>
>> I am relatively new to Catalyst, DBIx and very new to Handel.
>> I used Catalyst::Helper::Handel::Scaffolding to generate the framework
>> using the defaults for everything and a mysql database.
>> When I then start my catalyst test server, I get the following error:
>>
>> Couldn't load "UniBooks::Controller::Checkout",
>> "DBIx::Class::Schema::source(): Can't find source for Carts
>> at /usr/lib/perl5/site_perl/5.8.8/Handel/Storage.pm line 215
>> BEGIN failed--compilation aborted
>> at /usr/lib/perl5/site_perl/5.8.8/Handel/Cart.pm line 28.
>> Compilation failed in require
>> at /usr/lib/perl5/site_perl/5.8.8/Handel/Checkout.pm line 8.
>> BEGIN failed--compilation aborted
>> at /usr/lib/perl5/site_perl/5.8.8/Handel/Checkout.pm line 8.
>> Compilation failed in require
>> at
>> /home/jan/werkmappen/FreeLance/J3/UniBooks/script/../lib/UniBooks/Controlle
>> r/Checkout.pm line 4.
>> BEGIN failed--compilation aborted
>> at
>> /home/jan/werkmappen/FreeLance/J3/UniBooks/script/../lib/UniBooks/Controlle
>> r/Checkout.pm line 4.
>> 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/unibooks_server.pl line 49.
>>
>> Can someone give me a hint ?
>>
>> Regards and thanks,
> 
> I forgot to mention that I am using version 0.99_02 of Handel.
> Sorry about that.

I you're new to Cat, DBIC, and Handel, most certainly don't use 0.99_02.
It's an experimental dev release, and it's Cat helper code is most
certainly still broken. Stick with 0.32. :-)

With that said, 0.32 has issues with 5.6+, and the article on Perl.com
was written when 5.33 was the latest Catalyst.

Todd W supplied the attached patch to the current trunk source
(http://svn.handelframework.com/CPAN/Handel/trunk/) to make all of the
helpers work again.

Get the latest source from there, apply the patch, and install. You will
have to regenerate your helpers code again.

-=Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1160.diff
Type: text/x-diff
Size: 14130 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/handel/attachments/20060618/3c3133b6/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.rawmode.org/pipermail/handel/attachments/20060618/3c3133b6/attachment.pgp 


More information about the Handel mailing list