Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^6: Protocol scheme 'http' is not supported

by Bloodnok (Vicar)
on Jul 28, 2012 at 16:02 UTC ( #984210=note: print w/ replies, xml ) Need Help??


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

Indeed Corion, hence my comment/guess.

A user level that continues to overstate my experience :-))


Comment on Re^6: Protocol scheme 'http' is not supported
Re^7: Protocol scheme 'http' is not supported
by Anonymous Monk on Jul 29, 2012 at 15:54 UTC

    Corion/Bloodnok, Yeah, It seemed like it's all about modules gone wild. I've got the exact same code (not what I posted; I boiled it down to the fewest number of lines that still showed the problem) and version of Perl on a Windows machine with no problems there so I figured moving it over to Linux would be a breeze.

    I'll try forcing an install of LWP::UserAgent, LWP::Protocol, and/or LWP::Protocol::http and see what that does for me. Is there a way from inside of cpan (ie the "perl -MCPAN -e shell") to actually uninstall an existing module or is it a manual cd-to-the-directory-and-rename sort of thing...?

    Many thanks, Greg
        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...?
      And the saga continues... When I run my little test case I get:
      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 ./test2.pl line 6. BEGIN failed--compilation aborted at ./test2.pl line 6. at ./test2.pl line 6.
      So I went looking for Parser.pm and found these:
      $ 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 -rw-r--r-- 1 root root 39509 Jul 10 2006 /usr/lib64/perl5/vendor_perl +/5.8.8/x86_64-linux-thread-multi/HTML/Parser.pm -rw-r--r-- 1 root root 27103 Aug 18 2003 /usr/lib64/perl5/vendor_perl +/5.8.8/x86_64-linux-thread-multi/XML/Parser.pm
      Ah. So if I grep out the version from each of them I find:
      $ grep "VERSION =" /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-threa +d-multi/HTML/Parser.pm $VERSION = "3.69"; grep "VERSION =" /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thre +ad-multi/HTML/Parser.pm $VERSION = '3.55'; # $Date: 2006/07/10 09:12:26 $
      And from perl -V the @INC is:
      @INC: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8
      At this point I went on to see what Task::Mechanistic would do for me... (see next reply)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://984210]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-12-29 12:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (187 votes), past polls