Skip Menu |

This queue is for tickets about the MySQL-Slurp CPAN distribution.

Report information
The Basics
Id: 130141
Status: new
Priority: 0/
Queue: MySQL-Slurp

People
Owner: Nobody in particular
Requestors: violapiratejunky [...] gmail.com
Cc:
AdminCc:

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



Subject: Tests fail and so does install
I tried installing this module, but got this error: # Failed test 'use MySQL::Slurp;' # at t/MySQL-Slurp.t line 9. # Tried to use 'MySQL::Slurp'. # Error: You can only consume roles, MooseX::Getopt is not a Moose role at /usr/local/lib64/perl5/Moose/Exporter.pm line 419 # Moose::with('MooseX::Getopt') called at /root/.cpanm/work/1563803342.30685/MySQL-Slurp-0.28/blib/lib/MySQL/Slurp.pm line 19 # require MySQL/Slurp.pm at t/MySQL-Slurp.t line 9 # main::BEGIN at /root/.cpanm/work/1563803342.30685/MySQL-Slurp-0.28/blib/lib/MySQL/Slurp.pm line 0 # eval {...} at /root/.cpanm/work/1563803342.30685/MySQL-Slurp-0.28/blib/lib/MySQL/Slurp.pm line 0 # eval 'package main; # BEGIN { ${^WARNING_BITS} = $args[-1] if defined $args[-1] } # #line 9 t/MySQL-Slurp.t # use MySQL::Slurp @{$args[0]}; # 1; #· # ;' at /usr/local/share/perl5/Test/More.pm line 1032 # Test::More::_eval('package main;^JBEGIN { ${^WARNING_BITS} = $args[-1] if defined $args[-1] }^J#line 9 t/MySQL-Slurp.t^Juse MySQL::Slurp @{$args[0]};^J1;^J', 'ARRAY(0x1a5dea0)', 'UUUUUUUUUUUUU^A') called at /usr/local/share/perl5/Test/More.pm line 1007 # Test::More::use_ok('MySQL::Slurp') called at t/MySQL-Slurp.t line 9 # main::BEGIN at /root/.cpanm/work/1563803342.30685/MySQL-Slurp-0.28/blib/lib/MySQL/Slurp.pm line 0 # eval {...} at /root/.cpanm/work/1563803342.30685/MySQL-Slurp-0.28/blib/lib/MySQL/Slurp.pm line 0 # Compilation failed in require at t/MySQL-Slurp.t line 9. # BEGIN failed--compilation aborted at t/MySQL-Slurp.t line 9. #· # Testing Attributes Can't locate object method "database" via package "MySQL::Slurp" at t/MySQL-Slurp.t line 33. # Looks like your test exited with 255 just after 2. t/MySQL-Slurp.t .........· Dubious, test returned 255 (wstat 65280, 0xff00) Failed 13/14 subtests·
Ah, looks like this should be declared as a dependency: MooseX::Getopt On Mon Jul 22 09:55:01 2019, srchulo wrote: Show quoted text
> I tried installing this module, but got this error: > > # Failed test 'use MySQL::Slurp;' > # at t/MySQL-Slurp.t line 9. > # Tried to use 'MySQL::Slurp'. > # Error: You can only consume roles, MooseX::Getopt is not a > Moose role at /usr/local/lib64/perl5/Moose/Exporter.pm line 419 > # Moose::with('MooseX::Getopt') called at > /root/.cpanm/work/1563803342.30685/MySQL-Slurp- > 0.28/blib/lib/MySQL/Slurp.pm line 19 > # require MySQL/Slurp.pm at t/MySQL-Slurp.t line 9 > # main::BEGIN at /root/.cpanm/work/1563803342.30685/MySQL-Slurp- > 0.28/blib/lib/MySQL/Slurp.pm line 0 > # eval {...} at /root/.cpanm/work/1563803342.30685/MySQL-Slurp- > 0.28/blib/lib/MySQL/Slurp.pm line 0 > # eval 'package main; > # BEGIN { ${^WARNING_BITS} = $args[-1] if defined $args[-1] } > # #line 9 t/MySQL-Slurp.t > # use MySQL::Slurp @{$args[0]}; > # 1; > #· > # ;' at /usr/local/share/perl5/Test/More.pm line 1032 > # Test::More::_eval('package main;^JBEGIN { ${^WARNING_BITS} = > $args[-1] if defined $args[-1] }^J#line 9 t/MySQL-Slurp.t^Juse > MySQL::Slurp @{$args[0]};^J1;^J', 'ARRAY(0x1a5dea0)', > 'UUUUUUUUUUUUU^A') called at /usr/local/share/perl5/Test/More.pm line > 1007 > # Test::More::use_ok('MySQL::Slurp') called at t/MySQL-Slurp.t line > 9 > # main::BEGIN at /root/.cpanm/work/1563803342.30685/MySQL-Slurp- > 0.28/blib/lib/MySQL/Slurp.pm line 0 > # eval {...} at /root/.cpanm/work/1563803342.30685/MySQL-Slurp- > 0.28/blib/lib/MySQL/Slurp.pm line 0 > # Compilation failed in require at t/MySQL-Slurp.t line 9. > # BEGIN failed--compilation aborted at t/MySQL-Slurp.t line 9. > #· > # Testing Attributes > Can't locate object method "database" via package "MySQL::Slurp" at > t/MySQL-Slurp.t line 33. > # Looks like your test exited with 255 just after 2. > t/MySQL-Slurp.t .........· > Dubious, test returned 255 (wstat 65280, 0xff00) > Failed 13/14 subtests·