andrewrjones / perl5-WebService-TVDB

A Perl interface to http://thetvdb.com/
https://metacpan.org/module/WebService::TVDB
4 stars 6 forks source link

Can't install from CPAN, language test fail #21

Open jimgraham opened 10 years ago

jimgraham commented 10 years ago

I attempted to install from CPAN. I have a TVDB api key in ~/.tvdb. The tests fail in checking the generated languages. If I force install the module, it won't work because the Languages.pm only contains ALL and needs the default for English

cpan[1]> install WebService::TVDB
Reading '/Users/jim/.cpan/Metadata'
  Database was generated on Tue, 28 Jan 2014 12:17:02 GMT
Running install for module 'WebService::TVDB'
Running make for A/AR/ARJONES/WebService-TVDB-1.133200.tar.gz
Checksum for /Users/jim/.cpan/sources/authors/id/A/AR/ARJONES/WebService-TVDB-1.133200.tar.gz ok
Scanning cache /Users/jim/.cpan/build for sizes
............................................................................DONE

  CPAN.pm: Building A/AR/ARJONES/WebService-TVDB-1.133200.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for WebService::TVDB
Writing MYMETA.yml and MYMETA.json
cp lib/WebService/TVDB/Util.pm blib/lib/WebService/TVDB/Util.pm
cp lib/WebService/TVDB/Languages.pm blib/lib/WebService/TVDB/Languages.pm
cp lib/WebService/TVDB/Actor.pm blib/lib/WebService/TVDB/Actor.pm
cp lib/WebService/TVDB.pm blib/lib/WebService/TVDB.pm
cp lib/WebService/TVDB/Series.pm blib/lib/WebService/TVDB/Series.pm
cp lib/WebService/TVDB/Banner.pm blib/lib/WebService/TVDB/Banner.pm
cp lib/WebService/TVDB/Servertime.pm blib/lib/WebService/TVDB/Servertime.pm
cp lib/WebService/TVDB/Episode.pm blib/lib/WebService/TVDB/Episode.pm
Manifying blib/man3/WebService::TVDB::Util.3pm
Manifying blib/man3/WebService::TVDB::Languages.3pm
Manifying blib/man3/WebService::TVDB::Actor.3pm
Manifying blib/man3/WebService::TVDB.3pm
Manifying blib/man3/WebService::TVDB::Series.3pm
Manifying blib/man3/WebService::TVDB::Banner.3pm
Manifying blib/man3/WebService::TVDB::Servertime.3pm
Manifying blib/man3/WebService::TVDB::Episode.3pm
  ARJONES/WebService-TVDB-1.133200.tar.gz
  /usr/bin/make -- OK
'YAML' not installed, will not store persistent state
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-compile.t ................... ok   
t/000-report-versions-tiny.t ..... # 
# 
# Generated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.10
# perl: 5.016002 (wanted any version) on darwin from /usr/bin/perl
# 
# Archive::Zip                                  => 1.30       (want any version)
# Carp                                          => 1.26       (want any version)
# Exporter                                      => 5.66       (want any version)
# ExtUtils::MakeMaker                           => 6.6302     (want 6.30)   
# File::Basename                                => 2.84       (want any version)
# File::HomeDir                                 => 1.00       (want any version)
# File::Path                                    => 2.08_01    (want any version)
# File::Spec                                    => 3.39_02    (want any version)
# FindBin                                       => 1.51       (want any version)
# HTTP::Online                                  => 0.02       (want any version)
# IO::Handle                                    => 1.33       (want any version)
# IPC::Open3                                    => 1.12       (want any version)
# LWP::Simple                                   => 6.00       (want any version)
# Net::Ping                                     => 2.38       (want 2.33)   
# Object::Tiny                                  => 1.08       (want any version)
# Test::Exception                               => 0.31       (want any version)
# Test::More                                    => 0.98       (want 0.88)   
# URI::Escape                                   => 3.31       (want any version)
# XML::Simple                                   => 2.20       (want any version)
# constant                                      => 1.23       (want any version)
# strict                                        => 1.07       (want any version)
# warnings                                      => 1.13       (want any version)
# 
# Thanks for using my code.  I hope it works for you.
# If not, please try and include this output in the bug report.
# That will help me reproduce the issue and solve your problem.
# 
t/000-report-versions-tiny.t ..... ok   
t/05_actor.t ..................... ok   
t/05_banner.t .................... ok   
t/05_episode.t ................... ok   
t/05_languages.t ................. 1/5 
#   Failed test ' we have English '
#   at t/05_languages.t line 18.

#   Failed test ' English has an id '
#   at t/05_languages.t line 19.
#          got: undef
#     expected: ' 7 '

