Skip Menu |

This queue is for tickets about the CPAN-SQLite CPAN distribution.

Report information
The Basics
Id: 71323
Status: resolved
Worked: 4 hours (240 min)
Priority: 0/
Queue: CPAN-SQLite

People
Owner: stro [...] cpan.org
Requestors: RWSTAUNER [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.202
Fixed in: 0.203



Subject: database missing module with undeclared version
The cpan client cannot find YAML::Any: -- $ cpan YAML::Any CPAN: Term::ANSIColor loaded ok (v3.01) CPAN: File::HomeDir loaded ok (v0.98) CPAN: CPAN::SQLite loaded ok (v0.202) Database was generated on Wed, 28 Sep 2011 23:40:25 GMT Warning: Cannot install YAML::Any, don't know what it is. Try the command i /YAML::Any/ to find objects with matching identifiers. CPAN: Time::HiRes loaded ok (v1.972101) -- Even though it is listed in 02packages.details.txt.gz: YAML::Any 0.72 I/IN/INGY/YAML-0.73.tar.gz However the latest release of YAML (0.76) the YAML::Any package does not specify a $VERSION. cpandb does not index the module: -- *sqlite> SELECT d.dist_name, d.dist_vers, m.mod_name, m.mod_vers FROM mods m INNER JOIN dists d ON d.dist_id = m.dist_id WHERE d.dist_name = 'YAML'; dist dist_vers mod_ mod_ ---- ------------- ---- ---- YAML 0.76 YAML 0.76 YAML 0.76 Test::YAML 0.74 YAML 0.76 YAML::Mo -- YAML-0.76 actually contains a number of other modules that are not saved in the DB: -- *$ zgrep INGY/YAML-0 /home/rando/.cpan/sources/modules/02packages.details.txt.gz Test::YAML 0.74 I/IN/INGY/YAML-0.76.tar.gz YAML 0.76 I/IN/INGY/YAML-0.76.tar.gz YAML::Any 0.72 I/IN/INGY/YAML-0.73.tar.gz YAML::Base 0.72 I/IN/INGY/YAML-0.73.tar.gz YAML::Dumper 0.72 I/IN/INGY/YAML-0.73.tar.gz YAML::Dumper::Base 0.72 I/IN/INGY/YAML-0.73.tar.gz YAML::Error 0.72 I/IN/INGY/YAML-0.73.tar.gz YAML::Loader 0.72 I/IN/INGY/YAML-0.73.tar.gz YAML::Loader::Base 0.72 I/IN/INGY/YAML-0.73.tar.gz YAML::Marshall 0.72 I/IN/INGY/YAML-0.73.tar.gz YAML::Mo undef I/IN/INGY/YAML-0.76.tar.gz YAML::Node 0.72 I/IN/INGY/YAML-0.73.tar.gz YAML::Tag 0.72 I/IN/INGY/YAML-0.73.tar.gz YAML::Types 0.72 I/IN/INGY/YAML-0.73.tar.gz -- See Also: https://metacpan.org/release/YAML According to the 02packages file YAML::Any used to have a version (back in 0.73) but it doesn't any more.
Sorry for the late reply, I had a newborn kid and then relocated to another country recently -- which means I had some negative value of time to spend on Perl activities. This problem is most likely caused by incomplete indexing. Current implementation runs re-indexing task as a separate process, and if it gets killed for some reason, CPAN shell thinks it's OK, because it never checks the return value (and frankly, no success/failure return code is set). I have plans to fix this problem, because I've encountered this myself and was not happy about it, but I need a lot of spare tuits which I don't have now. Maybe on these holidays if I have a time. There's an easy workaround for this: removing database file (cpandb.sql) will force re-indexing. Running "reload index" in CPAN shell should help too. On Wed Sep 28 21:11:32 2011, RWSTAUNER wrote: Show quoted text
> The cpan client cannot find YAML::Any: > > -- > > $ cpan YAML::Any > CPAN: Term::ANSIColor loaded ok (v3.01) > CPAN: File::HomeDir loaded ok (v0.98) > CPAN: CPAN::SQLite loaded ok (v0.202) > Database was generated on Wed, 28 Sep 2011 23:40:25 GMT > Warning: Cannot install YAML::Any, don't know what it is. > Try the command > > i /YAML::Any/ > > to find objects with matching identifiers. > CPAN: Time::HiRes loaded ok (v1.972101) > > -- > > Even though it is listed in 02packages.details.txt.gz: > > YAML::Any 0.72 I/IN/INGY/YAML-0.73.tar.gz > > However the latest release of YAML (0.76) > the YAML::Any package does not specify a $VERSION. > > cpandb does not index the module: > > -- > > *sqlite> SELECT d.dist_name, d.dist_vers, m.mod_name, m.mod_vers FROM > mods m INNER JOIN dists d ON d.dist_id = m.dist_id WHERE d.dist_name = > 'YAML'; > dist dist_vers mod_ mod_ > ---- ------------- ---- ---- > YAML 0.76 YAML 0.76 > YAML 0.76 Test::YAML 0.74 > YAML 0.76 YAML::Mo > > -- > > YAML-0.76 actually contains a number of other modules that are not saved > in the DB: > > -- > > *$ zgrep INGY/YAML-0 > /home/rando/.cpan/sources/modules/02packages.details.txt.gz > Test::YAML 0.74 I/IN/INGY/YAML-0.76.tar.gz > YAML 0.76 I/IN/INGY/YAML-0.76.tar.gz > YAML::Any 0.72 I/IN/INGY/YAML-0.73.tar.gz > YAML::Base 0.72 I/IN/INGY/YAML-0.73.tar.gz > YAML::Dumper 0.72 I/IN/INGY/YAML-0.73.tar.gz > YAML::Dumper::Base 0.72 I/IN/INGY/YAML-0.73.tar.gz > YAML::Error 0.72 I/IN/INGY/YAML-0.73.tar.gz > YAML::Loader 0.72 I/IN/INGY/YAML-0.73.tar.gz > YAML::Loader::Base 0.72 I/IN/INGY/YAML-0.73.tar.gz > YAML::Marshall 0.72 I/IN/INGY/YAML-0.73.tar.gz > YAML::Mo undef I/IN/INGY/YAML-0.76.tar.gz > YAML::Node 0.72 I/IN/INGY/YAML-0.73.tar.gz > YAML::Tag 0.72 I/IN/INGY/YAML-0.73.tar.gz > YAML::Types 0.72 I/IN/INGY/YAML-0.73.tar.gz > > -- > > See Also: https://metacpan.org/release/YAML > > According to the 02packages file YAML::Any used to have a version (back > in 0.73) but it doesn't any more.
-- Serguei Trouchelle
This issue should be fixed in version 0.203. Feel free to reopen ticket if the problem still persists. -- Serguei Trouchelle