FAQ
Hi,

I installed the last Catalyst::Controller::DBIC::API::REST from CPAN
but when I try to use it, the same shows the warning below.
I update all my Moose and MooseX modules but seems not work too.
How to solve this?


Below, the warnings:

stratus@gargamel:/tmp$ echo "use
Catalyst::Controller::DBIC::API::REST" > test.pl
stratus@gargamel:/tmp$ perl -c test.pl
You cannot coerce an attribute (target) unless its type (Str) has a
coercion at /usr/local/lib/perl/5.10.1/Moose/Meta/Attribute.pm line
310
Moose::Meta::Attribute::_process_options('MooseX::Role::Parameterized::Meta::Parameter',
'target', 'HASH(0x1cb12c8)') called at
/usr/local/share/perl/5.10.1/MooseX/Role/Parameterized/Meta/Parameter.pm
line 19
Class::MOP::Class:::around('CODE(0x1d31048)',
'MooseX::Role::Parameterized::Meta::Parameter', 'target',
'HASH(0x1cb12c8)') called at
/usr/local/lib/perl/5.10.1/Class/MOP/Method/Wrapped.pm line 159
Class::MOP::Method::Wrapped::__ANON__('MooseX::Role::Parameterized::Meta::Parameter',
'target', 'HASH(0x1cb12c8)') called at
/usr/local/lib/perl/5.10.1/Class/MOP/Method/Wrapped.pm line 89
MooseX::Role::Parameterized::Meta::Parameter::_process_options('MooseX::Role::Parameterized::Meta::Parameter',
'target', 'HASH(0x1cb12c8)') called at
/usr/local/lib/perl/5.10.1/Moose/Meta/Attribute.pm line 53
Moose::Meta::Attribute::new('MooseX::Role::Parameterized::Meta::Parameter',
'target', 'coerce', 1, 'required', 1, 'isa', 'Str', 'is', ...) called
at /usr/local/lib/perl/5.10.1/Moose/Meta/Attribute.pm line 79
Moose::Meta::Attribute::interpolate_class_and_new('MooseX::Role::Parameterized::Meta::Parameter',
'target', 'isa', 'Str', 'is', 'ro', 'required', 1, 'coerce', ...)
called at /usr/local/lib/perl/5.10.1/Moose/Meta/Class.pm line 638
Moose::Meta::Class::_process_new_attribute('Moose::Meta::Class=HASH(0x2907560)',
'target', 'isa', 'Str', 'is', 'ro', 'required', 1, 'coerce', ...)
called at /usr/local/lib/perl/5.10.1/Moose/Meta/Class.pm line 631
Moose::Meta::Class::_process_attribute('Moose::Meta::Class=HASH(0x2907560)',
'target', 'isa', 'Str', 'is', 'ro', 'required', 1, 'coerce', ...)
called at /usr/local/lib/perl/5.10.1/Moose/Meta/Class.pm line 300
Moose::Meta::Class::add_attribute('Moose::Meta::Class=HASH(0x2907560)',
'target', 'isa', 'Str', 'is', 'ro', 'required', 1, 'coerce', ...)
called at /usr/local/share/perl/5.10.1/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm
line 55
MooseX::Role::Parameterized::Meta::Role::Parameterizable::add_parameter('MooseX::Role::Parameterized::Meta::Role::Parameterizable=HASH...',
'target', 'isa', 'Str', 'is', 'ro', 'required', 1, 'coerce', ...)
called at /usr/local/share/perl/5.10.1/MooseX/Role/Parameterized.pm
line 34
MooseX::Role::Parameterized::parameter('MooseX::Role::BuildInstanceOf',
'target', 'isa', 'Str', 'is', 'ro', 'required', 1, 'coerce', ...)
called at /usr/local/lib/perl/5.10.1/Moose/Exporter.pm line 273
MooseX::Role::Parameterized::parameter('target', 'isa', 'Str',
'is', 'ro', 'required', 1, 'coerce', 1, ...) called at
/usr/local/share/perl/5.10.1/MooseX/Role/BuildInstanceOf.pm line 7
require MooseX/Role/BuildInstanceOf.pm called at
/usr/local/lib/perl/5.10.1/Class/MOP.pm line 114
Class::MOP::__ANON__() called at
/usr/local/share/perl/5.10.1/Try/Tiny.pm line 71
eval {...} called at /usr/local/share/perl/5.10.1/Try/Tiny.pm line 67
Try::Tiny::try('CODE(0x28f5950)',
'Try::Tiny::Catch=REF(0x293c958)') called at
/usr/local/lib/perl/5.10.1/Class/MOP.pm line 125
Class::MOP::load_first_existing_class('MooseX::Role::BuildInstanceOf',
'HASH(0x28ee2b8)') called at /usr/local/lib/perl/5.10.1/Class/MOP.pm
line 137
Class::MOP::load_class('MooseX::Role::BuildInstanceOf',
'HASH(0x28ee2b8)') called at /usr/local/lib/perl/5.10.1/Moose/Util.pm
line 109
Moose::Util::_apply_all_roles('MooseX::Role::Parameterized::Meta::Role::Parameterizable=HASH...',
undef, 'MooseX::Role::BuildInstanceOf', 'HASH(0x28ee2b8)') called at
/usr/local/lib/perl/5.10.1/Moose/Util.pm line 87
Moose::Util::apply_all_roles('MooseX::Role::Parameterized::Meta::Role::Parameterizable=HASH...',
'MooseX::Role::BuildInstanceOf', 'HASH(0x28ee2b8)') called at
/usr/local/share/perl/5.10.1/MooseX/Role/Parameterized.pm line 114
MooseX::Role::Parameterized::with('Catalyst::Controller::DBIC::API::RequestArguments',
'MooseX::Role::BuildInstanceOf', 'HASH(0x28ee2b8)') called at
/usr/local/lib/perl/5.10.1/Moose/Exporter.pm line 273
MooseX::Role::Parameterized::with('MooseX::Role::BuildInstanceOf',
'HASH(0x28ee2b8)') called at
/usr/local/share/perl/5.10.1/Catalyst/Controller/DBIC/API/RequestArguments.pm
line 17
require Catalyst/Controller/DBIC/API/RequestArguments.pm
called at /usr/local/lib/perl/5.10.1/Class/MOP.pm line 114
Class::MOP::__ANON__() called at
/usr/local/share/perl/5.10.1/Try/Tiny.pm line 71
eval {...} called at /usr/local/share/perl/5.10.1/Try/Tiny.pm line 67
Try::Tiny::try('CODE(0x2838c10)',
'Try::Tiny::Catch=REF(0x27dbc98)') called at
/usr/local/lib/perl/5.10.1/Class/MOP.pm line 125
Class::MOP::load_first_existing_class('Catalyst::Controller::DBIC::API::RequestArguments')
called at /usr/local/lib/perl/5.10.1/Class/MOP.pm line 137
Class::MOP::load_class('Catalyst::Controller::DBIC::API::RequestArguments',
undef) called at /usr/local/lib/perl/5.10.1/Moose/Util.pm line 109
Moose::Util::_apply_all_roles('Moose::Meta::Role=HASH(0x2005638)',
undef, 'Catalyst::Controller::DBIC::API::RequestArguments') called at
/usr/local/lib/perl/5.10.1/Moose/Util.pm line 87
Moose::Util::apply_all_roles('Moose::Meta::Role=HASH(0x2005638)',
'Catalyst::Controller::DBIC::API::RequestArguments') called at
/usr/local/lib/perl/5.10.1/Moose/Role.pm line 26
Moose::Role::with('Moose::Meta::Role=HASH(0x2005638)',
'Catalyst::Controller::DBIC::API::RequestArguments') called at
/usr/local/lib/perl/5.10.1/Moose/Exporter.pm line 294
Moose::Role::with('Catalyst::Controller::DBIC::API::RequestArguments')
called at /usr/local/share/perl/5.10.1/Catalyst/Controller/DBIC/API/Request.pm
line 41
require Catalyst/Controller/DBIC/API/Request.pm called at
/usr/local/share/perl/5.10.1/Catalyst/Controller/DBIC/API.pm line 18
Catalyst::Controller::DBIC::API::BEGIN() called at
/usr/local/share/perl/5.10.1/MooseX/Role/BuildInstanceOf.pm line 0
eval {...} called at
/usr/local/share/perl/5.10.1/MooseX/Role/BuildInstanceOf.pm line 0
require Catalyst/Controller/DBIC/API.pm called at
/usr/local/lib/perl/5.10.1/Class/MOP.pm line 114
Class::MOP::__ANON__() called at
/usr/local/share/perl/5.10.1/Try/Tiny.pm line 71
eval {...} called at /usr/local/share/perl/5.10.1/Try/Tiny.pm line 67
Try::Tiny::try('CODE(0x164db80)',
'Try::Tiny::Catch=REF(0x1f7af60)') called at
/usr/local/lib/perl/5.10.1/Class/MOP.pm line 125
Class::MOP::load_first_existing_class('Catalyst::Controller::DBIC::API')
called at /usr/local/lib/perl/5.10.1/Class/MOP.pm line 137
Class::MOP::load_class('Catalyst::Controller::DBIC::API',
undef) called at /usr/local/lib/perl/5.10.1/Moose/Meta/Class.pm line
288
Moose::Meta::Class::superclasses(undef,
'Catalyst::Controller::DBIC::API') called at
/usr/local/lib/perl/5.10.1/Moose.pm line 54
Moose::extends('Moose::Meta::Class=HASH(0x1e83d90)',
'Catalyst::Controller::DBIC::API') called at
/usr/local/lib/perl/5.10.1/Moose/Exporter.pm line 294
Moose::extends('Catalyst::Controller::DBIC::API') called at
/usr/local/share/perl/5.10.1/Catalyst/Controller/DBIC/API/REST.pm line
8
Catalyst::Controller::DBIC::API::REST::BEGIN() called at
/usr/local/share/perl/5.10.1/MooseX/Role/BuildInstanceOf.pm line 0
eval {...} called at
/usr/local/share/perl/5.10.1/MooseX/Role/BuildInstanceOf.pm line 0
require Catalyst/Controller/DBIC/API/REST.pm called at test.pl line 1
main::BEGIN() called at
/usr/local/share/perl/5.10.1/MooseX/Role/BuildInstanceOf.pm line 0
eval {...} called at
/usr/local/share/perl/5.10.1/MooseX/Role/BuildInstanceOf.pm line 0
test.pl syntax OK


