Skip Menu |

This queue is for tickets about the MooseX-Role-Cmd CPAN distribution.

Report information
The Basics
Id: 53067
Status: resolved
Priority: 0/
Queue: MooseX-Role-Cmd

People
Owner: Nobody in particular
Requestors: m.nooning [...] comcast.net
Cc:
AdminCc:

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



Subject: t/basic.t fails with "The get_attribute_map method has been deprecated"
MooseX::Role::Cmd fails to pass it's tests on Windows XP, Perl 5.8.8 with messages of the form "The get_attribute_map method has been deprecated". I also see "Cannot determine perl version info from lib/MooseX/Role/Cmd.pm" during the "perl Makefile.PL" stage. I tried with "cpan MooseX::Role::Cmd", and with the .gz download. Same messages. C:\temp\MooseX-Role-Cmd-0.06>nmake test Microsoft (R) Program Maintenance Utility Version 7.00.9466 Copyright (C) Microsoft Corporation. All rights reserved. C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/basic.t t/execution-Failure.t t/load.t t/traits.t t/basic.t .............. 1/7 Set up gcc environment - 3.4.5 (mingw special) The get_attribute_map method has been deprecated. at C:/Perl/site/lib/Class/MOP/Deprecated.pm line 210 Class::MOP::Class::get_attribute_map('Moose::Meta::Class=HASH(0x1fee9b8)') called at C:\temp\MooseX-Role-Cmd-0.06\blib\lib/MooseX/Role/Cmd.pm line 148 MooseX::Role::Cmd::cmd_args('Test::Cmd::Perl=HASH(0x2089ac4)') called at C:\temp\MooseX-Role-Cmd-0.06\blib\lib/MooseX/Role/Cmd.pm line 121 MooseX::Role::Cmd::run('Test::Cmd::Perl=HASH(0x2089ac4)') called at t/lib/Test/Cmd/Perl.pm line 12 Test::Cmd::Perl::output('Test::Cmd::Perl=HASH(0x2089ac4)') called at t/basic.t line 18 Could not find or check module 'IPC::Run' [THIS MAY BE A PROBLEM!] at C:/Perl/site/lib/IPC/Cmd.pm line 112 error running 'C:\Perl\bin\perl.EXE': 'C:\Perl\bin\perl.EXE -e print( join "/", @ARGV ), "\n"' exited with value 255 at C:\temp\MooseX-Role-Cmd-0.06\blib\lib/MooseX/Role/Cmd.pm line 127 MooseX::Role::Cmd::run('Test::Cmd::Perl=HASH(0x2089ac4)') called at t/lib/Test/Cmd/Perl.pm line 12 Test::Cmd::Perl::output('Test::Cmd::Perl=HASH(0x2089ac4)') called at t/basic.t line 18 # Looks like you planned 7 tests but ran 4. # Looks like your test exited with 255 just after 4. t/basic.t .............. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 3/7 subtests t/execution-Failure.t .. 1/? The get_attribute_map method has been deprecated. at C:/Perl/site/lib/Class/MOP/Deprecated.pm line 210 Class::MOP::Class::get_attribute_map() called at C:\temp\MooseX-Role-Cmd-0.06\blib\lib/MooseX/Role/Cmd.pm line 148 MooseX::Role::Cmd::cmd_args() called at C:\temp\MooseX-Role-Cmd-0.06\blib\lib/MooseX/Role/Cmd.pm line 121 MooseX::Role::Cmd::run() called at t/execution-Failure.t line 28 Test::Exception::throws_ok() called at t/execution-Failure.t line 28 t/execution-Failure.t .. ok t/load.t ............... ok t/traits.t ............. 1/10 The get_attribute_map method has been deprecated. at C:/Perl/site/lib/Class/MOP/Deprecated.pm line 210 Class::MOP::Class::get_attribute_map('Moose::Meta::Class=HASH(0x20f538c)') called at C:\temp\MooseX-Role-Cmd-0.06\blib\lib/MooseX/Role/Cmd.pm line 148 MooseX::Role::Cmd::cmd_args('Test::Cmd::Dir=HASH(0x232e408)') called at t/traits.t line 40 The get_attribute_map method has been deprecated. at C:/Perl/site/lib/Class/MOP/Deprecated.pm line 210 Class::MOP::Class::get_attribute_map('Moose::Meta::Class=HASH(0x20f3058)') called at C:\temp\MooseX-Role-Cmd-0.06\blib\lib/MooseX/Role/Cmd.pm line 148 MooseX::Role::Cmd::cmd_args('Test::Cmd::DirWithTraits=HASH(0x2383278)') called at t/traits.t line 54 t/traits.t ............. ok Test Summary Report ------------------- t/basic.t (Wstat: 65280 Tests: 4 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 7 tests but ran 4. Files=4, Tests=19, 3 wallclock secs ( 0.08 usr + 0.00 sys = 0.08 CPU) Result: FAIL Failed 1/4 test programs. 0/19 subtests failed. NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0xff' Stop.
Hi

On Thu Dec 24 18:31:20 2009, m.nooning@comcast.net wrote:
Show quoted text
> MooseX::Role::Cmd fails to pass it's tests on Windows XP, Perl 5.8.8
> with messages of the form "The get_attribute_map method has been
> deprecated".

I'm afraid I can't replicate the error you're getting - the smoke tests seem pretty clean on other systems too:

http://www.cpantesters.org/distro/M/MooseX-Role-Cmd.html#MooseX-Role-Cmd-0.06

Could you update this ticket with the versions of any modules you have loaded?

e.g. by running the following commands and copy/pasting the results:

cpan
look MooseX::Role::Cmd
perl -Ilib -d -MMooseX::Role::Cmd -e1
M


Subject: Re: [rt.cpan.org #53067] t/basic.t fails with "The get_attribute_map method has been deprecated"
Date: Mon, 04 Jan 2010 11:10:29 -0500
To: bug-MooseX-Role-Cmd [...] rt.cpan.org
From: Malcolm Nooning <m.nooning [...] comcast.net>
C:\>look MooseX::Role::Cmd look: /usr/share/dict/words: No such file or directory C:\>perl -Ilib -d -MMooseX::Role::Cmd -e1 Loading DB routines from perl5db.pl version 1.3 Editor support available. Enter h or `h h' for help, or `perldoc perldebug' for more help. Can't locate MooseX/Role/Cmd.pm in @INC (@INC contains: lib C:/Perl/site/lib C:/Perl/lib .). at -e line 0 main::BEGIN() called at MooseX/Role/Cmd.pm line 0 eval {...} called at MooseX/Role/Cmd.pm line 0 BEGIN failed--compilation aborted. at -e line 0 On 1/4/2010 7:19 AM, Ian Sillitoe via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=53067> > > Hi > > On Thu Dec 24 18:31:20 2009, m.nooning@comcast.net wrote: >
>> MooseX::Role::Cmd fails to pass it's tests on Windows XP, Perl 5.8.8 >> with messages of the form "The get_attribute_map method has been >> deprecated". >>
> I'm afraid I can't replicate the error you're getting - the smoke tests seem > pretty clean on other systems too: > > http://www.cpantesters.org/distro/M/MooseX-Role-Cmd.html#MooseX-Role-Cmd-0.06 > > Could you update this ticket with the versions of any modules you have loaded? > > e.g. by running the following commands and copy/pasting the results: > > cpan > look MooseX::Role::Cmd > perl -Ilib -d -MMooseX::Role::Cmd -e1 > M > > >
I should've been more explicit (lines starting with '#' are comments, prompt may change for your system but should give general idea).

Show quoted text
# open up cpan from current shell
C:\> cpan

Show quoted text
# use cpan to download the latest version of the module to tmp directory
# then start a new shell in that dir
cpan[1]> look MooseX::Role::Cmd

Show quoted text
# open up the perl debugger and load the MooseX::Role::Cmd into it (from local 'lib' directory)
C:\> perl -Ilib -d -MMooseX::Role::Cmd -e1

Show quoted text
#  ... perl debugger output ...

Show quoted text
# type 'M' then [return] ...

DB<1> M

Show quoted text
# you should get a list of modules that are currently loaded ...

'AutoLoader.pm' => '5.60 from /cath/opt/perl-5.8.8-centos4/lib/5.8.8/AutoLoader.pm'
'Carp.pm' => '1.04 from /cath/opt/perl-5.8.8-centos4/lib/5.8.8/Carp.pm'
'Carp/Heavy.pm' => '/cath/opt/perl-5.8.8-centos4/lib/5.8.8/Carp/Heavy.pm'
'Class/C3.pm' => '0.21 from /cath/opt/perl-5.8.8-centos4/lib/site_perl/5.8.8/Class/C3.pm'
'Class/C3/XS.pm' => '0.11 from /cath/opt/perl-5.8.8-centos4/lib/site_perl/5.8.8/x86_64-linux/Class/C3/XS.pm'
'Class/MOP.pm' => '0.94 from /cath/opt/perl-5.8.8-centos4/lib/site_perl/5.8.8/x86_64-linux/Class/MOP.pm'
'Class/MOP/Attribute.pm' => '0.94 from /cath/opt/perl-5.8.8-centos4/lib/site_perl/5.8.8/x86_64-linux/Class/MOP/Attribute.pm'
'Class/MOP/Class.pm' => '0.94 from /cath/opt/perl-5.8.8-centos4/lib/site_perl/5.8.8/x86_64-linux/Class/MOP/Class.pm'
'Class/MOP/Class/Immutable/Trait.pm' => '0.94 from /cath/opt/perl-5.8.8-centos4/lib/site_perl/5.8.8/x86_64-linux/Class/MOP/Class/Immutable/Trait.pm'
 
Show quoted text
# ... etc ...

Please could you copy and paste that list here ...

Subject: Re: [rt.cpan.org #53067] t/basic.t fails with "The get_attribute_map method has been deprecated"
Date: Mon, 04 Jan 2010 14:44:23 -0500
To: bug-MooseX-Role-Cmd [...] rt.cpan.org
From: Malcolm Nooning <m.nooning [...] comcast.net>

Message body is not shown because it is too large.

Hi Malcolm, Sorry for the long delay sorting this out (day job got in the way). As the title suggested - this was just a case of making the code compatible with newer versions of Moose (0.93 deprecated the use of meta->get_attribute_map). I uploaded new version to CPAN yesterday - please could you confirm if this fixes your problem and I'll sign this ticket off (or feel free to sign it off yourself). Best wishes, Ian
Subject: Re: [rt.cpan.org #53067] t/basic.t fails with "The get_attribute_map method has been deprecated"
Date: Mon, 15 Feb 2010 11:23:56 -0500
To: bug-MooseX-Role-Cmd [...] rt.cpan.org
From: Malcolm Nooning <m.nooning [...] comcast.net>
I upgraded my PC to 5.10.1, and it installed find on there, after I first installed some dependencies. I hope this means it will also install okay on 5.8.8. I am thinking that this ticket can now be closed out. Thanks for doing this. Ian Sillitoe via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=53067 > > > Hi Malcolm, > > Sorry for the long delay sorting this out (day job got in the way). As > the title suggested - this was just a case of making the code compatible > with newer versions of Moose (0.93 deprecated the use of > meta->get_attribute_map). > > I uploaded new version to CPAN yesterday - please could you confirm if > this fixes your problem and I'll sign this ticket off (or feel free to > sign it off yourself). > > Best wishes, > > Ian > >