Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: Net::Twitter - fatal , but no error?

by ultranerds (Friar)
on Feb 08, 2013 at 13:52 UTC ( #1017824=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Net::Twitter - fatal , but no error?
in thread Net::Twitter - fatal , but no error?

Ah good point... didn't think of that! Its saying:

Couldn't load class (Net::Twitter::Role::API::REST) because: Roles do +not currently support ARRAY references for around method modifiers at + /usr/lib64/perl5/vendor_perl/5.10.1/x86_64-linux/Moose/Exporter.pm l +ine 293 Compilation failed in require at /usr/lib64/perl5/vendor_perl/5.10.1/x +86_64-linux/Class/MOP.pm line 114.
Not too sure what that means? I got the host to upgrade Net::Twitter to the latest version, but that doesn't seem to be helping.

TIA

Andy


Comment on Re^4: Net::Twitter - fatal , but no error?
Download Code
Re^5: Net::Twitter - fatal , but no error?
by tobyink (Abbot) on Feb 08, 2013 at 14:14 UTC

    It's claiming that roles don't support array references for around method modifiers... i.e. Moose stuff. It's saying that this doesn't work...

    use v5.14; package Local::Role { use Moose::Role; around [qw/ a b /] => sub { say "constant access" }; } package Local::Class { use Moose; with 'Local::Role'; use constant { a => 1, b => 2 }; } # Should print "constant access" twice Local::Class->a; Local::Class->b;

    On my machine, the above does work though, so it's likely that you're running a very old Moose/Class::MOP. Judging from Moose::Manual::Delta this may have been introduced in Moose 0.95; current version is 2.0604.

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
      Ah - maybe its an old version of Moose then. I've emailed my host to check up.

      Cheers

      Andy
        Mmm, well they upgraded it, but now I get:
        <p><font face='Tahoma,Arial,Helvetica' size=2>A fatal error has occure +d:</font></p><blockquote><pre>Attribute (aliases) does not pass the t +ype constraint because: Validation failed for &#039;ArrayRef[Str]&#03 +9; with value ARRAY(0x21b92a8) at /usr/lib64/perl5/vendor_perl/5.10.1 +/x86_64-linux/Moose/Meta/Attribute.pm line 1274 Moose::Meta::Attribute::verify_against_type_constraint(&#039;M +oose::Meta::Attribute=HASH(0x1c82350)&#039;, &#039;ARRAY(0x21b92a8)&# +039;, &#039;instance&#039;, &#039;Net::Twitter::Meta::Method=HASH(0x2 +1b8d08)&#039;) called at /usr/lib64/perl5/vendor_perl/5.10.1/x86_64-l +inux/Moose/Meta/Attribute.pm line 1261 Moose::Meta::Attribute::_coerce_and_verify(&#039;Moose::Meta:: +Attribute=HASH(0x1c82350)&#039;, &#039;ARRAY(0x21b92a8)&#039;, &#039; +Net::Twitter::Meta::Method=HASH(0x21b8d08)&#039;) called at /usr/lib6 +4/perl5/vendor_perl/5.10.1/x86_64-linux/Moose/Meta/Attribute.pm line +531 Moose::Meta::Attribute::initialize_instance_slot(&#039;Moose:: +Meta::Attribute=HASH(0x1c82350)&#039;, &#039;Moose::Meta::Instance=HA +SH(0x2077740)&#039;, &#039;Net::Twitter::Meta::Method=HASH(0x21b8d08) +&#039;, &#039;HASH(0xab69f8)&#039;) called at /usr/lib64/perl5/vendor +_perl/5.10.1/x86_64-linux/Class/MOP/Class.pm line 525 Class::MOP::Class::_construct_instance(&#039;Moose::Meta::Clas +s=HASH(0x2098b38)&#039;, &#039;HASH(0xab69f8)&#039;) called at /usr/l +ib64/perl5/vendor_perl/5.10.1/x86_64-linux/Class/MOP/Class.pm line 49 +8 Class::MOP::Class::new_object(&#039;Moose::Meta::Class=HASH(0x +2098b38)&#039;, &#039;HASH(0xab69f8)&#039;) called at /usr/lib64/perl +5/vendor_perl/5.10.1/x86_64-linux/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(&#039;Moose::Meta::Class=HASH(0 +x2098b38)&#039;, &#039;HASH(0xab69f8)&#039;) called at constructor Mo +ose::Meta::Method::_new (defined at /usr/lib64/perl5/vendor_perl/5.10 +.1/x86_64-linux/Moose.pm line 233) line 4
        :| Are there any other decent Twitter methods out there? (I prefer OO, as when/if twitter change their method - its a simple case of just updating it).
        Cheers

        Andy

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017824]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2015-07-01 20:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (19 votes), past polls