? ? /? ? Thiago Yukio Kikuchi Oliveira
(=\
? \=) Faculdade de Medicina de Ribeir?o Preto
?? /?? Laborat?rio de Gen?tica Molecular e Bioinform?tica
? /=) -----------------------------------------------------------------
(=/?? Centro de Terapia Celular/CEPID/FAPESP - Hemocentro de Rib. Preto
? /? ? Rua Tenente Cat?o Roxo, 2501 CEP 14151-140
(=\?? Ribeir?o Preto - S?o Paulo
? \=) Fone: 55 16 2101-9300?? Ramal: 9603
?? /?? E-mail: stratus@lgmb.fmrp.usp.br
? /=)? ? ? ? ? ? stratust@gmail.com
(=/
? /? ? Bioinformatic Team - BiT: http://lgmb.fmrp.usp.br
(=\?? Hemocentro de Ribeir?o Preto: http://pegasus.fmrp.usp.br
? \=)
?? /? -----------------------------------------------------------------

Search Discussions

  • Florian Ragwitz at Aug 10, 2010 at 3:09 pm

    Thiago Yukio Kikuchi Oliveira writes:
    I installed the last Catalyst::Controller::DBIC::API::REST from CPAN
    but when I try to use it, the same shows the warning below.
    I update all my Moose and MooseX modules but seems not work too.
    That's a bug in MooseX::Role::BuildInstanceOf, which is now exposed by Moose
    being stricter about attributes that should coerce.
    How to solve this?
    Either wait a couple of days for a new Moose::Role::BuildInstanceOf
    version to appear on CPAN, or downgrade Moose to a version which is less
    strict about those things.
    -------------- next part --------------
    A non-text attachment was scrubbed...
    Name: not available
    Type: application/pgp-signature
    Size: 197 bytes
    Desc: not available
    Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100810/97922576/attachment.pgp
  • Alexander Hartmaier at Aug 10, 2010 at 3:58 pm
    Awesome, my module does have users!

    I'm improving test code coverage since YAPC and will upload the next
    version in a couple of days (yes the very first test found a bug in
    RPC).

    Like rafl explained just downgrade Moose to 1.08 for the moment and
    you're fine.

    --
    Best regards, Alex


    Am Dienstag, den 10.08.2010, 17:09 +0200 schrieb Florian Ragwitz:
    Thiago Yukio Kikuchi Oliveira <stratust@gmail.com> writes:
    I installed the last Catalyst::Controller::DBIC::API::REST from CPAN
    but when I try to use it, the same shows the warning below.
    I update all my Moose and MooseX modules but seems not work too.
    That's a bug in MooseX::Role::BuildInstanceOf, which is now exposed by Moose
    being stricter about attributes that should coerce.
    How to solve this?
    Either wait a couple of days for a new Moose::Role::BuildInstanceOf
    version to appear on CPAN, or downgrade Moose to a version which is less
    strict about those things.

    *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
    T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
    Handelsgericht Wien, FN 79340b
    *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
    Notice: This e-mail contains information that is confidential and may be privileged.
    If you are not the intended recipient, please notify the sender and then
    delete this e-mail immediately.
    *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
  • Thiago Yukio Kikuchi Oliveira at Aug 10, 2010 at 5:06 pm
    Thanks Florian and Alexander!

    I just downgrade my Moose version to 1.08 and everthing works!



    ? ? /? ? Thiago Yukio Kikuchi Oliveira
    (=\
    ? \=) Faculdade de Medicina de Ribeir?o Preto
    ?? /?? Laborat?rio de Gen?tica Molecular e Bioinform?tica
    ? /=) -----------------------------------------------------------------
    (=/?? Centro de Terapia Celular/CEPID/FAPESP - Hemocentro de Rib. Preto
    ? /? ? Rua Tenente Cat?o Roxo, 2501 CEP 14151-140
    (=\?? Ribeir?o Preto - S?o Paulo
    ? \=) Fone: 55 16 2101-9300?? Ramal: 9603
    ?? /?? E-mail: stratus@lgmb.fmrp.usp.br
    ? /=)? ? ? ? ? ? stratust@gmail.com
    (=/
    ? /? ? Bioinformatic Team - BiT: http://lgmb.fmrp.usp.br
    (=\?? Hemocentro de Ribeir?o Preto: http://pegasus.fmrp.usp.br
    ? \=)
    ?? /? -----------------------------------------------------------------



    On Tue, Aug 10, 2010 at 12:58 PM, Alexander Hartmaier
    wrote:
    Awesome, my module does have users!

    I'm improving test code coverage since YAPC and will upload the next
    version in a couple of days (yes the very first test found a bug in
    RPC).

    Like rafl explained just downgrade Moose to 1.08 for the moment and
    you're fine.

    --
    Best regards, Alex


    Am Dienstag, den 10.08.2010, 17:09 +0200 schrieb Florian Ragwitz:
    Thiago Yukio Kikuchi Oliveira <stratust@gmail.com> writes:
    I installed the last Catalyst::Controller::DBIC::API::REST from CPAN
    but when I try to use it, the same shows the warning below.
    I update all my Moose and MooseX modules but seems not work too.
    That's a bug in MooseX::Role::BuildInstanceOf, which is now exposed by Moose
    being stricter about attributes that should coerce.
    How to solve this?
    Either wait a couple of days for a new Moose::Role::BuildInstanceOf
    version to appear on CPAN, or downgrade Moose to a version which is less
    strict about those things.

    *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
    T-Systems Austria GesmbH ? Rennweg 97-99, 1030 Wien
    Handelsgericht Wien, FN 79340b
    *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
    Notice: This e-mail contains information that is confidential and may be privileged.
    If you are not the intended recipient, please notify the sender and then
    delete this e-mail immediately.
    *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*

    _______________________________________________
    List: Catalyst@lists.scsys.co.uk
    Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
    Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
    Dev site: http://dev.catalyst.perl.org/
  • Alexander Hartmaier at Aug 11, 2010 at 4:12 pm
    Moose::Role::BuildInstanceOf 0.07 fixes the problem so you can upgrade
    again.

    --
    Best regards, Alex


    Am Dienstag, den 10.08.2010, 19:06 +0200 schrieb Thiago Yukio Kikuchi
    Oliveira:
    Thanks Florian and Alexander!

    I just downgrade my Moose version to 1.08 and everthing works!



    / Thiago Yukio Kikuchi Oliveira
    (=\
    \=) Faculdade de Medicina de Ribeir?o Preto
    / Laborat?rio de Gen?tica Molecular e Bioinform?tica
    /=) -----------------------------------------------------------------
    (=/ Centro de Terapia Celular/CEPID/FAPESP - Hemocentro de Rib. Preto
    / Rua Tenente Cat?o Roxo, 2501 CEP 14151-140
    (=\ Ribeir?o Preto - S?o Paulo
    \=) Fone: 55 16 2101-9300 Ramal: 9603
    / E-mail: stratus@lgmb.fmrp.usp.br
    /=) stratust@gmail.com
    (=/
    / Bioinformatic Team - BiT: http://lgmb.fmrp.usp.br
    (=\ Hemocentro de Ribeir?o Preto: http://pegasus.fmrp.usp.br
    \=)
    / -----------------------------------------------------------------



    On Tue, Aug 10, 2010 at 12:58 PM, Alexander Hartmaier
    wrote:
    Awesome, my module does have users!

    I'm improving test code coverage since YAPC and will upload the next
    version in a couple of days (yes the very first test found a bug in
    RPC).

    Like rafl explained just downgrade Moose to 1.08 for the moment and
    you're fine.

    --
    Best regards, Alex


    Am Dienstag, den 10.08.2010, 17:09 +0200 schrieb Florian Ragwitz:
    Thiago Yukio Kikuchi Oliveira <stratust@gmail.com> writes:
    I installed the last Catalyst::Controller::DBIC::API::REST from CPAN
    but when I try to use it, the same shows the warning below.
    I update all my Moose and MooseX modules but seems not work too.
    That's a bug in MooseX::Role::BuildInstanceOf, which is now exposed by Moose
    being stricter about attributes that should coerce.
    How to solve this?
    Either wait a couple of days for a new Moose::Role::BuildInstanceOf
    version to appear on CPAN, or downgrade Moose to a version which is less
    strict about those things.

    *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
    T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
    Handelsgericht Wien, FN 79340b
    *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
    Notice: This e-mail contains information that is confidential and may be privileged.
    If you are not the intended recipient, please notify the sender and then
    delete this e-mail immediately.
    *"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedAug 10, '10 at 2:15p
activeAug 11, '10 at 4:12p
posts5
users3
websitecatalystframework.org
irc#catalyst

People

Translate

site design / logo © 2021 Grokbase