Hello,<br><br>I get them same test errors when trying to install Catalyst::Controller::DBIC::API with the latest versions of Moose and dependencies, etc.<br><br>-L<br><blockquote class="gmail_quote"></blockquote><div class="gmail_quote">
On Tue, Dec 21, 2010 at 2:01 AM, Seth Daniel <span dir="ltr"><<a href="mailto:catalyst@sethdaniel.org">catalyst@sethdaniel.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
I am attempting to use Catalyst::Controller::DBIC::API. When I use the<br>
prefetch_allow configuration option my Catalyst server fails to start. I then<br>
noticed that the C::C::DBIC::API tests have the same issue.<br>
<br>
Here is the test failure I am seeing (version 2.002003):<br>
<br>
t/rest/create.t ............. Couldn't instantiate component "RestTest::Controller::API::RPC::CD", "Attribute (prefetch_validator_class) does not pass the type constraint because: Validation failed for '__ANON__' with value undef at /opt/perl/5.10/lib/site_perl/5.10.1/x86_64-linux-thread-multi/Moose/Meta/Method/Delegation.pm line 90<br>
Catalyst::Controller::DBIC::API::create_prefetch_validator('RestTest::Controller::API::RPC::CD=HASH(0x638d240)') called at /opt/perl/5.10/lib/site_perl/5.10.1/MooseX/Role/BuildInstanceOf.pm line 157<br>
Moose::Meta::Role::__ANON__::SERIAL::3::_build_prefetch_validator('RestTest::Controller::API::RPC::CD=HASH(0x638d240)') called at generated method (unknown origin) line 0<br>
Catalyst::Controller::DBIC::API::prefetch_validator('RestTest::Controller::API::RPC::CD=HASH(0x638d240)') called at /home/sdaniel/src/trunk/build_tools/rpm/BUILD/Catalyst-Controller-DBIC-API-2.002003/blib/lib/Catalyst/Controller/DBIC/API/RequestArguments.pm line 168<br>
Catalyst::Controller::DBIC::API::RequestArguments::_check_rel('RestTest::Controller::API::RPC::CD=HASH(0x638d240)', 'tracks', 1) called at /home/sdaniel/src/trunk/build_tools/rpm/BUILD/Catalyst-Controller-DBIC-API-2.002003/blib/lib/Catalyst/Controller/DBIC/API/RequestArguments.pm line 154<br>
Catalyst::Controller::DBIC::API::RequestArguments::_check_rel('RestTest::Controller::API::RPC::CD=HASH(0x638d240)', 'ARRAY(0x5430aa0)', 1) called at /home/sdaniel/src/trunk/build_tools/rpm/BUILD/Catalyst-Controller-DBIC-API-2.002003/blib/lib/Catalyst/Controller/DBIC/API/RequestArguments.pm line 174<br>
Catalyst::Controller::DBIC::API::RequestArguments::__ANON__('RestTest::Controller::API::RPC::CD=HASH(0x638d240)', 'ARRAY(0x5430a88)') called at /opt/perl/5.10/lib/site_perl/5.10.1/x86_64-linux-thread-multi/Moose/Meta/Class.pm line 255<br>
Moose::Meta::Class::new_object('Class::MOP::Class::__ANON__::SERIAL::5=HASH(0x55819b8)', 'HASH(0x6394578)') called at /opt/perl/5.10/lib/site_perl/5.10.1/x86_64-linux-thread-multi/Moose/Object.pm line 25<br>
Moose::Object::new('RestTest::Controller::API::RPC::CD', 'RestTest', 'HASH(0x638d120)') called at generated method (unknown origin) line 3<br>
Catalyst::Controller::new('RestTest::Controller::API::RPC::CD', 'RestTest', 'HASH(0x638d120)') called at /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst/Component.pm line 110<br>
Catalyst::Component::COMPONENT('RestTest::Controller::API::RPC::CD', 'RestTest', 'HASH(0x638d120)') called at /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst.pm line 2515<br>
eval {...} called at /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst.pm line 2515<br>
Catalyst::setup_component('RestTest', 'RestTest::Controller::API::RPC::CD') called at /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst.pm line 2442<br>
Catalyst::setup_components('RestTest') called at /opt/perl/5.10/lib/site_perl/5.10.1/Catalyst.pm line 1171<br>
Catalyst::setup('RestTest') called at t/lib/RestTest.pm line 32<br>
require RestTest.pm called at t/rest/create.t line 10<br>
main::BEGIN() called at t/lib/RestTest.pm line 0<br>
eval {...} called at t/lib/RestTest.pm line 0"Compilation failed in require at t/rest/create.t line 10.<br>
BEGIN failed--compilation aborted at t/rest/create.t line 10.<br>
<br>
<br>
<br>
Does anyone know what is going on? I'm still working through it. It's using<br>
a number of Moose modules I am unfamiliar with so it is taking some time.<br>
<br>
My initial thought is that I have a too old / too new version of some module,<br>
but I have no idea what that module could be. During installation the build<br>
process didn't complain about missing or out-dated modules.<br>
<font color="#888888"><br>
--<br>
seth /\ <a href="http://sethdaniel.org" target="_blank">sethdaniel.org</a><br>
<br>
_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
</font></blockquote></div><br>