Subject: | 05meta.t fails "no such table: auths(1)" on OS X |
t/05meta.t fails with:
DBD::SQLite::db prepare failed: no such table: auths(1) at dbdimp.c line
271 at /Users/schwern/devel/CPAN-SQLite/lib/CPAN/SQLite/DBI/Search.pm
line 86.
# Looks like you planned 2515 tests but only ran 1.
Here's a stack trace from the debugger.
main::(t/05meta.t:62): my $auth = CPAN::Shell->expand("Author", $cpanid);
DB<2>
CPAN: CPAN::SQLite loaded ok (v0.18)
Creating database file ...
at /Users/schwern/devel/CPAN-SQLite/lib/CPAN/SQLite/META.pm line 308
CPAN::SQLite::META::reload('CPAN::SQLite::META=HASH(0x1c2bf9c)',
'time', 1187472335, 'force', 'undef') called at
/usr/local/perl/5.8.8/lib/CPAN.pm line 4584
CPAN::Index::reload('CPAN::Index') called at
/usr/local/perl/5.8.8/lib/CPAN.pm line 1124
CPAN::exists('CPAN=HASH(0x1b409fc)', 'CPAN::Author', 'LDS')
called at /usr/local/perl/5.8.8/lib/CPAN.pm line 2795
CPAN::Shell::expand_by_method('CPAN::Shell', 'CPAN::Author',
'ARRAY(0x1b2d3e8)', 'LDS') called at /usr/local/perl/5.8.8/lib/CPAN.pm
line 2715
CPAN::Shell::expand('CPAN::Shell', 'Author', 'LDS') called at
t/05meta.t line 62
Removing existing /var/local/cpan_shell/cpandb.sql
Gathering information from index files ...
Populating database tables ...
Done!
at /Users/schwern/devel/CPAN-SQLite/lib/CPAN/SQLite/META.pm line 316
CPAN::SQLite::META::reload('CPAN::SQLite::META=HASH(0x1c2bf9c)',
'time', 1187472335, 'force', 'undef') called at
/usr/local/perl/5.8.8/lib/CPAN.pm line 4584
CPAN::Index::reload('CPAN::Index') called at
/usr/local/perl/5.8.8/lib/CPAN.pm line 1124
CPAN::exists('CPAN=HASH(0x1b409fc)', 'CPAN::Author', 'LDS')
called at /usr/local/perl/5.8.8/lib/CPAN.pm line 2795
CPAN::Shell::expand_by_method('CPAN::Shell', 'CPAN::Author',
'ARRAY(0x1b2d3e8)', 'LDS') called at /usr/local/perl/5.8.8/lib/CPAN.pm
line 2715
CPAN::Shell::expand('CPAN::Shell', 'Author', 'LDS') called at
t/05meta.t line 62
DBD::SQLite::db prepare failed: no such table: auths(1) at dbdimp.c line
271 at /Users/schwern/devel/CPAN-SQLite/lib/CPAN/SQLite/DBI/Search.pm
line 86.
at /Users/schwern/devel/CPAN-SQLite/lib/CPAN/SQLite/DBI/Search.pm line 86
CPAN::SQLite::DBI::Search::fetch_and_set('CPAN::SQLite::DBI::Search::auths=HASH(0x1c8923c)',
'search', 'HASH(0x1c89650)', 'fields', 'ARRAY(0x1c896ec)', 'order_by',
'cpanid', 'table', 'auths', ...) called at
/Users/schwern/devel/CPAN-SQLite/lib/CPAN/SQLite/Search.pm line 112
CPAN::SQLite::Search::author::search('CPAN::SQLite::Search::author=HASH(0x1c87c50)',
'search', 'HASH(0x1c89650)', 'meta_obj',
'CPAN::SQLite::META::Author=HASH(0x1acf430)') called at
/Users/schwern/devel/CPAN-SQLite/lib/CPAN/SQLite/Search.pm line 78
CPAN::SQLite::Search::query('CPAN::SQLite::Search=HASH(0x1c88004)',
'query', 'undef', 'mode', 'undef', 'name', 'undef', 'id', 'undef', ...)
called at /Users/schwern/devel/CPAN-SQLite/lib/CPAN/SQLite.pm line 71
CPAN::SQLite::query('CPAN::SQLite=HASH(0x1c2b168)', 'mode',
'author', 'name', 'LDS', 'meta_obj',
'CPAN::SQLite::META::Author=HASH(0x1acf430)') called at
/Users/schwern/devel/CPAN-SQLite/lib/CPAN/SQLite/META.pm line 53
CPAN::SQLite::META::Author::set_one('CPAN::SQLite::META::Author=HASH(0x1acf430)')
called at /Users/schwern/devel/CPAN-SQLite/lib/CPAN/SQLite/META.pm line 20
CPAN::SQLite::META::set('CPAN::SQLite::META=HASH(0x1c2bf9c)',
'CPAN::Author', 'LDS') called at /usr/local/perl/5.8.8/lib/CPAN.pm line 1130
CPAN::exists('CPAN=HASH(0x1b409fc)', 'CPAN::Author', 'LDS')
called at /usr/local/perl/5.8.8/lib/CPAN.pm line 2795
CPAN::Shell::expand_by_method('CPAN::Shell', 'CPAN::Author',
'ARRAY(0x1b2d3e8)', 'LDS') called at /usr/local/perl/5.8.8/lib/CPAN.pm
line 2715
CPAN::Shell::expand('CPAN::Shell', 'Author', 'LDS') called at
t/05meta.t line 62
DBD::SQLite::db prepare failed: no such table: auths(1) at dbdimp.c line
271 at /Users/schwern/devel/CPAN-SQLite/lib/CPAN/SQLite/DBI/Search.pm
line 86.
# Looks like you planned 2515 tests but only ran 1.
Debugged program terminated. Use q to quit or R to restart,
use o inhibit_exit to avoid stopping after program termination,
h q, h R or h o to get additional info.
DB<2>
Here's some more info:
DB<2> x $CPAN::Config->{cpan_home}
0 '/Users/schwern/devel/CPAN-SQLite/t/dot-cpan'
Looking at /Users/schwern/devel/CPAN-SQLite/t/dot-cpan/cpandb.sql via
sqlite confirms there are no tables...
0 windhund ~/devel/CPAN-SQLite/t/dot-cpan$ sqlite3 cpandb.sql
SQLite version 3.1.3
Enter ".help" for instructions
Show quoted text
sqlite> .tables
sqlite>