Skip Menu |

This queue is for tickets about the WWW-Google-Contacts CPAN distribution.

Report information
The Basics
Id: 68774
Status: open
Priority: 0/
Queue: WWW-Google-Contacts

People
Owner: MERIXZON [...] cpan.org
Requestors: hgpayne [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.23
Fixed in: (no value)



Subject: Attribute (priority) does not pass the type constraint
First the example synopsis for looping over existing contacts has two bugs: use WWW::Google::Contacts; my $google = WWW::Google::Contacts->new( username => "your.userid", password => "your.password" ); my $contacts = $google->contacts; while ( my $cont = $contacts->next ) { print "You got a friend called " . $cont->full_name . "\n"; ## ERROR: Method exist does not exist. Should be "exists" if ( $cont->photo->exist ) { print "And you got a photo of this friend\n"; ## ERROR: should be $cont, not $contact below #$contact->photo->to_file( "/tmp/photo.jpg" ); } } Given the two errors are fixed, and I put in my ID and password, it fails on the 8th or so contact -- even if you don't look at any attributes (just while(my $cont = $contacts -> next) {} will cause the error). Attribute (priority) does not pass the type constraint because: Validation failed for 'WWW::Google::Contacts::Types::Priority' with val ue HASH(0x4c56824) (not isa WWW::Google::Contacts::Type::Priority) at C:/Perl/site/lib/WWW/Google/Contacts/Base.pm line 79 WWW::Google::Contacts::Base::set_from_server('WWW::Google::Contacts::Con tact=HASH(0x4c57a0c)', 'HASH(0x4c55234)') called at C:/ Perl/site/lib/WWW/Google/Contacts/Roles/List.pm line 87 WWW::Google::Contacts::Roles::List::next('WWW::Google::Contacts::Contact List=HASH(0x3c554a4)') called at C:\Users\Harvey\Docume nts\Perl\gogltest.pl line 9 (line 9 is the "while(my $cont = $contacts -> next) {" line)
From: hgpayne [...] yahoo.com
On Sun Jun 12 03:06:59 2011, hgpayne wrote: Upgraded to perl 5.12 and WWW::Google::Contacts 0.28 and noted the same problem. Show quoted text
> First the example synopsis for looping over existing contacts has two > bugs: > > use WWW::Google::Contacts; > > my $google = WWW::Google::Contacts->new( username => "your.userid", > password => "your.password" ); > > my $contacts = $google->contacts; > > while ( my $cont = $contacts->next ) { > print "You got a friend called " . $cont->full_name . "\n"; > > ## ERROR: Method exist does not exist. Should be "exists" > if ( $cont->photo->exist ) { > > print "And you got a photo of this friend\n"; > ## ERROR: should be $cont, not $contact below > #$contact->photo->to_file( "/tmp/photo.jpg" ); > } > } > > Given the two errors are fixed, and I put in my ID and password, it > fails on the 8th or so contact -- even if you don't look at any > attributes (just while(my $cont = $contacts -> next) {} will cause the > error). > > Attribute (priority) does not pass the type constraint because: > Validation failed for 'WWW::Google::Contacts::Types::Priority' with
val Show quoted text
> ue HASH(0x4c56824) (not isa WWW::Google::Contacts::Type::Priority) at > C:/Perl/site/lib/WWW/Google/Contacts/Base.pm line 79 > >
WWW::Google::Contacts::Base::set_from_server('WWW::Google::Contacts::Con Show quoted text
> tact=HASH(0x4c57a0c)', 'HASH(0x4c55234)') called at C:/ > Perl/site/lib/WWW/Google/Contacts/Roles/List.pm line 87 > >
WWW::Google::Contacts::Roles::List::next('WWW::Google::Contacts::Contact Show quoted text
> List=HASH(0x3c554a4)') called at C:\Users\Harvey\Docume > nts\Perl\gogltest.pl line 9 > (line 9 is the "while(my $cont = $contacts -> next) {" line)
Hey Harvey Thanks for reporting! I'll take a look at this in the next day or 2. cheers Magnus On Sun Jun 12 03:43:55 2011, hgpayne wrote: Show quoted text
> On Sun Jun 12 03:06:59 2011, hgpayne wrote: > > Upgraded to perl 5.12 and WWW::Google::Contacts 0.28 and noted the
same Show quoted text
> problem. >
> > First the example synopsis for looping over existing contacts has
two Show quoted text
> > bugs: > > > > use WWW::Google::Contacts; > > > > my $google = WWW::Google::Contacts->new( username => "your.userid", > > password => "your.password" ); > > > > my $contacts = $google->contacts; > > > > while ( my $cont = $contacts->next ) { > > print "You got a friend called " . $cont->full_name . "\n"; > > > > ## ERROR: Method exist does not exist. Should be "exists" > > if ( $cont->photo->exist ) { > > > > print "And you got a photo of this friend\n"; > > ## ERROR: should be $cont, not $contact below > > #$contact->photo->to_file( "/tmp/photo.jpg" ); > > } > > } > > > > Given the two errors are fixed, and I put in my ID and password, it > > fails on the 8th or so contact -- even if you don't look at any > > attributes (just while(my $cont = $contacts -> next) {} will cause
the Show quoted text
> > error). > > > > Attribute (priority) does not pass the type constraint because: > > Validation failed for 'WWW::Google::Contacts::Types::Priority' with
> val
> > ue HASH(0x4c56824) (not isa WWW::Google::Contacts::Type::Priority)
at Show quoted text
> > C:/Perl/site/lib/WWW/Google/Contacts/Base.pm line 79 > > > >
>
WWW::Google::Contacts::Base::set_from_server('WWW::Google::Contacts::Con Show quoted text
> > tact=HASH(0x4c57a0c)', 'HASH(0x4c55234)') called at C:/ > > Perl/site/lib/WWW/Google/Contacts/Roles/List.pm line 87 > > > >
>
WWW::Google::Contacts::Roles::List::next('WWW::Google::Contacts::Contact Show quoted text
> > List=HASH(0x3c554a4)') called at C:\Users\Harvey\Docume > > nts\Perl\gogltest.pl line 9 > > (line 9 is the "while(my $cont = $contacts -> next) {" line)
> >
Hi Harvey Sorry about the delay, it's been a busy few days. I've just uploaded version 0.29 to CPAN which should appear on your local CPAN mirror soon, which should hopefully fix your problem. Please let me know if you still have issues with the module. cheers Magnus
CC: "magnus [...] erixzon.com" <magnus [...] erixzon.com>
Subject: Re: [rt.cpan.org #68774] Attribute (priority) does not pass the type constraint
Date: Wed, 29 Jun 2011 01:03:58 -0700 (PDT)
To: "bug-WWW-Google-Contacts [...] rt.cpan.org" <bug-WWW-Google-Contacts [...] rt.cpan.org>
From: Harvey Payne <hgpayne [...] yahoo.com>
Does not seem to be fixed. used the same simple loop code and got the same errors after installing the latest version. I would have updated the DR but alas, I cannot remember my ID/password to do so. Strangely enough, Moose version 1.21 is installed on my system but it says the latest available is 1.03 (using ActivePerl's ppm). As a refresher: #!/usr/bin/perl use WWW::Google::Contacts; my $google = WWW::Google::Contacts->new( username => "<googleID>", password => "<googlePasswd>" ); my $contacts = $google->contacts; while ( my $cont = $contacts->next ) {    print "You got a friend called " . $cont->full_name . "\n";    if ( $cont->photo->exists ) {       print "And you got a photo of this friend\n";       #$contact->photo->to_file( "/tmp/photo.jpg" );    } }   Results in  Attribute (country) does not pass the type constraint because: Validation failed for 'Str' with value HASH(0x5e0bfa0) at C:/Perl64/s ite/lib/WWW/Google/Contacts/Types.pm line 147         WWW::Google::Contacts::Types::__ANON__('HASH(0x5e0bb98)') called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 63         Moose::Meta::TypeCoercion::__ANON__('HASH(0x5e0bb98)') called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 97         Moose::Meta::TypeCoercion::coerce('Moose::Meta::TypeCoercion=HASH(0x547e7d8)', 'HASH(0x5e0bb98)') called at C:/Perl64/lib/Mo ose/Meta/TypeConstraint.pm line 90         Moose::Meta::TypeConstraint::coerce('Moose::Meta::TypeConstraint::Class=HASH(0x547cee0)', 'HASH(0x5e0bb98)') called at C:/Pe rl64/site/lib/MooseX/Types.pm line 145         MooseX::Types::__ANON__('HASH(0x5e0bb98)') called at C:/Perl64/site/lib/WWW/Google/Contacts/Types.pm line 155         WWW::Google::Contacts::Types::__ANON__('HASH(0x5e0bb98)') called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 63         Moose::Meta::TypeCoercion::__ANON__('HASH(0x5e0bb98)') called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 97         Moose::Meta::TypeCoercion::coerce('Moose::Meta::TypeCoercion=HASH(0x547ed38)', 'HASH(0x5e0bb98)') called at C:/Perl64/lib/Mo ose/Meta/TypeConstraint.pm line 90         Moose::Meta::TypeConstraint::coerce('Moose::Meta::TypeConstraint::Parameterizable=HASH(0x547f038)', 'HASH(0x5e0bb98)') calle d at C:/Perl64/site/lib/MooseX/Types/TypeDecorator.pm line 155         eval {...} called at C:/Perl64/site/lib/MooseX/Types/TypeDecorator.pm line 154         MooseX::Types::TypeDecorator::AUTOLOAD('MooseX::Types::TypeDecorator=HASH(0x5733a40)', 'HASH(0x5e0bb98)') called at accessor  postal_address defined at C:/Perl64/site/lib/WWW/Google/Contacts/Contact.pm line 167         WWW::Google::Contacts::Contact::postal_address('WWW::Google::Contacts::Contact=HASH(0x5df86d8)', 'HASH(0x5e0bb98)') called a t C:/Perl64/site/lib/WWW/Google/Contacts/Base.pm line 80         WWW::Google::Contacts::Base::set_from_server('WWW::Google::Contacts::Contact=HASH(0x5df86d8)', 'HASH(0x5e0b128)') called at C:/Perl64/site/lib/WWW/Google/Contacts/Roles/List.pm line 87         WWW::Google::Contacts::Roles::List::next('WWW::Google::Contacts::ContactList=HASH(0x29b120)') called at C:\Users\Harvey\Docu ments\Perl\gogltest.pl line 9  at C:/Perl64/site/lib/MooseX/Types/TypeDecorator.pm line 157         MooseX::Types::TypeDecorator::AUTOLOAD('MooseX::Types::TypeDecorator=HASH(0x5733a40)', 'HASH(0x5e0bb98)') called at accessor  postal_address defined at C:/Perl64/site/lib/WWW/Google/Contacts/Contact.pm line 167         WWW::Google::Contacts::Contact::postal_address('WWW::Google::Contacts::Contact=HASH(0x5df86d8)', 'HASH(0x5e0bb98)') called a t C:/Perl64/site/lib/WWW/Google/Contacts/Base.pm line 80         WWW::Google::Contacts::Base::set_from_server('WWW::Google::Contacts::Contact=HASH(0x5df86d8)', 'HASH(0x5e0b128)') called at C:/Perl64/site/lib/WWW/Google/Contacts/Roles/List.pm line 87         WWW::Google::Contacts::Roles::List::next('WWW::Google::Contacts::ContactList=HASH(0x29b120)') called at C:\Users\Harvey\Docu ments\Perl\gogltest.pl line 9~~~~~~~~~~~~ Harvey Payne hgpayne@yahoo.com Show quoted text
>________________________________ >From: Magnus Erixzon via RT <bug-WWW-Google-Contacts@rt.cpan.org> >To: hgpayne@yahoo.com >Sent: Wednesday, June 22, 2011 3:19 AM >Subject: [rt.cpan.org #68774] Attribute (priority) does not pass the type constraint > ><URL: https://rt.cpan.org/Ticket/Display.html?id=68774 > > >Hi Harvey > >Sorry about the delay, it's been a busy few days. > >I've just uploaded version 0.29 to CPAN which should appear on your local >CPAN mirror soon, which should hopefully fix your problem. > >Please let me know if you still have issues with the module. > >cheers >Magnus > > > >
Hey Harvey Sorry to hear you have more problems. This is a slightly different issue. I couldn't replicate it exactly, but I think I know what the problem is. I've uploaded a new version (0.30) which could fix it. Please try it out and let me know how it goes. cheers Magnus On Wed Jun 29 04:04:08 2011, hgpayne wrote: Show quoted text
> Does not seem to be fixed. used the same simple loop code and got the > same errors after installing the latest version. I would have > updated the DR but alas, I cannot remember my ID/password to do so. > Strangely enough, Moose version 1.21 is installed on my system but > it says the latest available is 1.03 (using ActivePerl's ppm). As a > refresher: > > #!/usr/bin/perl > > use WWW::Google::Contacts; > > my $google = WWW::Google::Contacts->new( username => "<googleID>", > password => "<googlePasswd>" ); > > my $contacts = $google->contacts; > > while ( my $cont = $contacts->next ) { >    print "You got a friend called " . $cont->full_name . "\n"; > >    if ( $cont->photo->exists ) { >       print "And you got a photo of this friend\n"; >       #$contact->photo->to_file( "/tmp/photo.jpg" ); >    } > } >   > > Results in  > > Attribute (country) does not pass the type constraint > because: Validation failed for 'Str' with value HASH(0x5e0bfa0) at > C:/Perl64/s > ite/lib/WWW/Google/Contacts/Types.pm line 147 >         WWW::Google::Contacts::Types::__ANON__('HASH(0x5e0bb98)') > called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 63 >         Moose::Meta::TypeCoercion::__ANON__('HASH(0x5e0bb98)') called > at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 97 >        
Moose::Meta::TypeCoercion::coerce('Moose::Meta::TypeCoercion=HASH(0x547e 7d8)', Show quoted text
> 'HASH(0x5e0bb98)') called at C:/Perl64/lib/Mo > ose/Meta/TypeConstraint.pm line 90 >        
Moose::Meta::TypeConstraint::coerce('Moose::Meta::TypeConstraint::Class= HASH(0x547cee0)', Show quoted text
> 'HASH(0x5e0bb98)') called at C:/Pe > rl64/site/lib/MooseX/Types.pm line 145 >         MooseX::Types::__ANON__('HASH(0x5e0bb98)') called at > C:/Perl64/site/lib/WWW/Google/Contacts/Types.pm line 155 >         WWW::Google::Contacts::Types::__ANON__('HASH(0x5e0bb98)') > called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 63 >         Moose::Meta::TypeCoercion::__ANON__('HASH(0x5e0bb98)') called > at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 97 >        
Moose::Meta::TypeCoercion::coerce('Moose::Meta::TypeCoercion=HASH(0x547e d38)', Show quoted text
> 'HASH(0x5e0bb98)') called at C:/Perl64/lib/Mo > ose/Meta/TypeConstraint.pm line 90 >        
Moose::Meta::TypeConstraint::coerce('Moose::Meta::TypeConstraint::Parame terizable=HASH(0x547f038)', Show quoted text
> 'HASH(0x5e0bb98)') calle > d at C:/Perl64/site/lib/MooseX/Types/TypeDecorator.pm line 155 >         eval {...} called at > C:/Perl64/site/lib/MooseX/Types/TypeDecorator.pm line 154 >        
MooseX::Types::TypeDecorator::AUTOLOAD('MooseX::Types::TypeDecorator=HAS H(0x5733a40)', Show quoted text
> 'HASH(0x5e0bb98)') called at accessor >  postal_address defined at > C:/Perl64/site/lib/WWW/Google/Contacts/Contact.pm line 167 >        
WWW::Google::Contacts::Contact::postal_address('WWW::Google::Contacts::C ontact=HASH(0x5df86d8)', Show quoted text
> 'HASH(0x5e0bb98)') called a > t C:/Perl64/site/lib/WWW/Google/Contacts/Base.pm line 80 >        
WWW::Google::Contacts::Base::set_from_server('WWW::Google::Contacts::Con tact=HASH(0x5df86d8)', Show quoted text
> 'HASH(0x5e0b128)') called at > C:/Perl64/site/lib/WWW/Google/Contacts/Roles/List.pm line 87 >        
WWW::Google::Contacts::Roles::List::next('WWW::Google::Contacts::Contact List=HASH(0x29b120)') Show quoted text
> called at C:\Users\Harvey\Docu > ments\Perl\gogltest.pl line 9 >  at C:/Perl64/site/lib/MooseX/Types/TypeDecorator.pm line 157 >        
MooseX::Types::TypeDecorator::AUTOLOAD('MooseX::Types::TypeDecorator=HAS H(0x5733a40)', Show quoted text
> 'HASH(0x5e0bb98)') called at accessor >  postal_address defined at > C:/Perl64/site/lib/WWW/Google/Contacts/Contact.pm line 167 >        
WWW::Google::Contacts::Contact::postal_address('WWW::Google::Contacts::C ontact=HASH(0x5df86d8)', Show quoted text
> 'HASH(0x5e0bb98)') called a > t C:/Perl64/site/lib/WWW/Google/Contacts/Base.pm line 80 >        
WWW::Google::Contacts::Base::set_from_server('WWW::Google::Contacts::Con tact=HASH(0x5df86d8)', Show quoted text
> 'HASH(0x5e0b128)') called at > C:/Perl64/site/lib/WWW/Google/Contacts/Roles/List.pm line 87 >        
WWW::Google::Contacts::Roles::List::next('WWW::Google::Contacts::Contact List=HASH(0x29b120)') Show quoted text
> called at C:\Users\Harvey\Docu > ments\Perl\gogltest.pl line 9~~~~~~~~~~~~ > > Harvey Payne > hgpayne@yahoo.com > >
> >________________________________ > >From: Magnus Erixzon via RT <bug-WWW-Google-Contacts@rt.cpan.org> > >To: hgpayne@yahoo.com > >Sent: Wednesday, June 22, 2011 3:19 AM > >Subject: [rt.cpan.org #68774] Attribute (priority) does not pass the
> type constraint
> > > ><URL: https://rt.cpan.org/Ticket/Display.html?id=68774 > > > > >Hi Harvey > > > >Sorry about the delay, it's been a busy few days. > > > >I've just uploaded version 0.29 to CPAN which should appear on your
> local
> >CPAN mirror soon, which should hopefully fix your problem. > > > >Please let me know if you still have issues with the module. > > > >cheers > >Magnus > > > > > > > >
Subject: Re: [rt.cpan.org #68774] Attribute (priority) does not pass the type constraint
Date: Thu, 30 Jun 2011 01:32:13 -0700 (PDT)
To: "bug-WWW-Google-Contacts [...] rt.cpan.org" <bug-WWW-Google-Contacts [...] rt.cpan.org>
From: Harvey Payne <hgpayne [...] yahoo.com>
I fired up ppm (I'm trying this on my PC/Windows) and it still says the most recent version is 0.29. I'll wait a couple days for it to trickle down to ActiveSlate.  ~~~~~~~~~~~~ Harvey Payne hgpayne@yahoo.com Show quoted text
>________________________________ >From: Magnus Erixzon via RT <bug-WWW-Google-Contacts@rt.cpan.org> >To: hgpayne@yahoo.com >Sent: Wednesday, June 29, 2011 1:37 PM >Subject: [rt.cpan.org #68774] Attribute (priority) does not pass the type constraint > ><URL: https://rt.cpan.org/Ticket/Display.html?id=68774 > > >Hey Harvey > >Sorry to hear you have more problems. >This is a slightly different issue. I couldn't replicate it exactly, but >I think I know what the problem is. I've uploaded a new version (0.30) >which could fix it. Please try it out and let me know how it goes. > >cheers >Magnus > > > >On Wed Jun 29 04:04:08 2011, hgpayne wrote:
>> Does not seem to be fixed. used the same simple loop code and got the >>    same errors after installing the latest version. I would have >>    updated the DR but alas, I cannot remember my ID/password to do so. >>    Strangely enough, Moose version 1.21 is installed on my system but >>    it says the latest available is 1.03 (using ActivePerl's ppm). As a >>    refresher: >> >> #!/usr/bin/perl >> >> use WWW::Google::Contacts; >> >> my $google = WWW::Google::Contacts->new( username => "<googleID>", >>    password => "<googlePasswd>" ); >> >> my $contacts = $google->contacts; >> >> while ( my $cont = $contacts->next ) { >>    print "You got a friend called " . $cont->full_name . "\n"; >> >>    if ( $cont->photo->exists ) { >>       print "And you got a photo of this friend\n"; >>       #$contact->photo->to_file( "/tmp/photo.jpg" ); >>    } >> } >>   >> >> Results in  >> >> Attribute (country) does not pass the type constraint >>    because: Validation failed for 'Str' with value HASH(0x5e0bfa0) at >>    C:/Perl64/s >> ite/lib/WWW/Google/Contacts/Types.pm line 147 >>         WWW::Google::Contacts::Types::__ANON__('HASH(0x5e0bb98)') >>    called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 63 >>         Moose::Meta::TypeCoercion::__ANON__('HASH(0x5e0bb98)') called >>    at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 97 >>        
>Moose::Meta::TypeCoercion::coerce('Moose::Meta::TypeCoercion=HASH(0x547e >7d8)',
>>    'HASH(0x5e0bb98)') called at C:/Perl64/lib/Mo >> ose/Meta/TypeConstraint.pm line 90 >>        
>Moose::Meta::TypeConstraint::coerce('Moose::Meta::TypeConstraint::Class= >HASH(0x547cee0)',
>>    'HASH(0x5e0bb98)') called at C:/Pe >> rl64/site/lib/MooseX/Types.pm line 145 >>         MooseX::Types::__ANON__('HASH(0x5e0bb98)') called at >>    C:/Perl64/site/lib/WWW/Google/Contacts/Types.pm line 155 >>         WWW::Google::Contacts::Types::__ANON__('HASH(0x5e0bb98)') >>    called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 63 >>         Moose::Meta::TypeCoercion::__ANON__('HASH(0x5e0bb98)') called >>    at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 97 >>        
>Moose::Meta::TypeCoercion::coerce('Moose::Meta::TypeCoercion=HASH(0x547e >d38)',
>>    'HASH(0x5e0bb98)') called at C:/Perl64/lib/Mo >> ose/Meta/TypeConstraint.pm line 90 >>        
>Moose::Meta::TypeConstraint::coerce('Moose::Meta::TypeConstraint::Parame >terizable=HASH(0x547f038)',
>>    'HASH(0x5e0bb98)') calle >> d at C:/Perl64/site/lib/MooseX/Types/TypeDecorator.pm line 155 >>         eval {...} called at >>    C:/Perl64/site/lib/MooseX/Types/TypeDecorator.pm line 154 >>        
>MooseX::Types::TypeDecorator::AUTOLOAD('MooseX::Types::TypeDecorator=HAS >H(0x5733a40)',
>>    'HASH(0x5e0bb98)') called at accessor >>  postal_address defined at >>    C:/Perl64/site/lib/WWW/Google/Contacts/Contact.pm line 167 >>        
>WWW::Google::Contacts::Contact::postal_address('WWW::Google::Contacts::C >ontact=HASH(0x5df86d8)',
>>    'HASH(0x5e0bb98)') called a >> t C:/Perl64/site/lib/WWW/Google/Contacts/Base.pm line 80 >>        
>WWW::Google::Contacts::Base::set_from_server('WWW::Google::Contacts::Con >tact=HASH(0x5df86d8)',
>>    'HASH(0x5e0b128)') called at >> C:/Perl64/site/lib/WWW/Google/Contacts/Roles/List.pm line 87 >>        
>WWW::Google::Contacts::Roles::List::next('WWW::Google::Contacts::Contact >List=HASH(0x29b120)')
>>    called at C:\Users\Harvey\Docu >> ments\Perl\gogltest.pl line 9 >>  at C:/Perl64/site/lib/MooseX/Types/TypeDecorator.pm line 157 >>        
>MooseX::Types::TypeDecorator::AUTOLOAD('MooseX::Types::TypeDecorator=HAS >H(0x5733a40)',
>>    'HASH(0x5e0bb98)') called at accessor >>  postal_address defined at >>    C:/Perl64/site/lib/WWW/Google/Contacts/Contact.pm line 167 >>        
>WWW::Google::Contacts::Contact::postal_address('WWW::Google::Contacts::C >ontact=HASH(0x5df86d8)',
>>    'HASH(0x5e0bb98)') called a >> t C:/Perl64/site/lib/WWW/Google/Contacts/Base.pm line 80 >>        
>WWW::Google::Contacts::Base::set_from_server('WWW::Google::Contacts::Con >tact=HASH(0x5df86d8)',
>>    'HASH(0x5e0b128)') called at >> C:/Perl64/site/lib/WWW/Google/Contacts/Roles/List.pm line 87 >>        
>WWW::Google::Contacts::Roles::List::next('WWW::Google::Contacts::Contact >List=HASH(0x29b120)')
>>    called at C:\Users\Harvey\Docu >> ments\Perl\gogltest.pl line 9~~~~~~~~~~~~ >> >> Harvey Payne >> hgpayne@yahoo.com >> >>
>> >________________________________ >> >From: Magnus Erixzon via RT <bug-WWW-Google-Contacts@rt.cpan.org> >> >To: hgpayne@yahoo.com >> >Sent: Wednesday, June 22, 2011 3:19 AM >> >Subject: [rt.cpan.org #68774] Attribute (priority) does not pass the
>>    type constraint
>> > >> ><URL: https://rt.cpan.org/Ticket/Display.html?id=68774 > >> > >> >Hi Harvey >> > >> >Sorry about the delay, it's been a busy few days. >> > >> >I've just uploaded version 0.29 to CPAN which should appear on your
>>    local
>> >CPAN mirror soon, which should hopefully fix your problem. >> > >> >Please let me know if you still have issues with the module. >> > >> >cheers >> >Magnus >> > >> > >> > >> >
> > > > > >
Subject: Re: [rt.cpan.org #68774] Attribute (priority) does not pass the type constraint
Date: Thu, 7 Jul 2011 00:33:20 -0700 (PDT)
To: "bug-WWW-Google-Contacts [...] rt.cpan.org" <bug-WWW-Google-Contacts [...] rt.cpan.org>
From: Harvey Payne <hgpayne [...] yahoo.com>
0.30 finally showed up as a possible upgrade, so I upgraded and it said something about missing MooseX::Singleton, so I installed that too. Ran the script one more time around. It got a bit further, then threw up on this: Attribute (gender) does not pass the type constraint because: Validation failed for 'WWW::Google::Contacts::Types::Gender' with value H ASH(0x57f6b08) (not isa WWW::Google::Contacts::Type::Gender) at C:/Perl64/site/lib/WWW/Google/Contacts/Base.pm line 80         WWW::Google::Contacts::Base::set_from_server('WWW::Google::Contacts::Contact=HASH(0x57f12a8)', 'HASH(0x57f62f8)') called at C:/ Perl64/site/lib/WWW/Google/Contacts/Roles/List.pm line 87         WWW::Google::Contacts::Roles::List::next('WWW::Google::Contacts::ContactList=HASH(0x33b3d0)') called at C:\Users\Harvey\Documen ts\Perl\gogltest.pl line 9  ~~~~~~~~~~~~ Harvey Payne hgpayne@yahoo.com Show quoted text
>________________________________ >From: Magnus Erixzon via RT <bug-WWW-Google-Contacts@rt.cpan.org> >To: hgpayne@yahoo.com >Sent: Wednesday, June 29, 2011 1:37 PM >Subject: [rt.cpan.org #68774] Attribute (priority) does not pass the type constraint > ><URL: https://rt.cpan.org/Ticket/Display.html?id=68774 > > >Hey Harvey > >Sorry to hear you have more problems. >This is a slightly different issue. I couldn't replicate it exactly, but >I think I know what the problem is. I've uploaded a new version (0.30) >which could fix it. Please try it out and let me know how it goes. > >cheers >Magnus > > > >On Wed Jun 29 04:04:08 2011, hgpayne wrote:
>> Does not seem to be fixed. used the same simple loop code and got the >>    same errors after installing the latest version. I would have >>    updated the DR but alas, I cannot remember my ID/password to do so. >>    Strangely enough, Moose version 1.21 is installed on my system but >>    it says the latest available is 1.03 (using ActivePerl's ppm). As a >>    refresher: >> >> #!/usr/bin/perl >> >> use WWW::Google::Contacts; >> >> my $google = WWW::Google::Contacts->new( username => "<googleID>", >>    password => "<googlePasswd>" ); >> >> my $contacts = $google->contacts; >> >> while ( my $cont = $contacts->next ) { >>    print "You got a friend called " . $cont->full_name . "\n"; >> >>    if ( $cont->photo->exists ) { >>       print "And you got a photo of this friend\n"; >>       #$contact->photo->to_file( "/tmp/photo.jpg" ); >>    } >> } >>   >> >> Results in  >> >> Attribute (country) does not pass the type constraint >>    because: Validation failed for 'Str' with value HASH(0x5e0bfa0) at >>    C:/Perl64/s >> ite/lib/WWW/Google/Contacts/Types.pm line 147 >>         WWW::Google::Contacts::Types::__ANON__('HASH(0x5e0bb98)') >>    called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 63 >>         Moose::Meta::TypeCoercion::__ANON__('HASH(0x5e0bb98)') called >>    at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 97 >>        
>Moose::Meta::TypeCoercion::coerce('Moose::Meta::TypeCoercion=HASH(0x547e >7d8)',
>>    'HASH(0x5e0bb98)') called at C:/Perl64/lib/Mo >> ose/Meta/TypeConstraint.pm line 90 >>        
>Moose::Meta::TypeConstraint::coerce('Moose::Meta::TypeConstraint::Class= >HASH(0x547cee0)',
>>    'HASH(0x5e0bb98)') called at C:/Pe >> rl64/site/lib/MooseX/Types.pm line 145 >>         MooseX::Types::__ANON__('HASH(0x5e0bb98)') called at >>    C:/Perl64/site/lib/WWW/Google/Contacts/Types.pm line 155 >>         WWW::Google::Contacts::Types::__ANON__('HASH(0x5e0bb98)') >>    called at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 63 >>         Moose::Meta::TypeCoercion::__ANON__('HASH(0x5e0bb98)') called >>    at C:/Perl64/lib/Moose/Meta/TypeCoercion.pm line 97 >>        
>Moose::Meta::TypeCoercion::coerce('Moose::Meta::TypeCoercion=HASH(0x547e >d38)',
>>    'HASH(0x5e0bb98)') called at C:/Perl64/lib/Mo >> ose/Meta/TypeConstraint.pm line 90 >>        
>Moose::Meta::TypeConstraint::coerce('Moose::Meta::TypeConstraint::Parame >terizable=HASH(0x547f038)',
>>    'HASH(0x5e0bb98)') calle >> d at C:/Perl64/site/lib/MooseX/Types/TypeDecorator.pm line 155 >>         eval {...} called at >>    C:/Perl64/site/lib/MooseX/Types/TypeDecorator.pm line 154 >>        
>MooseX::Types::TypeDecorator::AUTOLOAD('MooseX::Types::TypeDecorator=HAS >H(0x5733a40)',
>>    'HASH(0x5e0bb98)') called at accessor >>  postal_address defined at >>    C:/Perl64/site/lib/WWW/Google/Contacts/Contact.pm line 167 >>        
>WWW::Google::Contacts::Contact::postal_address('WWW::Google::Contacts::C >ontact=HASH(0x5df86d8)',
>>    'HASH(0x5e0bb98)') called a >> t C:/Perl64/site/lib/WWW/Google/Contacts/Base.pm line 80 >>        
>WWW::Google::Contacts::Base::set_from_server('WWW::Google::Contacts::Con >tact=HASH(0x5df86d8)',
>>    'HASH(0x5e0b128)') called at >> C:/Perl64/site/lib/WWW/Google/Contacts/Roles/List.pm line 87 >>        
>WWW::Google::Contacts::Roles::List::next('WWW::Google::Contacts::Contact >List=HASH(0x29b120)')
>>    called at C:\Users\Harvey\Docu >> ments\Perl\gogltest.pl line 9 >>  at C:/Perl64/site/lib/MooseX/Types/TypeDecorator.pm line 157 >>        
>MooseX::Types::TypeDecorator::AUTOLOAD('MooseX::Types::TypeDecorator=HAS >H(0x5733a40)',
>>    'HASH(0x5e0bb98)') called at accessor >>  postal_address defined at >>    C:/Perl64/site/lib/WWW/Google/Contacts/Contact.pm line 167 >>        
>WWW::Google::Contacts::Contact::postal_address('WWW::Google::Contacts::C >ontact=HASH(0x5df86d8)',
>>    'HASH(0x5e0bb98)') called a >> t C:/Perl64/site/lib/WWW/Google/Contacts/Base.pm line 80 >>        
>WWW::Google::Contacts::Base::set_from_server('WWW::Google::Contacts::Con >tact=HASH(0x5df86d8)',
>>    'HASH(0x5e0b128)') called at >> C:/Perl64/site/lib/WWW/Google/Contacts/Roles/List.pm line 87 >>        
>WWW::Google::Contacts::Roles::List::next('WWW::Google::Contacts::Contact >List=HASH(0x29b120)')
>>    called at C:\Users\Harvey\Docu >> ments\Perl\gogltest.pl line 9~~~~~~~~~~~~ >> >> Harvey Payne >> hgpayne@yahoo.com >> >>
>> >________________________________ >> >From: Magnus Erixzon via RT <bug-WWW-Google-Contacts@rt.cpan.org> >> >To: hgpayne@yahoo.com >> >Sent: Wednesday, June 22, 2011 3:19 AM >> >Subject: [rt.cpan.org #68774] Attribute (priority) does not pass the
>>    type constraint
>> > >> ><URL: https://rt.cpan.org/Ticket/Display.html?id=68774 > >> > >> >Hi Harvey >> > >> >Sorry about the delay, it's been a busy few days. >> > >> >I've just uploaded version 0.29 to CPAN which should appear on your
>>    local
>> >CPAN mirror soon, which should hopefully fix your problem. >> > >> >Please let me know if you still have issues with the module. >> > >> >cheers >> >Magnus >> > >> > >> > >> >
> > > > > >