shain has asked for the wisdom of the Perl Monks concerning the following question:

I am attempting to install Music::Tag::Amazon. I had some make test fail issues, and eventually thought I had tracked the probelem down to a dependency on XML::LibXML.I got that installed, as well as the other math libs the CPAN installation spew gave me. From CPAN, I found a link to this.

http://deps.cpantesters.org/?module=Music::Tag::Amazon

I installed everysingle one of those, so I don't think it's a Perl module dependency. I've been going 12 hours straight, and I am definently need some monk wisdom. Thanks in advance.

cpan[150]> install Music::Tag::Amazon Running install for module 'Music::Tag::Amazon' Running make for E/EA/EALLENIII/Music-Tag-Amazon-0.4101.tar.gz Has already been unwrapped into directory /home/shain/.cpan/build/Mu +sic-Tag-Amazon-0.4101-4imKNN Has already been made Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Har +ness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib +', 'blib/arch')" t/*.t t/1-amazon.t ........ 1/8 Mandatory paramter 'associate_tag' not defin +ed at /usr/local/share/perl/5.14.2/Net/Amazon.pm line 68. # Looks like you planned 8 tests but ran 2. # Looks like your test exited with 255 just after 2. t/1-amazon.t ........ Dubious, test returned 255 (wstat 65280, 0xff00) Failed 6/8 subtests t/2-pod.t ........... ok t/3-pod-coverage.t .. ok Test Summary Report ------------------- t/1-amazon.t (Wstat: 65280 Tests: 2 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 8 tests but ran 2. Files=3, Tests=4, 2 wallclock secs ( 0.05 usr 0.01 sys + 1.06 cusr + 0.12 csys = 1.24 CPU) Result: FAIL Failed 1/3 test programs. 0/4 subtests failed. make: *** [test_dynamic] Error 255 EALLENIII/Music-Tag-Amazon-0.4101.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports EALLENIII/Music-Tag-Amazon-0.4101.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: EALLENIII/Music-Tag-Amazon-0.4101.tar.gz : make_test NO

bless $you, $monks;

Replies are listed 'Best First'.
Re: Make fail on Music::Tag::Amazon
by marto (Cardinal) on Mar 03, 2014 at 14:04 UTC

    Disclaimer, I've never used this module. Looking at the test in question the first thing that jumps out to me is this:

    my $ua = Net::Amazon->new( token => 'YOUR_AMZN_TOKEN', secret_key => 'YOUR_AMZN_SECRET_KEY', # response_dump => 1, );

    Suggesting you'd need to provide a valid token/key from Amazon. Then if you look at the error it tells you that Net::Amazon expects something that is not passed to it, the associate tag. The Changes file states:

    0.61 (10/28/2011) (cb) rt 71937; Amazon now requires an Associate Tag, so enforce usage.

    Music::Tag::Amazon has not been updated since 2010, and won't work because it's dependency (Net::Amazon) has changed to meet the requirement of the Amazon service. Fixing this would seem fairly trivial, and you can raise an issue and provide a patch via cpan.

    Update: I don't have an Amazon soap account/developer tokens. I've made a very quick update, it's not final as I'd like to improve the tests and documentation more before raising the pull request. Please test this and let me know if it works.