Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install 2.19 from CPAN #387

Closed
michael-stevens opened this issue Jan 3, 2025 · 3 comments
Closed

Unable to install 2.19 from CPAN #387

michael-stevens opened this issue Jan 3, 2025 · 3 comments

Comments

@michael-stevens
Copy link

Unable to install from CPAN, tests fail:

Building and testing WWW-Mechanize-2.19
cp lib/WWW/Mechanize/FAQ.pod blib/lib/WWW/Mechanize/FAQ.pod
cp lib/WWW/Mechanize/Cookbook.pod blib/lib/WWW/Mechanize/Cookbook.pod
cp lib/WWW/Mechanize/Link.pm blib/lib/WWW/Mechanize/Link.pm
cp lib/WWW/Mechanize.pm blib/lib/WWW/Mechanize.pm
cp lib/WWW/Mechanize/Image.pm blib/lib/WWW/Mechanize/Image.pm
cp lib/WWW/Mechanize/Examples.pod blib/lib/WWW/Mechanize/Examples.pod
cp script/mech-dump blib/script/mech-dump
"/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/mech-dump
Manifying 1 pod document
Manifying 6 pod documents
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/local/*.t t/mech-dump/*.t
# Testing WWW::Mechanize 2.19, with LWP 6.75, Perl 5.032001, /usr/bin/perl
t/00-load.t .............................. ok
#
# Versions for all modules listed in MYMETA.json (including optional ones):
#
# === Configure Requires ===
#
#     Module              Want Have
#     ------------------- ---- ----
#     ExtUtils::MakeMaker  any 7.60
#
# === Configure Suggests ===
#
#     Module      Want Have
#     -------- ------- ----
#     JSON::PP 2.27300 4.16
#
# === Build Requires ===
#
#     Module              Want Have
#     ------------------- ---- ----
#     ExtUtils::MakeMaker  any 7.60
#
# === Test Requires ===
#
#     Module              Want     Have
#     ------------------- ---- --------
#     ExtUtils::MakeMaker  any     7.60
#     File::Spec           any     3.78
#     File::Temp           any   0.2311
#     FindBin              any     1.51
#     HTTP::Daemon        6.12     6.16
#     LWP                  any     6.75
#     LWP::Simple          any     6.75
#     Path::Tiny           any    0.144
#     Test::Deep           any    1.204
#     Test::Fatal          any    0.017
#     Test::Memory::Cycle  any     1.06
#     Test::More          0.96 1.302183
#     Test::Output         any    1.034
#     Test::Taint         1.08     1.08
#     Test::Warnings       any    0.034
#     URI                  any     5.09
#     URI::Escape          any     5.09
#     bytes                any     1.07
#     lib                  any     0.65
#
# === Test Recommends ===
#
#     Module         Want     Have
#     ---------- -------- --------
#     CPAN::Meta 2.120900 2.150010
#
# === Runtime Requires ===
#
#     Module                 Want     Have
#     --------------------- ----- --------
#     Carp                    any     1.50
#     Getopt::Long            any     2.57
#     HTML::Form             6.08     6.12
#     HTML::HeadParser        any     3.76
#     HTML::TokeParser        any     3.76
#     HTML::TreeBuilder         5     5.07
#     HTTP::Cookies           any     6.11
#     HTTP::Request          1.30     6.45
#     HTTP::Request::Common   any     6.45
#     LWP::UserAgent          any     6.75
#     Pod::Usage              any     2.01
#     Scalar::Util           1.14     1.56
#     Tie::RefHash            any     1.40
#     URI::URL                any     5.09
#     URI::file               any     5.09
#     parent                  any    0.238
#     perl                  5.008 5.032001
#     strict                  any     1.11
#     warnings                any     1.47
#
# === Runtime Recommends ===
#
#     Module         Want  Have
#     -------------- ---- -----
#     Compress::Zlib  any 2.102
#
t/00-report-prereqs.t .................... ok
t/add_header.t ........................... ok
t/aliases.t .............................. ok
t/area_link.t ............................ ok
t/autocheck.t ............................ ok
t/bad-request.t .......................... ok
t/clone.t ................................ ok
t/content.t .............................. ok
t/cookies.t .............................. ok
t/credentials-api.t ...................... ok
t/credentials.t .......................... ok
t/die.t .................................. ok
t/dump.t ................................. ok
t/field.t ................................ ok
t/file_upload.t .......................... ok
t/find_frame.t ........................... ok
t/find_image.t ........................... ok
t/find_inputs.t .......................... ok
t/find_link-warnings.t ................... ok
t/find_link.t ............................ ok
t/find_link_id.t ......................... ok
t/find_link_xhtml.t ...................... ok
t/form-parsing.t ......................... ok
t/form_with_fields.t ..................... ok
t/form_with_fields_passthrough_params.t .. ok
t/frames.t ............................... ok
t/history.t .............................. ok
t/image-new.t ............................ ok
t/image-parse.t .......................... ok
t/link-base.t ............................ ok
t/link-relative.t ........................ ok
t/link.t ................................. ok
t/local/back.t ........................... ok
t/local/click.t .......................... ok
t/local/click_button.t ................... ok
# Running tests against http://[::1]:59193/?xml=1
t/local/content.t ........................ ok
t/local/encoding.t ....................... ok
t/local/failure.t ........................ ok
t/local/follow.t ......................... ok
t/local/form.t ........................... ok
t/local/get.t ............................ ok
t/local/head.t ........................... ok
t/local/nonascii.t ....................... ok
t/local/overload.t ....................... skipped: Mysteriously stopped passing, and I don't know why.
t/local/page_stack.t ..................... ok
t/local/post.t ........................... ok
t/local/referer.t ........................ ok
t/local/reload.t ......................... ok
t/local/select_multiple.t ................ ok
t/local/submit.t ......................... ok
t/mech-dump/file_not_found.t ............. ok
t/mech-dump/mech-dump.t .................. ok
t/new.t .................................. ok
t/regex-error.t .......................... ok
t/save_content.t ......................... ok
t/select.t ............................... ok
t/submit_form.t .......................... ok
t/taint.t ................................ ok
t/tick.t ................................. ok
t/upload.t ............................... ok
t/uri.t .................................. ok
# Looks like you planned 5 tests but ran 6.
t/warn.t .................................
Dubious, test returned 255 (wstat 65280, 0xff00)
All 5 subtests passed
t/warnings.t ............................. ok

Test Summary Report
-------------------
t/warn.t                               (Wstat: 65280 Tests: 6 Failed: 1)
  Failed test:  6
  Non-zero exit status: 255
  Parse errors: Plan (1..5) must be at the beginning or end of the TAP output
                Bad plan.  You planned 5 tests but ran 6.
Files=64, Tests=902, 101 wallclock secs ( 0.24 usr  0.08 sys + 15.66 cusr  2.13 csys = 18.11 CPU)
Result: FAIL
Failed 1/64 test programs. 1/902 subtests failed.
make: *** [Makefile:960: test_dynamic] Error 255
-> FAIL Installing WWW::Mechanize failed. See /home/mstevens/.cpanm/work/1735922336.1070159/build.log for details. Retry with --force to force install it.

Perl is:

This is perl 5, version 32, subversion 1 (v5.32.1) built for x86_64-linux-thread-multi

On alma linux 9.

@karenetheridge
Copy link
Member

Fixed now with Test::Warnings 0.035.

@michael-stevens
Copy link
Author

michael-stevens commented Jan 3, 2025 via email

@oalders
Copy link
Member

oalders commented Jan 3, 2025

Thanks, @karenetheridge!

@oalders oalders closed this as completed Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants