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

Cannot install Net::Stripe on Ubuntu 20.04 #212

Open
bill-coacho opened this issue Sep 9, 2022 · 2 comments
Open

Cannot install Net::Stripe on Ubuntu 20.04 #212

bill-coacho opened this issue Sep 9, 2022 · 2 comments

Comments

@bill-coacho
Copy link

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

@sherrardb
Copy link
Collaborator

@bill-coacho,
this is a long-standing error from one of the dependencies, not Net::Stripe itself. please have a look at

#202

and the related

tobyink/p5-kavorka#22

i am hoping that the solution that you applied in Apr 2020 still works:

tobyink/p5-kavorka#22 (comment)

@bill-coacho
Copy link
Author

bill-coacho commented Sep 9, 2022 via email

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

2 participants