stripe-perl
stripe-perl copied to clipboard
Cannot install Net::Stripe on Ubuntu 20.04
Getting these errors when I try to install this module. Please tell me what I need to do to correct this. bill
... Manifying 23 pod documents SHERRARDB/Net-Stripe-0.42.tar.gz /usr/bin/make -- OK Running make test for SHERRARDB/Net-Stripe-0.42.tar.gz 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/local/share/perl/5.30.0/Moo/HandleMoose.pm line 172. Compilation failed in require at /home/coacho/.cpan/build/Net-Stripe-0.42-1/blib/lib/Net/Stripe.pm line 28. BEGIN failed--compilation aborted at /home/coacho/.cpan/build/Net-Stripe-0.42-1/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/local/share/perl/5.30.0/Moo/HandleMoose.pm line 172.
Compilation failed in require at /home/coacho/.cpan/build/Net-Stripe-0.42-1/blib/lib/Net/Stripe.pm line 28.
BEGIN failed--compilation aborted at /home/coacho/.cpan/build/Net-Stripe-0.42-1/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 '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.63 cusr 0.09 csys = 1.74 CPU) Result: FAIL Failed 2/2 test programs. 5/5 subtests failed. make: *** [Makefile:958: test_dynamic] Error 255 SHERRARDB/Net-Stripe-0.42.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports SHERRARDB/Net-Stripe-0.42.tar.gz
@bill-coacho, this is a long-standing error from one of the dependencies, not Net::Stripe itself. please have a look at
https://github.com/lukec/stripe-perl/issues/202
and the related
https://github.com/tobyink/p5-kavorka/issues/22
i am hoping that the solution that you applied in Apr 2020 still works:
https://github.com/tobyink/p5-kavorka/issues/22#issuecomment-613679870
Thank you I installed Alt::Devel::CallParser::ButWorking I was then able to install Net:Stripe on Ubuntu 20.04 bill
On 9/9/22 06:36, sherrardb wrote:
@bill-coacho https://github.com/bill-coacho, this is a long-standing error from one of the dependencies, not Net::Stripe itself. please have a look at
#202 https://github.com/lukec/stripe-perl/issues/202
and the related
tobyink/p5-kavorka#22 https://github.com/tobyink/p5-kavorka/issues/22
i am hoping that the solution that you applied in Apr 2020 still works:
tobyink/p5-kavorka#22 (comment) https://github.com/tobyink/p5-kavorka/issues/22#issuecomment-613679870
— Reply to this email directly, view it on GitHub https://github.com/lukec/stripe-perl/issues/212#issuecomment-1241803765, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE3Q3L7UO26CFQV4TEJCF43V5MHLNANCNFSM6AAAAAAQIIJQ7E. You are receiving this because you were mentioned.Message ID: @.***>