Skip Menu |

This queue is for tickets about the BackPAN-Index CPAN distribution.

Report information
The Basics
Id: 56665
Status: resolved
Priority: 0/
Queue: BackPAN-Index

People
Owner: Nobody in particular
Requestors: daxim [...] cpan.org
Cc:
AdminCc:

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



Subject: backpan-init broken
I have the newest version of everything. Show quoted text
> git backpan-init Format::Human::Bytes
Prototype mismatch: sub Git::CPAN::Patch::Import::chmod (@) vs none at /home/daxim/local/lib/perl5/5.10.1/Exporter.pm line 67. at /home/daxim/local/lib/perl5/site_perl/5.10.1/Git/CPAN/Patch/Import.pm line 13 Loading BackPAN index (this may take a while) Dynamic schema detected, will run in 0.04006 mode. Set the 'naming' attribute or the SCHEMA_LOADER_BACKCOMPAT environment variable to disable this warning. Also consider setting 'use_namespaces => 1' if/when upgrading. See perldoc DBIx::Class::Schema::Loader::Manual::UpgradingFromV4 for more details. DBIx::Class::Storage::DBI::__ANON__(): DBI Exception: DBD::SQLite::st execute failed: constraint failed releases.cpanid may not be NULL [for Statement " INSERT INTO releases (path, dist, version, date, size, maturity, cpanid, distvname) VALUES (?, ?, ?, ?, ?, ?, ?, ? ) "] at /home/daxim/local/lib/perl5/site_perl/5.10.1/BackPAN/Index.pm line 172
Reproduced on my machine: $ git backpan-init Format::Human::Bytes Loading BackPAN index (this may take a while) Dynamic schema detected, will run in 0.04006 mode. Set the 'naming' attribute or the SCHEMA_LOADER_BACKCOMPAT environment variable to disable this warning. Also consider setting 'use_namespaces => 1' if/when upgrading. See perldoc DBIx::Class::Schema::Loader::Manual::UpgradingFromV4 for more details. DBIx::Class::Storage::DBI::__ANON__(): DBI Exception: DBD::SQLite::st execute failed: constraint failed releases.cpanid may not be NULL [for Statement " INSERT INTO releases (path, dist, version, date, size, maturity, cpanid, distvname) VALUES (?, ?, ?, ?, ?, ?, ?, ? ) "] at /home/yanick/perl5/perlbrew/perls/perl-5.12.0/lib/site_perl/5.12.0/BackPAN/Index.pm line 172
Ah, so I can punt tickets to other queues. Excellent. :-) Anyway, it seems that the latest version of a DBIx depedency of BackPAN::Index is causing it to crash and burn. I'll come up with a tentative patch real soon, stay tuned!
I have a fix for this already in the BackPAN::Index repo. http://github.com/acme/parse-backpan-packages/commit/6b3ce4f4484c41dc5f49ff25fb9629e7fc61fea9 I haven't really properly evaluated it so I didn't make a release. I probably should at least push out an alpha.
On Sat Apr 17 13:14:17 2010, MSCHWERN wrote: Show quoted text
> I have a fix for this already in the BackPAN::Index repo. > http://github.com/acme/parse-backpan- > packages/commit/6b3ce4f4484c41dc5f49ff25fb9629e7fc61fea9 > > I haven't really properly evaluated it so I didn't make a release. I > probably should at least push out an alpha.
Talk about quick response time! :-) I've d/l'ed a copy and started looking at it. It looks like there's still a problem with dists that don't have a cpanid. It means that in BackPAN::Index line 179 (I'll annotate the GitHub copy), the query can turn out to be rejected because cpanid can't be NULL. The part that I don't know is if we want to keep those entries (so have a ' $i->cpanid || ''), or just ignore then (so just wrap the whole thing in an eval{})
I've kicked out 0.39 which should solve the problem. Really BackPAN::Index should skip with a cached version of the schema and just depended on DBIx::Class. I haven't figured a way to do that yet.
Subject: Re: [rt.cpan.org #56665] backpan-init broken
Date: Sat, 17 Apr 2010 22:06:44 +0300
To: bug-BackPAN-Index [...] rt.cpan.org
From: Michael G Schwern <schwern [...] pobox.com>
Yanick Champoux via RT wrote: Show quoted text
> On Sat Apr 17 13:14:17 2010, MSCHWERN wrote:
>> I have a fix for this already in the BackPAN::Index repo. >> http://github.com/acme/parse-backpan- >> packages/commit/6b3ce4f4484c41dc5f49ff25fb9629e7fc61fea9 >> >> I haven't really properly evaluated it so I didn't make a release. I >> probably should at least push out an alpha.
> > Talk about quick response time! :-) > > I've d/l'ed a copy and started looking at it. It looks like there's > still a problem with dists that don't have a cpanid.
Like all the junk in ports and src? Show quoted text
> It means that in > BackPAN::Index line 179 (I'll annotate the GitHub copy), the query can > turn out to be rejected because cpanid can't be NULL. The part that I > don't know is if we want to keep those entries (so have a ' $i->cpanid > || ''), or just ignore then (so just wrap the whole thing in an eval{})
I guess I always run it with the default, releases_only_from_authors, so I don't notice. PBP might not have that as a default. -- s7ank: i want to be one of those guys that types "s/j&jd//.^$ueu*///djsls/sm." and it's a perl script that turns dog crap into gold.
Installed BackPAN-Index-0.39.tar.gz, but still fails: Show quoted text
> git backpan-init Format::Human::Bytes
Prototype mismatch: sub Git::CPAN::Patch::Import::chmod (@) vs none at /home/daxim/local/lib/perl5/5.10.1/Exporter.pm line 67. at /home/daxim/local/lib/perl5/site_perl/5.10.1/Git/CPAN/Patch/Import.pm line 13 Loading BackPAN index (this may take a while) DBIx::Class::Relationship::HasOne::might_have(): "might_have/has_one" must not be on columns with is_nullable set to true (BackPAN::Index::File/path). This might indicate an incorrect use of those relationship helpers instead of belongs_to. at /tmp/dbicGP7J/BackPAN/Index/File.pm line 59 DBIx::Class::Storage::DBI::__ANON__(): DBI Exception: DBD::SQLite::st execute failed: constraint failed releases.cpanid may not be NULL [for Statement " INSERT INTO releases (path, dist, version, date, size, maturity, cpanid, distvname) VALUES (?, ?, ?, ?, ?, ?, ?, ? ) "] at /home/daxim/local/lib/perl5/site_perl/5.10.1/BackPAN/Index.pm line 172
On Sat Apr 17 17:32:51 2010, DAXIM wrote: Show quoted text
> DBIx::Class::Storage::DBI::__ANON__(): DBI Exception: DBD::SQLite::st > execute failed: constraint failed > releases.cpanid may not be NULL [for Statement " > INSERT INTO releases > (path, dist, version, date, size, maturity, cpanid, > distvname) > VALUES (?, ?, ?, ?, ?, ?, ?, ? > ) > "] at > /home/daxim/local/lib/perl5/site_perl/5.10.1/BackPAN/Index.pm line 172
The latest version out of the repository fixes that. DBIx::Class changed out from under us and now requires foreign keys to be NOT NULL.
Ping?  Has this been resolved?  I'm not even sure who owns git-backpan-index any more.
No reply in two years, calling it resolved.