andrewrjones / perl5-App-MP4Meta

Apply iTunes-like meta data to an mp4 file
https://metacpan.org/module/App::MP4Meta
9 stars 2 forks source link

Malformed json string #14

Open edson-v-schmitt opened 10 years ago

edson-v-schmitt commented 10 years ago

First of all let me start by saying that I'm a big fan of the MP4Meta utility, it has always worked flawlessly and helped my tidiness OCD countless times! Last week I was forced to reinstall my base system and because of that I had to reinstall MP4Meta as well. I'm currently running the latest and greatest OS X 10.9. I already installed AtomicParsley, zlib, no issues... but when it came to install MP4Meta I did what I always did and it just won't go... some of the tests fails and even if I force installation it still won't run properly... giving me the same 404 error (I changed my TVDB key so I won't share with the internet :) ). I also noticed the first error is a malformed JSON string and pardon my lack of knowledge but I thought it could be related to the JAVA version... so from 1.6 I went to 1.7 and I still get the same thing... hope you can have a look and perhaps point me to what's wrong... thx!

cpanm (App::cpanminus) 1.7001 on perl 5.016002 built for darwin-thread-multi-2level
Work directory is /Users/bina/.cpanm/work/1386729786.2491
You have make /usr/bin/make
You have LWP 6.04
You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3
You have /usr/bin/unzip
Searching App::MP4Meta on cpanmetadb ...
--> Working on App::MP4Meta
Fetching http://www.cpan.org/authors/id/A/AR/ARJONES/App-MP4Meta-1.130420.tar.gz
-> OK
Unpacking App-MP4Meta-1.130420.tar.gz
Entering App-MP4Meta-1.130420
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.30 ... Yes (6.63_02)
Configuring App-MP4Meta-1.130420
Running Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for App::MP4Meta
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have App::Cmd::Tester 0 ... Yes (0.323)
Checking if you have FindBin 0 ... Yes (1.51)
Checking if you have File::Spec 0 ... Yes (3.39_02)
Checking if you have App::Cmd::Setup 0 ... Yes (0.323)
Checking if you have Module::Load 0 ... Yes (0.22)
Checking if you have File::Find 0 ... Yes (1.20)
Checking if you have AtomicParsley::Command 0 ... Yes (1.130420)
Checking if you have WebService::IMDBAPI 0 ... Yes (1.130150)
Checking if you have LWP::Simple 0 ... Yes (6.00)
Checking if you have WebService::TVDB 1.122800 ... Yes (1.133200)
Checking if you have File::Copy 0 ... Yes (2.23)
Checking if you have Test::MockObject 0 ... Yes (1.20120301)
Checking if you have base 0 ... Yes (2.18)
Checking if you have Try::Tiny 0 ... Yes (0.11)
Checking if you have warnings 0 ... Yes (1.13)
Checking if you have Test::Exception 0 ... Yes (0.31)
Checking if you have Test::Class 0 ... Yes (0.41)
Checking if you have constant 0 ... Yes (1.23)
Checking if you have Object::Tiny 0 ... Yes (1.08)
Checking if you have Net::Ping 0 ... Yes (2.38)
Checking if you have Test::More 0 ... Yes (0.98)
Checking if you have strict 0 ... Yes (1.07)
Checking if you have File::Temp 0 ... Yes (0.22)
Checking if you have WebService::TVDB::Series 0 ... Yes (1.133200)
Checking if you have AtomicParsley::Command::Tags 0 ... Yes (1.130420)
Building and testing App-MP4Meta-1.130420
cp lib/App/MP4Meta/Film.pm blib/lib/App/MP4Meta/Film.pm
cp lib/App/MP4Meta/Command/tv.pm blib/lib/App/MP4Meta/Command/tv.pm
cp lib/App/MP4Meta/MusicVideo.pm blib/lib/App/MP4Meta/MusicVideo.pm
cp lib/App/MP4Meta/TV.pm blib/lib/App/MP4Meta/TV.pm
cp lib/App/MP4Meta/Source/Base.pm blib/lib/App/MP4Meta/Source/Base.pm
cp lib/App/MP4Meta/Source/Data/Film.pm blib/lib/App/MP4Meta/Source/Data/Film.pm
cp lib/App/MP4Meta/Source/Data/TVEpisode.pm blib/lib/App/MP4Meta/Source/Data/TVEpisode.pm
cp lib/App/MP4Meta/Command/film.pm blib/lib/App/MP4Meta/Command/film.pm
cp lib/App/MP4Meta/Source/IMDB.pm blib/lib/App/MP4Meta/Source/IMDB.pm
cp lib/App/MP4Meta/Command/musicvideo.pm blib/lib/App/MP4Meta/Command/musicvideo.pm
cp lib/App/MP4Meta/Base.pm blib/lib/App/MP4Meta/Base.pm
cp lib/App/MP4Meta/Source/TVDB.pm blib/lib/App/MP4Meta/Source/TVDB.pm
cp lib/App/MP4Meta.pm blib/lib/App/MP4Meta.pm
cp lib/App/MP4Meta/Source/Data/Base.pm blib/lib/App/MP4Meta/Source/Data/Base.pm
cp bin/mp4meta blib/script/mp4meta
/usr/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/mp4meta
Manifying blib/man1/mp4meta.1
Manifying blib/man3/App::MP4Meta::Film.3pm
Manifying blib/man3/App::MP4Meta::Command::tv.3pm
Manifying blib/man3/App::MP4Meta::MusicVideo.3pm
Manifying blib/man3/App::MP4Meta::TV.3pm
Manifying blib/man3/App::MP4Meta::Source::Base.3pm
Manifying blib/man3/App::MP4Meta::Source::Data::Film.3pm
Manifying blib/man3/App::MP4Meta::Source::Data::TVEpisode.3pm
Manifying blib/man3/App::MP4Meta::Source::IMDB.3pm
Manifying blib/man3/App::MP4Meta::Command::film.3pm
Manifying blib/man3/App::MP4Meta::Source::TVDB.3pm
Manifying blib/man3/App::MP4Meta::Base.3pm
Manifying blib/man3/App::MP4Meta::Command::musicvideo.3pm
Manifying blib/man3/App::MP4Meta::Source::Data::Base.3pm
Manifying blib/man3/App::MP4Meta.3pm
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
Argument "http" isn't numeric in subroutine entry at /System/Library/Perl/5.16/darwin-thread-multi-2level/Socket.pm line 783.

#   Failed test 'live_film died (malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "<!DOCTYPE html PUBLI...") at /Library/Perl/5.16/WebService/IMDBAPI.pm line 52.)'
#   at t/05_run.t line 35.
#   (in Test::App::MP4Meta::Source::IMDB->live_film)

#   Failed test 'live_apply_meta_imdb_default died (malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "<!DOCTYPE html PUBLI...") at /Library/Perl/5.16/WebService/IMDBAPI.pm line 52.)'
#   at t/05_run.t line 35.
#   (in Test::App::MP4Meta::Film->live_apply_meta_imdb_default)
Use of uninitialized value in sprintf at /Library/Perl/5.16/WebService/TVDB.pm line 60.
Use of uninitialized value in sprintf at /Library/Perl/5.16/WebService/TVDB/Series.pm line 174.
Use of uninitialized value in sprintf at /Library/Perl/5.16/WebService/TVDB/Series.pm line 184.
failed to get URL http://thetvdb.com/api/123456789/series/79501/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.
failed to get URL http://thetvdb.com/api/123456789/series/79501/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.
failed to get URL http://thetvdb.com/api/123456789/series/79501/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.
failed to get URL http://thetvdb.com/api/123456789/series/79501/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.
failed to get URL http://thetvdb.com/api/123456789/series/79501/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.
failed to get URL http://thetvdb.com/api/123456789/series/79501/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.
failed to get URL http://thetvdb.com/api/123456789/series/79501/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.
failed to get URL http://thetvdb.com/api/123456789/series/79501/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.
failed to get URL http://thetvdb.com/api/123456789/series/79501/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.
failed to get URL http://thetvdb.com/api/123456789/series/79501/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.

#   Failed test 'live_apply_meta_tvdb_default died (failed to get URL http://thetvdb.com/api/123456789/series/79501/all/.zip after 10 retries. Aborting. at /Library/Perl/5.16/WebService/TVDB/Series.pm line 108.)'
#   at t/05_run.t line 35.
#   (in Test::App::MP4Meta::TV->live_apply_meta_tvdb_default)
Use of uninitialized value in sprintf at /Library/Perl/5.16/WebService/TVDB.pm line 60.
Use of uninitialized value in sprintf at /Library/Perl/5.16/WebService/TVDB/Series.pm line 174.
Use of uninitialized value in sprintf at /Library/Perl/5.16/WebService/TVDB/Series.pm line 184.
failed to get URL http://thetvdb.com/api/123456789/series/76213/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.
failed to get URL http://thetvdb.com/api/123456789/series/76213/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.
failed to get URL http://thetvdb.com/api/123456789/series/76213/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.
failed to get URL http://thetvdb.com/api/123456789/series/76213/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.
failed to get URL http://thetvdb.com/api/123456789/series/76213/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.
failed to get URL http://thetvdb.com/api/123456789/series/76213/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.
failed to get URL http://thetvdb.com/api/123456789/series/76213/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.
failed to get URL http://thetvdb.com/api/123456789/series/76213/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.
failed to get URL http://thetvdb.com/api/123456789/series/76213/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.
failed to get URL http://thetvdb.com/api/123456789/series/76213/all/.zip: 404 - retrying at /Users/bina/.cpanm/work/1386729786.2491/App-MP4Meta-1.130420/blib/lib/App/MP4Meta/Source/TVDB.pm line 58.

#   Failed test 'live died (failed to get URL http://thetvdb.com/api/123456789/series/76213/all/.zip after 10 retries. Aborting. at /Library/Perl/5.16/WebService/TVDB/Series.pm line 108.)'
#   at t/05_run.t line 35.
#   (in Test::App::MP4Meta::Source::TVDB->live)
# Looks like you failed 4 tests of 206.
t/05_run.t ..................... 
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/206 subtests 
    (less 29 skipped subtests: 173 okay)
t/author-critic.t .............. skipped: these tests are for testing by the author
t/author-pod-spell.t ........... skipped: these tests are for testing by the author
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_run.t                   (Wstat: 1024 Tests: 206 Failed: 4)
  Failed tests:  19, 59, 130, 183
  Non-zero exit status: 4
Files=11, Tests=221, 37 wallclock secs ( 0.06 usr  0.02 sys +  1.24 cusr  0.19 csys =  1.51 CPU)
Result: FAIL
Failed 1/11 test programs. 4/221 subtests failed.
make: *** [test_dynamic] Error 255
-> FAIL Installing App::MP4Meta failed. See /Users/bina/.cpanm/work/1386729786.2491/build.log for details. Retry with --force to force install it.
edson-v-schmitt commented 10 years ago

I think I fixed the issue... I decided to make sure the dependency modules were the same version MP4Meta needs... so I ended up manually downloading and installing the following packages

ExtUtils-MakeMaker-6.78 IPC-Cmd-0.76 Test-Pod-1.41 WebService-TVDB-1.122800

That alone seems to have fixed the issue

I'm afraid that these installation instructions need updating.

curl -L http://cpanmin.us | perl - --sudo App::cpanminus
cpanm App::MP4Meta
pjz commented 9 years ago

Is there any update on a real fix for this?