Skip Menu |

This queue is for tickets about the DBIx-Table-TestDataGenerator CPAN distribution.

Report information
The Basics
Id: 81685
Status: resolved
Priority: 0/
Queue: DBIx-Table-TestDataGenerator

People
Owner: JDS [...] cpan.org
Requestors: bohica [...] ntlworld.com
Cc:
AdminCc:

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



Subject: Requires Moo but it is not in the META dependency list
I attempted to install via CPAN shell and it finally failed with the output below. It appears this module needs Moo but it is not in the dependency list. Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'DBIx-Table-TestDataGenerator' version '0.001' Building DBIx-Table-TestDataGenerator JDS/DBIx-Table-TestDataGenerator-0.001.tar.gz ./Build -- OK Running Build test t/00-load.t .................... 1/3 Bailout called. Further testing stopped: # Failed test 'use DBIx::Table::TestDataGenerator;' # at t/00-load.t line 6. # Tried to use 'DBIx::Table::TestDataGenerator'. # Error: Can't locate Moo.pm in @INC (@INC contains: /home/martin/.cpan/build/DBIx-Table-TestDataGenerator-0.001-0jwnPX/blib/lib /home/martin/.cpan/build/DBIx-Table-TestDataGenerator-0.001-0jwnPX/blib/arch /home/martin/.cpan/build/DBIx-Table-TestDataGenerator-0.001-0jwnPX/_build/lib /home/martin/perl5/perlbrew/perls/perl-5.16.0/lib/site_perl/5.16.0/i686-linux /home/martin/perl5/perlbrew/perls/perl-5.16.0/lib/site_perl/5.16.0 /home/martin/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/i686-linux /home/martin/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0) at /home/martin/.cpan/build/DBIx-Table-TestDataGenerator-0.001-0jwnPX/blib/lib/DBIx/Table/TestDataGenerator.pm line 2. # BEGIN failed--compilation aborted at /home/martin/.cpan/build/DBIx-Table-TestDataGenerator-0.001-0jwnPX/blib/lib/DBIx/Table/TestDataGenerator.pm line 2. # Compilation failed in require at (eval 4) line 2. # BEGIN failed--compilation aborted at (eval 4) line 2. # Failed test 'use DBIx::Table::TestDataGenerator::TableProbe;' # at t/00-load.t line 7. # Tried to use 'DBIx::Table::TestDataGenerator::TableProbe'. # Error: Can't locate Moo/Role.pm in @INC (@INC contains: /home/martin/.cpan/build/DBIx-Table-TestDataGenerator-0.001-0jwnPX/blib/lib /home/martin/.cpan/build/DBIx-Table-TestDataGenerator-0.001-0jwnPX/blib/arch /home/martin/.cpan/build/DBIx-Table-TestDataGenerator-0.001-0jwnPX/_build/lib /home/martin/perl5/perlbrew/perls/perl-5.16.0/lib/site_perl/5.16.0/i686-linux /home/martin/perl5/perlbrew/perls/perl-5.16.0/lib/site_perl/5.16.0 /home/martin/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/i686-linux /home/martin/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0) at /home/martin/.cpan/build/DBIx-Table-TestDataGenerator-0.001-0jwnPX/blib/lib/DBIx/Table/TestDataGenerator/TableProbe.pm line 2. # BEGIN failed--compilation aborted at /home/martin/.cpan/build/DBIx-Table-TestDataGenerator-0.001-0jwnPX/blib/lib/DBIx/Table/TestDataGenerator/TableProbe.pm line 2. # Compilation failed in require at (eval 5) line 2. # BEGIN failed--compilation aborted at (eval 5) line 2. # Failed test 'use DBIx::Table::TestDataGenerator::TreeUtils;' # at t/00-load.t line 8. # Tried to use 'DBIx::Table::TestDataGenerator::TreeUtils'. # Error: Can't locate Moo.pm in @INC (@INC contains: /home/martin/.cpan/build/DBIx-Table-TestDataGenerator-0.001-0jwnPX/blib/lib /home/martin/.cpan/build/DBIx-Table-TestDataGenerator-0.001-0jwnPX/blib/arch /home/martin/.cpan/build/DBIx-Table-TestDataGenerator-0.001-0jwnPX/_build/lib /home/martin/perl5/perlbrew/perls/perl-5.16.0/lib/site_perl/5.16.0/i686-linux /home/martin/perl5/perlbrew/perls/perl-5.16.0/lib/site_perl/5.16.0 /home/martin/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/i686-linux /home/martin/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0) at /home/martin/.cpan/build/DBIx-Table-TestDataGenerator-0.001-0jwnPX/blib/lib/DBIx/Table/TestDataGenerator/TreeUtils.pm line 2. # BEGIN failed--compilation aborted at /home/martin/.cpan/build/DBIx-Table-TestDataGenerator-0.001-0jwnPX/blib/lib/DBIx/Table/TestDataGenerator/TreeUtils.pm line 2. # Compilation failed in require at (eval 6) line 2. # BEGIN failed--compilation aborted at (eval 6) line 2. # Testing DBIx::Table::TestDataGenerator , Perl 5.016000, /home/martin/perl5/perlbrew/perls/perl-5.16.0/bin/perl # Looks like you failed 3 tests of 3. FAILED--Further testing stopped. JDS/DBIx-Table-TestDataGenerator-0.001.tar.gz ./Build test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports JDS/DBIx-Table-TestDataGenerator-0.001.tar.gz Running Build install make test had returned bad status, won't install without force Failed during this command: JDS/DBIx-Table-TestDataGenerator-0.001.tar.gz: make_test NO Martin -- Martin J. Evans Wetherby, UK
On Tue Dec 04 04:33:01 2012, MJEVANS wrote: Show quoted text
> I attempted to install via CPAN shell and it finally failed with the > output below. It appears this module needs Moo but it is not in the > dependency list.
Then when you install Moo it fails installation because it needs DBD::SQLite. I wasn't even going to use it with SQLite. Martin -- Martin J. Evans Wetherby, UK
Am Di 04. Dez 2012, 04:35:14, MJEVANS schrieb: Show quoted text
> Then when you install Moo it fails installation because it needs > DBD::SQLite. I wasn't even going to use it with SQLite.
The reason that DBD::SQLite is required is that I need a database to run the install tests against. DBD::SQLite allows to build an in-memory database to run the tests on. An alternative would be to check for appropriate environment variables which can be used to define a database connection, e.g. to an Oracle database and if those have been found, use the existing database to run the tests on.
Subject: Re: [rt.cpan.org #81685] Requires Moo but it is not in the META dependency list
Date: Tue, 04 Dec 2012 23:05:23 +0000
To: bug-DBIx-Table-TestDataGenerator [...] rt.cpan.org
From: "Martin J. Evans" <bohica [...] ntlworld.com>
On 04/12/2012 22:37, José Diaz Seng via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=81685 > > > Am Di 04. Dez 2012, 04:35:14, MJEVANS schrieb:
>> Then when you install Moo it fails installation because it needs >> DBD::SQLite. I wasn't even going to use it with SQLite.
> > The reason that DBD::SQLite is required is that I need a database to run > the install tests against. DBD::SQLite allows to build an in-memory > database to run the tests on.
So, if DBD::SQLite is not installed skip the tests. You should not require DBD::SQLite if it is not really required and if it is really required them add it to the test_requires section. Show quoted text
> An alternative would be to check for appropriate environment variables > which can be used to define a database connection, e.g. to an Oracle > database and if those have been found, use the existing database to run > the tests on.
This is the same issue just about all DBDs have. They check DBI_DSN, DBI_USER and DBI_PASS and if they cannot get a successful connection they skip the tests. It is not unusual to find someone installing a module via CPAN shell etc without having a valid DBD installed or the environment variables set. Martin -- Martin J. Evans Wetherby, UK
Missing dependency has been added.