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

I present again with a problem with similar targets as in getting Log::Log4perl to install on windows strawberry perl. Consider first the problem of the install on windows 10.

Things look normal to begin with:

cpan> install WWW::Mechanize::Chrome Fetching with LWP:

The make test command looks like this:

Running make test for CORION/WWW-Mechanize-Chrome-0.43.tar.gz "C:\Strawberry\perl\bin\perl.exe" "-MExtUtils::Command::MM" "-MTest::H +arness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\l +ib', 'blib\arch')" t/00-load.t t/01-chrome-devtools-protocol-target-c +ycle.t t/01-chrome-devtools-protocol-target.t t/01-chrome-devtools-pr +otocol.t t/01-select-backend-implementation.t t/02-chrome-devtools-ta +b.t t/03-listener-leak-test.t t/47-mech-simplest.t t/49-launch.t t/49 +-mech-get-file.t t/49-mech-nav.t t/49-pipe.t t/49-port.t t/50-follow- +link.t t/50-form-with-fields-gh48.t t/50-form-with-fields.t t/50-form +2.t t/50-mech-content.t t/50-mech-ct.t t/50-mech-encoding.t t/50-mech +-eval.t t/50-mech-forms.t t/50-mech-get-nonexistent.t t/50-mech-get.t + t/50-mech-new-dsl.t t/50-mech-new.t t/50-mech-redirect.t t/50-mech-s +tart-url.t t/50-mech-status.t t/50-mech-text.t t/50-popup.t t/51-clic +k-intrapage.t t/51-mech-form-with-fields.t t/51-mech-links.t t/51-mec +h-set-content.t t/51-mech-submit.t t/53-mech-capture-js-error.t t/56- +render-content.t t/58-alert.t t/60-mech-cookies.t t/60-mech-custom-he +aders.t t/61-mech-download.t t/61-screencast.t t/62-networkstatus.t t +/62-viewport-size.t t/65-is_visible-2.t t/65-is_visible.t t/65-save-c +ontent.t t/65-wait_until_visible.t t/70-mech-png.t t/75-classnames.t +t/76-scroll.t t/77-reload-fragment.t t/78-memleak.t t/78-two-instance +s.t t/rt127588.t t/rt130999.t

The first sign of problems is here:

t/03-listener-leak-test.t ..................... 1/11 Couldn't kill pid + '16240': Invalid argument at C:\Users\tblaz\perl5\lib\perl5/Test/HTT +P/LocalServer.pm line 275. # Looks like your test exited with -1 just after 11.

I get several warnings/errors of this variety in not being able to kill pid's.

t/50-follow-link.t ............................ 5/9 Couldn't kill pid '9476': Invalid argument at C:\Users\tblaz\perl5\lib\perl5/Test/HTTP/LocalServer.pm line 275

and then a series of not being able to delete files and directory stemming from line 916:

cannot unlink file for C:\Users\tblaz\AppData\Local\Temp\3IciWOfebD\Cr +ashpad\reports\39982f83-8b05-4638-9bfa-d0872b4e5d85.dmp: Permission d +enied at C:/Strawberry/perl/lib/File/Temp.pm line 916. cannot remove directory for C:\Users\tblaz\AppData\Local\Temp\3IciWOfe +bD\Crashpad\reports: Directory not empty at C:/Strawberry/perl/lib/Fi +le/Temp.pm line 916.

And then my summary:

Test Summary Report ------------------- t/03-listener-leak-test.t (Wstat: 65280 Tests: 11 Fa +iled: 0) Non-zero exit status: 255 t/60-mech-cookies.t (Wstat: 65280 Tests: 2 Fai +led: 0) Non-zero exit status: 255 t/rt130999.t (Wstat: 65280 Tests: 3 Fai +led: 0) Non-zero exit status: 255 Files=57, Tests=424, 304 wallclock secs ( 0.33 usr + 0.22 sys = 0.55 + CPU) Result: FAIL Failed 3/57 test programs. 0/424 subtests failed.

I think Corion is doing occasional rounds, so I like my chances at understanding what isn't happening here. As for an authentic task for whether this package works, I think logging into perlmonks would constitute a good task that would save keystrokes on all 3 platforms.

Thanks all for comments

Replies are listed 'Best First'.
Re: installing WWW::Mechanize::Chrome on windows 10, strawberry perl
by Corion (Patriarch) on Jan 06, 2020 at 10:46 UTC

    This is a (test) failure in the underlying Test::HTTP::LocalServer, which bubbles up into WWW::Mechanize::Chrome itself. You can ignore these failures.

    As it seems that you can reproduce these, I'd be happy to better debug these, as I can't reproduce them. If you are interested, I can mail you some test code that hopefully reproduces the error and maybe even fixes it.

Re: installing WWW::Mechanize::Chrome on windows 10, strawberry perl
by ikegami (Patriarch) on Jan 06, 2020 at 07:07 UTC
A reply falls below the community's threshold of quality. You may see it by logging in.