#   Failed test ' English has an abbreviation '
#   at t/05_languages.t line 20.
#          got: undef
#     expected: ' en '
# Looks like you failed 3 tests of 5.
t/05_languages.t ................. Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/5 subtests 
t/05_series.t .................... ok       
t/05_servertime.t ................ ok   
t/05_tvdb.t ...................... ok     
t/05_util.t ...................... ok   
t/10_live.t ...................... Use of uninitialized value in sprintf at /Users/jim/.cpan/build/WebService-TVDB-1.133200-q4IWFD/blib/lib/WebService/TVDB.pm line 60.
t/10_live.t ...................... 1/107 Use of uninitialized value in sprintf at /Users/jim/.cpan/build/WebService-TVDB-1.133200-q4IWFD/blib/lib/WebService/TVDB/Series.pm line 174.
Use of uninitialized value in sprintf at /Users/jim/.cpan/build/WebService-TVDB-1.133200-q4IWFD/blib/lib/WebService/TVDB/Series.pm line 184.
failed to get URL http://thetvdb.com/api/EC44FBBD031E1306/series/76213/all/.zip: 404 - retrying at t/10_live.t line 32.
failed to get URL http://thetvdb.com/api/EC44FBBD031E1306/series/76213/all/.zip: 404 - retrying at t/10_live.t line 32.
failed to get URL http://thetvdb.com/api/EC44FBBD031E1306/series/76213/all/.zip: 404 - retrying at t/10_live.t line 32.
failed to get URL http://thetvdb.com/api/EC44FBBD031E1306/series/76213/all/.zip: 404 - retrying at t/10_live.t line 32.
failed to get URL http://thetvdb.com/api/EC44FBBD031E1306/series/76213/all/.zip: 404 - retrying at t/10_live.t line 32.
failed to get URL http://thetvdb.com/api/EC44FBBD031E1306/series/76213/all/.zip: 404 - retrying at t/10_live.t line 32.
failed to get URL http://thetvdb.com/api/EC44FBBD031E1306/series/76213/all/.zip: 404 - retrying at t/10_live.t line 32.
failed to get URL http://thetvdb.com/api/EC44FBBD031E1306/series/76213/all/.zip: 404 - retrying at t/10_live.t line 32.
failed to get URL http://thetvdb.com/api/EC44FBBD031E1306/series/76213/all/.zip: 404 - retrying at t/10_live.t line 32.
failed to get URL http://thetvdb.com/api/EC44FBBD031E1306/series/76213/all/.zip: 404 - retrying at t/10_live.t line 32.
failed to get URL http://thetvdb.com/api/EC44FBBD031E1306/series/76213/all/.zip after 10 retries. Aborting. at /Users/jim/.cpan/build/WebService-TVDB-1.133200-q4IWFD/blib/lib/WebService/TVDB/Series.pm line 108.
# Looks like you planned 107 tests but ran 3.
# Looks like your test exited with 2 just after 3.
t/10_live.t ...................... Dubious, test returned 2 (wstat 512, 0x200)
Failed 104/107 subtests 
t/author-critic.t ................ skipped: these tests are for testing by the author
t/release-changes_has_content.t .. skipped: these tests are for release candidate testing
t/release-kwalitee.t ............. skipped: these tests are for release candidate testing
t/release-no-smart-comments.t .... skipped: these tests are for release candidate testing
t/release-no-tabs.t .............. skipped: these tests are for release candidate testing
t/release-pod-coverage.t ......... skipped: these tests are for release candidate testing
t/release-pod-no404s.t ........... skipped: these tests are for release candidate testing
t/release-pod-syntax.t ........... skipped: these tests are for release candidate testing
t/release-portability.t .......... skipped: these tests are for release candidate testing

Test Summary Report
-------------------
t/05_languages.t               (Wstat: 768 Tests: 5 Failed: 3)
  Failed tests:  3-5
  Non-zero exit status: 3
t/10_live.t                    (Wstat: 512 Tests: 3 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 107 tests but ran 3.
Files=20, Tests=141, 17 wallclock secs ( 0.13 usr  0.06 sys +  3.08 cusr  0.45 csys =  3.72 CPU)
Result: FAIL
Failed 2/20 test programs. 3/141 subtests failed.
make: *** [test_dynamic] Error 255
  ARJONES/WebService-TVDB-1.133200.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports ARJONES/WebService-TVDB-1.133200.tar.gz
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 ARJONES/WebService-TVDB-1.133200.tar.gz      : make_test NO
andyjenkinson commented 9 years ago

This is because the CPAN distribution is missing the tools/generate-languages.pl script