http://www.perlmonks.org?node_id=984326


in reply to Re^7: Protocol scheme 'http' is not supported
in thread Protocol scheme 'http' is not supported

I know a way out of dependency hell. Try Task::Mechanistic.
  • Comment on Re^8: Protocol scheme 'http' is not supported

Replies are listed 'Best First'.
Re^9: Protocol scheme 'http' is not supported
by ggerke (Novice) on Jul 30, 2012 at 14:44 UTC
    Well, I'll say this for Task::Mechanistic - it's checking every little thing that it can find. Here's the final report:
    Test Summary Report ------------------- t/01_spell.t (Wstat: 0 Tests: 0 Failed: 0) Parse errors: More than one plan found in TAP output Files=18, Tests=11, 1 wallclock secs ( 0.08 usr 0.05 sys + 0.63 cus +r 0.09 csys = 0.85 CPU) Result: FAIL Failed 1/18 test programs. 0/11 subtests failed. make: *** [test_dynamic] Error 255 DAGOLDEN/Pod-Wordlist-hanekomu-1.121370.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports DAGOLDEN/Pod-Wordlist-hanekomu-1.121370.tar.gz Running make install make test had returned bad status, won't install without force Running install for module 'Test::Portability::Files' Running make for S/SA/SAPER/Test-Portability-Files-0.05.tar.gz Fetching with LWP: ftp://cpan.mirrors.tds.net/pub/CPAN/authors/id/S/SA/SAPER/Test-Portabi +lity-Files-0.05.tar.gz Checksum for /u/ggerke/.cpan/sources/authors/id/S/SA/SAPER/Test-Portab +ility-Files-0.05.tar.gz ok utf8 "\xE9" does not map to Unicode at /usr/lib/perl5/site_perl/5.8.8/ +Parse/CPAN/Meta.pm line 89, <$fh> chunk 1. CPAN.pm: Building S/SA/SAPER/Test-Portability-Files-0.05.tar.gz Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'Test-Portability-Files' version '0.05 +' Building Test-Portability-Files SAPER/Test-Portability-Files-0.05.tar.gz ./Build -- OK Running Build test t/00load.t .... 1/1 # Testing Test::Portability::Files 0.05 t/00load.t .... ok t/01basic.t ... ok t/pod.t ....... ok t/podcover.t .. ok t/portfs.t .... ok All tests successful. Files=5, Tests=7, 0 wallclock secs ( 0.03 usr 0.02 sys + 0.32 cusr + 0.03 csys = 0.40 CPU) Result: PASS SAPER/Test-Portability-Files-0.05.tar.gz ./Build test -- OK Running Build install Building Test-Portability-Files Installing /usr/lib/perl5/site_perl/5.8.8/Test/Portability/Files.pm Installing /usr/share/man/man3/Test::Portability::Files.3pm SAPER/Test-Portability-Files-0.05.tar.gz ./Build install -- OK Running make for S/SK/SKI/Task-Mechanistic-0.01.tar.gz Has already been unwrapped into directory /u/ggerke/.cpan/build/Task +-Mechanistic-0.01-RaBSnU CPAN.pm: Building S/SK/SKI/Task-Mechanistic-0.01.tar.gz Warning: Prerequisite 'Pod::Wordlist::hanekomu => 0' for 'SKI/Task-Mec +hanistic-0.01.tar.gz' failed when processing 'DAGOLDEN/Pod-Wordlist-h +anekomu-1.121370.tar.gz' with 'make_test => NO'. Continuing, but chan +ces to succeed are limited. cp lib/Task/Mechanistic.pm blib/lib/Task/Mechanistic.pm Manifying blib/man3/Task::Mechanistic.3pm SKI/Task-Mechanistic-0.01.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'inc', 'blib/lib', 'blib/arch')" t/Task-Mechanistic.t t/Task-Mechanistic.t .. ok All tests successful. Files=1, Tests=1, 1 wallclock secs ( 0.04 usr + 0.00 sys = 0.04 CPU +) Result: PASS SKI/Task-Mechanistic-0.01.tar.gz Tests succeeded but one dependency not OK (Pod::Wordlist::hanekomu) SKI/Task-Mechanistic-0.01.tar.gz [dependencies] -- NA Running make install make test had returned bad status, won't install without force Failed during this command: DAGOLDEN/Pod-Wordlist-hanekomu-1.121370.tar.gz: make_test NO SKI/Task-Mechanistic-0.01.tar.gz : make_test NO one depen +dency not OK (Pod::Wordlist::hanekomu)
    Once again after this ran I tried my little tester script:
    #!/usr/bin/perl use strict; use warnings; use diagnostics; use WWW::Mechanize; my $mech = WWW::Mechanize->new; $mech->get('http://www.perlmonks.com/'); print $mech->content;
    but I'm still coming up with the dreaded:
    Uncaught exception from user code: HTML::Parser object version 3.55 does not match bootstrap para +meter 3.69 at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/DynaLo +ader.pm line 253. Compilation failed in require at /usr/lib64/perl5/site_perl/5.8.8/x86_ +64-linux-thread-multi/HTML/Entities.pm line 152. Compilation failed in require at /usr/lib64/perl5/site_perl/5.8.8/x86_ +64-linux-thread-multi/HTML/TokeParser.pm line 9. BEGIN failed--compilation aborted at /usr/lib64/perl5/site_perl/5.8.8/ +x86_64-linux-thread-multi/HTML/TokeParser.pm line 9. Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/WWW/Me +chanize.pm line 134. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/WW +W/Mechanize.pm line 134. Compilation failed in require at /u/ggerke/test2.pl line 6. BEGIN failed--compilation aborted at /u/ggerke/test2.pl line 6. at /u/ggerke/test2.pl line 6.
    Once again checking what's what in the way of Parser.pm I see:
    sudo find /usr -name Parser.pm -exec ls -l {} \; -r--r--r-- 1 root root 39789 Oct 15 2011 /usr/lib64/perl5/site_perl/5 +.8.8/x86_64-linux-thread-multi/HTML/Parser.pm $ $ $ grep \$VERSION /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread- +multi/HTML/Parser.pm use vars qw($VERSION @ISA); $VERSION = "3.69"; XSLoader::load('HTML::Parser', $VERSION); "by HTML::Parser $VERSION"); $
    So while I'm down to just one HTML/Parser.pm out there and it says it's v3.69 something still thinks it's actually 3.55...?