stripe-perl icon indicating copy to clipboard operation
stripe-perl copied to clipboard

Cannot install Net::Stripe on Ubuntu 22.04

Open bill-coacho opened this issue 2 years ago • 1 comments

Work around provided for Ubuntu 20.04, installing Alt::Devel::CallParser::ButWorking fails. cpanm Net::Stripe reports --> Working on Net::Stripe Fetching http://www.cpan.org/authors/id/S/SH/SHERRARDB/Net-Stripe-0.42.tar.gz ... OK Configuring Net-Stripe-0.42 ... OK Building and testing Net-Stripe-0.42 ... FAIL ! Installing Net::Stripe failed. See /home/coacho/.cpanm/work/1690958406.45077/build.log for details. Retry with --force to force install it.

build.log ....all good until here cp lib/Net/Stripe/Discount.pm blib/lib/Net/Stripe/Discount.pm Manifying 23 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 "my" variable $h masks earlier declaration in same scope at /usr/share/perl5/HTTP/Headers.pm line 184. Can't call method "add_attribute" on an undefined value at /usr/share/perl5/Moo/HandleMoose.pm line 172. Compilation failed in require at /home/coacho/.cpanm/work/1690958406.45077/Net-Stripe-0.42/blib/lib/Net/Stripe.pm line 28. BEGIN failed--compilation aborted at /home/coacho/.cpanm/work/1690958406.45077/Net-Stripe-0.42/blib/lib/Net/Stripe.pm line 28. Compilation failed in require at t/live.t line 7. BEGIN failed--compilation aborted at t/live.t line 7. t/live.t ... Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run "my" variable $h masks earlier declaration in same scope at /usr/share/perl5/HTTP/Headers.pm line 184.

Failed test 'use Net::Stripe;'

at t/local.t line 12.

Tried to use 'Net::Stripe'.

Error: Can't call method "add_attribute" on an undefined value at /usr/share/perl5/Moo/HandleMoose.pm line 172.

Compilation failed in require at /home/coacho/.cpanm/work/1690958406.45077/Net-Stripe-0.42/blib/lib/Net/Stripe.pm line 28.

BEGIN failed--compilation aborted at /home/coacho/.cpanm/work/1690958406.45077/Net-Stripe-0.42/blib/lib/Net/Stripe.pm line 28.

Compilation failed in require at t/local.t line 12.

BEGIN failed--compilation aborted at t/local.t line 12.

Failed test 'invalid api_version format'

at t/local.t line 24.

expecting: Regexp ((?^:of the form yyyy-mm-dd))

found: normal exit

Failed test 'invalid api_version format'

at t/local.t line 24.

expecting: Regexp ((?^:of the form yyyy-mm-dd))

found: normal exit

Failed test 'invalid api_version format'

at t/local.t line 24.

expecting: Regexp ((?^:of the form yyyy-mm-dd))

found: normal exit

Failed test 'report invalid api_version'

at t/local.t line 44.

Undefined subroutine &Net::Stripe::_hash_to_object called at t/local.t line 88.

Tests were run but no plan was declared and done_testing() was not seen.

Looks like your test exited with 255 just after 5.

t/local.t .. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 5/5 subtests

Test Summary Report

t/live.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/local.t (Wstat: 65280 Tests: 5 Failed: 5) Failed tests: 1-5 Non-zero exit status: 255 Parse errors: No plan found in TAP output Files=2, Tests=5, 2 wallclock secs ( 0.02 usr 0.00 sys + 1.60 cusr 0.11 csys = 1.73 CPU) Result: FAIL Failed 2/2 test programs. 5/5 subtests failed. make: *** [Makefile:958: test_dynamic] Error 255 -> FAIL Installing Net::Stripe failed. See /home/coacho/.cpanm/work/1690958406.45077/build.log for details. Retry with --force to force install it.

bill-coacho avatar Aug 02 '23 06:08 bill-coacho

Suffering the exact same issue here.

caribnow avatar Sep 12 '23 00:09 caribnow