Skip Menu |

This queue is for tickets about the Parse-CPAN-Meta CPAN distribution.

Report information
The Basics
Id: 76954
Status: open
Priority: 0/
Queue: Parse-CPAN-Meta

People
Owner: Nobody in particular
Requestors: jrw32982 [...] yahoo.com
Cc:
AdminCc:

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



Subject: version has wrong number of digits
Trying to install Moose using cpanm and local::lib. I got quite a ways into the Moose install and then hit this first error. On Ubuntu 10.10 with perl 5.10.1. I would be happy to rerun any tests you need (I can wipe out the local::lib and start again). $ perl -v This is perl, v5.10.1 (*) built for i686-linux-gnu-thread-multi (with 40 registered patches, see perl -V for more detail) from cpanm's build.log: ... --> Working on Parse::CPAN::Meta Fetching http://www.cpan.org/authors/id/D/DA/DAGOLDEN/Parse-CPAN-Meta-1.4404.tar.gz -> OK Unpacking Parse-CPAN-Meta-1.4404.tar.gz Entering Parse-CPAN-Meta-1.4404 Checking configure dependencies from META.yml Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.55_02) Configuring Parse-CPAN-Meta-1.4404 Running Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Parse::CPAN::Meta -> OK Checking dependencies from MYMETA.json ... Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.55_02) Checking if you have Test::More 0.47 ... Yes (0.98) Checking if you have JSON::PP 2.27200 ... Yes (2.27200) Checking if you have File::Spec 0.80 ... Yes (3.31) Checking if you have CPAN::Meta::YAML 0.008 ... Yes (0.008) Building and testing Parse-CPAN-Meta-1.4404 cp lib/Parse/CPAN/Meta.pm blib/lib/Parse/CPAN/Meta.pm Manifying blib/man3/Parse::CPAN::Meta.3pm PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01_compile.t .... ok # Failed test 'load_yaml_string using PERL_YAML_BACKEND' # at t/02_api.t line 89. # Structures begin differing at: # $got->{version} = '0.10101' # $expected->{version} = '0.101010' # Looks like you failed 1 test of 32. t/02_api.t ........ Dubious, test returned 1 (wstat 256, 0x100) Failed 1/32 subtests (less 2 skipped subtests: 29 okay) t/03_functions.t .. ok t/04_export.t ..... ok t/05_errors.t ..... ok Test Summary Report ------------------- t/02_api.t (Wstat: 256 Tests: 32 Failed: 1) Failed test: 13 Non-zero exit status: 1 Files=5, Tests=42, 0 wallclock secs ( 0.05 usr 0.01 sys + 0.15 cusr 0.02 csys = 0.23 CPU) Result: FAIL Failed 1/5 test programs. 1/42 subtests failed. make: *** [test_dynamic] Error 255 -> FAIL Installing Parse::CPAN::Meta failed. See /home/jrw/.cpanm/build.log for details.
On Wed May 02 23:54:55 2012, jrw wrote: Show quoted text
> Trying to install Moose using cpanm and local::lib. I got quite a ways > into the Moose install and then hit this first error. On Ubuntu 10.10 > with perl 5.10.1. I would be happy to rerun any tests you need (I can > wipe out the local::lib and start again).
That failure indicates a problem with using the YAML module as an alternative backend. That's likely a bug in YAML that this test is picking up. What version of YAML do you have installed? If it's not the latest, please upgrade and try again. If it *is* the latest, please downgrade to an older version and see if you can get it passing. Thank you! -- David
Subject: Re: [rt.cpan.org #76954] version has wrong number of digits
Date: Thu, 3 May 2012 13:54:55 -0700 (PDT)
To: "bug-Parse-CPAN-Meta [...] rt.cpan.org" <bug-Parse-CPAN-Meta [...] rt.cpan.org>
From: John Wiersba <jrw32982 [...] yahoo.com>
Thanks for your reply, David!  I may not have time tonight to look at this, but I'll be able to look tomorrow. Show quoted text
>________________________________ > From: David Golden via RT <bug-Parse-CPAN-Meta@rt.cpan.org> >To: jrw32982@yahoo.com >Sent: Thursday, May 3, 2012 10:33 AM >Subject: [rt.cpan.org #76954] version has wrong number of digits > ><URL: https://rt.cpan.org/Ticket/Display.html?id=76954 > > >On Wed May 02 23:54:55 2012, jrw wrote:
>> Trying to install Moose using cpanm and local::lib.  I got quite a ways >> into the Moose install and then hit this first error.  On Ubuntu 10.10 >> with perl 5.10.1.  I would be happy to rerun any tests you need (I can >> wipe out the local::lib and start again).
> >That failure indicates a problem with using the YAML module as an >alternative backend.  That's likely a bug in YAML that this test is >picking up.  What version of YAML do you have installed?  If it's not >the latest, please upgrade and try again.  If it *is* the latest, please >downgrade to an older version and see if you can get it passing. > >Thank you! > >-- David > > > >
Subject: Re: [rt.cpan.org #76954] version has wrong number of digits
Date: Sat, 5 May 2012 21:54:22 -0700 (PDT)
To: "bug-Parse-CPAN-Meta [...] rt.cpan.org" <bug-Parse-CPAN-Meta [...] rt.cpan.org>
From: John Wiersba <jrw32982 [...] yahoo.com>
David, I spent the last couple of days playing around with local::lib and cpanm.  The situation I reported to RT had to do with installing cpanm into an environment where an older version of YAML was already installed.  Due to the older version, a new version was not installed.  Then when Moose was installed after that, the issue I reported occurred. Another issue I found was with an environment where cpanm exists but its module dependencies do not (i.e. cpanm was copied from ~/perl5/bin/ after having been installed.  Cpanm still ran after that, but installing Moose with cpanm hit a different error. It looks like, after creating a new environment with local::lib, I have to install cpanm there in order to use cpanm subsequently.  Or at least stack environments, so that cpanm's dependencies have already been (virtually) installed in the newly-created local::lib environment.  So, it's not really possible to create a new, totally empty local::lib environment, if I'm planning to use cpanm to install into it.  This is due to the fact that at a minimum, I need cpanm's dependencies installed in order to use cpanm without error. Unfortunately, that means that all the App::cpanminus dependencies will leak through into every one of my local::lib environments and I won't be able to tell if those dependencies are only needed for running cpanm itself, or if they're dependencies of the target modules I'm installing. So, bottom line, when I create a local::lib environment and install App::cpanminus and then Moose into it, things work fine.  The problem I originally reported has to do with the way my local::lib environment was set up.  Do I need to do something to clean up the RT ticket I created? Thanks! (BTW, I also read your blog posts -- thanks for writing them!) -- John Show quoted text
>________________________________ > From: David Golden via RT <bug-Parse-CPAN-Meta@rt.cpan.org> >To: jrw32982@yahoo.com >Sent: Thursday, May 3, 2012 10:33 AM >Subject: [rt.cpan.org #76954] version has wrong number of digits > ><URL: https://rt.cpan.org/Ticket/Display.html?id=76954 > > >On Wed May 02 23:54:55 2012, jrw wrote:
>> Trying to install Moose using cpanm and local::lib.  I got quite a ways >> into the Moose install and then hit this first error.  On Ubuntu 10.10 >> with perl 5.10.1.  I would be happy to rerun any tests you need (I can >> wipe out the local::lib and start again).
> >That failure indicates a problem with using the YAML module as an >alternative backend.  That's likely a bug in YAML that this test is >picking up.  What version of YAML do you have installed?  If it's not >the latest, please upgrade and try again.  If it *is* the latest, please >downgrade to an older version and see if you can get it passing. > >Thank you! > >-- David > > > >
Subject: Re: [rt.cpan.org #76954] version has wrong number of digits
Date: Sun, 6 May 2012 15:17:36 -0400
To: bug-Parse-CPAN-Meta [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
Show quoted text
> So, bottom line, when I create a local::lib environment and install App::cpanminus and then Moose into it, things work fine.  The problem I originally reported has to do with the way my local::lib environment was set up.  Do I need to do something to clean up the RT ticket I created?
I'll clean up the ticket, but on the cpanm front, it sounds to me like you're doing something non-standard in the way you're using local::lib or cpanm that is causing problems. First, if you download the standalone cpanm client, that should be relocatable and work with a fresh local::lib -- but they you have to be sure not to install App::cpanminus into it. E.g. download cpanm into ~/bin (assuming that's in your path) and then use it installing things into your local::lib. Personally, I now usually just use perlbrew to get an up-to-date standalone perl installation and avoid local::lib entirely (though perlbrew lets you use a local::lib with a perlbrew, too, which is kind of cool.) If you still have snags, jump onto #toolchain on irc.perl.org and ask around for help. -- David