Subject: | DBD::SQLite::db prepare failed: no such column: dist.dist_without_version(1) |
Using a recent sqlite db file from cpants, I get this error:
DBD::SQLite::db prepare failed: no such column:
dist.dist_without_version(1) at dbdimp.c line 271 at
/usr/local/share/perl/5.10.0/CPAN/Dependency.pm line 598.
When trying to run code very similar to the CPAN::Dependency SYNOPSIS.
use CPAN::Dependency;
my $cpandep = new CPAN::Dependency;
$cpandep->load_cpants_db(file => $cpants_db_file);
$cpandep->calculate_score;
my %score = $cpandep->score_by_dists;
my @dists = sort { $score{$b} <=> $score{$a} } keys %score;
print "Top 10 modules\n";
for my $dist (@dists[0..9]) {
printf "%5d %s\n", $score{$dist}, $dist;
}
Versions:
CPAN-Dependency-0.15
This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi
Linux fineline 2.6.24-16-generic #1 SMP Thu Apr 10 12:47:45 UTC 2008
x86_64 GNU/Linux