Thanks Shlomi, That was helpful. It transpires that I added nothing to
my @INC, not permanently. A complete misunderstanding on my part. I went
through the CPAN set-up again and paid slightly more attention.

I managed to get some things installed, but one dependency keeps on failing
tests:

Net::Google::DataAPI::Auth::OAuth2

At least one other person has experienced the same issues as myself, but
there do not appear to be any solutions to it. Each failed test appears to
start with what I think is a test function named "is_deeply" that I think
tests the data structure returned:

https://rt.cpan.org/Public/Bug/Display.html?id=124866

 (copied and pasted the failed tests below).

Is anybody able to suggest if this is a "me" problem or a problem with the
module? If it's something I'm doing I can feel as though it's worthwhile
persevering, else it might just be a waste of time.

Thanks,
James

#   Failed test at t/04_auth/04_oauth2.t line 72.
#     Structures begin differing at:
#          $got->{hd} = ''
#     $expected->{hd} = Does not exist

#   Failed test at t/04_auth/04_oauth2.t line 101.
#     Structures begin differing at:
#          $got->{hd} = ''
#     $expected->{hd} = Does not exist

#   Failed test at t/04_auth/04_oauth2.t line 124.
#     Structures begin differing at:
#          $got->{hd} = ''
#     $expected->{hd} = Does not exist
# Looks like you failed 3 tests of 28.
t/04_auth/04_oauth2.t .................................. Dubious, test
returned 3 (wstat 768, 0x300)
Failed 3/28 subtests
t/05_types.t ........................................... Any::Moose is
deprecated. Please use Moo instead at t/05_types.t line 6.
t/05_types.t ........................................... ok

Test Summary Report
-------------------
t/04_auth/04_oauth2.t                                (Wstat: 768 Tests: 28
Failed: 3)
  Failed tests:  9, 22, 28
  Non-zero exit status: 3
Files=24, Tests=423,  6 wallclock secs ( 0.11 usr  0.02 sys +  4.28 cusr
 0.37 csys =  4.78 CPU)
Result: FAIL
Failed 1/24 test programs. 3/423 subtests failed.
Makefile:801: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
  DANJOU/Net-Google-DataAPI-0.2805.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports DANJOU/Net-Google-DataAPI-0.2805.tar.gz
Failed during this command:
 DANJOU/Net-Google-DataAPI-0.2805.tar.gz      : make_test NO

On Mon, Aug 5, 2019 at 5:56 PM Shlomi Fish <shlo...@shlomifish.org> wrote:

> hi James,
>
> On Mon, 5 Aug 2019 15:47:45 +0100
> James Kerwin <jkerwin2...@gmail.com> wrote:
>
> > Hi All,
> >
> > I'm having some difficulty installing a Perl Module;
> > Net::Google::Spreadsheets". Inititally it was installing in to my user
> > account home directory and I wasn't certain how to change this, so I just
> > added the directory to my @INC (this isn't a live server, it's purely for
> > me to test on at the moment).
> >
>
> Please see https://perl-begin.org/topics/cpan/ and esp.
> https://metacpan.org/release/local-lib and try again from a clean slate.
>
> > It appears to do a LOT when installing this module and I won't pretend to
> > be an expert, but I really want it to work as it would be the perfect
> > addition to a script I wrote recently (provides the user with a button to
> > extract data from a database and then ideally pushes the data to a google
> > sheet).
> >
> > Would anybody be kind enough to help me troubleshoot this? Here is some
> > output (apologies if it's not correctly displayed, I can't remember how
> you
> > all usually request it to be displayed):
> >
> > Net::IDN::Encode is up to date (2.500).
> >   HIROSE/Net-Google-Spreadsheets-V4-0.002.tar.gz
> >   Has already been unwrapped into directory
> > /home/james/.cpan/build/Net-Google-Spreadsheets-V4-0.002-gyJS1X
> >   HIROSE/Net-Google-Spreadsheets-V4-0.002.tar.gz
> >   Has already been prepared
> > Running Build for H/HI/HIROSE/Net-Google-Spreadsheets-V4-0.002.tar.gz
> > Warning: Prerequisite 'Net::Google::DataAPI::Auth::OAuth2 => 0' for
> > 'HIROSE/Net-Google-Spreadsheets-V4-0.002.tar.gz' failed when processing
> > 'DANJOU/Net-Google-DataAPI-0.2805.tar.gz' with 'make_test => NO one
> > dependency not OK (XML::Atom); additionally test harness failed'.
> > Continuing, but chances to succeed are limited.
> > cp lib/Net/Google/Spreadsheets/V4.pm
> blib/lib/Net/Google/Spreadsheets/V4.pm
> >   HIROSE/Net-Google-Spreadsheets-V4-0.002.tar.gz
> >   ./Build -- OK
> > Running Build test
> > t/00_compile.t .............. 1/?
> > #   Failed test 'use Net::Google::Spreadsheets::V4;'
> > #   at t/00_compile.t line 4.
> > #     Tried to use 'Net::Google::Spreadsheets::V4'.
> > #     Error:  Can't locate Net/Google/DataAPI/Auth/OAuth2.pm in @INC (you
> > may need to install the Net::Google::DataAPI::Auth::OAuth2 module) (@INC
> > contains:
> > /home/james/.cpan/build/Net-Google-Spreadsheets-V4-0.002-gyJS1X/blib/arch
> > /home/james/.cpan/build/Net-Google-Spreadsheets-V4-0.002-gyJS1X/blib/lib
> > /home/james/.cpan /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1
> > /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22
> > /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22
> > /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at
> >
> /home/james/.cpan/build/Net-Google-Spreadsheets-V4-0.002-gyJS1X/blib/lib/Net/Google/Spreadsheets/V4.pm
> > line 18.
> > # BEGIN failed--compilation aborted at
> >
> /home/james/.cpan/build/Net-Google-Spreadsheets-V4-0.002-gyJS1X/blib/lib/Net/Google/Spreadsheets/V4.pm
> > line 18.
> > # Compilation failed in require at t/00_compile.t line 4.
> > # BEGIN failed--compilation aborted at t/00_compile.t line 4.
> > # Looks like you failed 1 test of 1.
> > t/00_compile.t .............. Dubious, test returned 1 (wstat 256, 0x100)
> > Failed 1/1 subtests
> > t/01_new.t .................. Can't locate
> > Net/Google/DataAPI/Auth/OAuth2.pm in @INC (you may need to install the
> > Net::Google::DataAPI::Auth::OAuth2 module) (@INC contains:
> > /home/james/.cpan/build/Net-Google-Spreadsheets-V4-0.002-gyJS1X/blib/arch
> > /home/james/.cpan/build/Net-Google-Spreadsheets-V4-0.002-gyJS1X/blib/lib
> > /home/james/.cpan /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1
> > /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22
> > /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22
> > /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at
> >
> /home/james/.cpan/build/Net-Google-Spreadsheets-V4-0.002-gyJS1X/blib/lib/Net/Google/Spreadsheets/V4.pm
> > line 18.
> > BEGIN failed--compilation aborted at
> >
> /home/james/.cpan/build/Net-Google-Spreadsheets-V4-0.002-gyJS1X/blib/lib/Net/Google/Spreadsheets/V4.pm
> > line 18.
> > Compilation failed in require at t/01_new.t line 4.
> > t/01_new.t .................. Dubious, test returned 2 (wstat 512, 0x200)
> > No subtests run
> > t/author-00_basic.t ......... skipped: these tests are for testing by the
> > author
> > t/author-critic.t ........... skipped: these tests are for testing by the
> > author
> > t/author-dependencies.t ..... skipped: these tests are for testing by the
> > author
> > t/author-pod-spell.t ........ skipped: these tests are for testing by the
> > author
> > t/release-fixme.t ........... skipped: these tests are for release
> > candidate testing
> > t/release-kwalitee-extra.t .. skipped: these tests are for release
> > candidate testing
> > t/release-kwalitee.t ........ skipped: these tests are for release
> > candidate testing
> > t/release-pod-syntax.t ...... skipped: these tests are for release
> > candidate testing
> > t/release-unused-vars.t ..... skipped: these tests are for release
> > candidate testing
> >
> > Test Summary Report
> > -------------------
> > t/00_compile.t            (Wstat: 256 Tests: 1 Failed: 1)
> >   Failed test:  1
> >   Non-zero exit status: 1
> > t/01_new.t                (Wstat: 512 Tests: 0 Failed: 0)
> >   Non-zero exit status: 2
> >   Parse errors: No plan found in TAP output
> > Files=11, Tests=1,  1 wallclock secs ( 0.03 usr  0.01 sys +  0.98 cusr
> >  0.07 csys =  1.09 CPU)
> > Result: FAIL
> >   HIROSE/Net-Google-Spreadsheets-V4-0.002.tar.gz
> > one dependency not OK (Net::Google::DataAPI::Auth::OAuth2); additionally
> > test harness failed
> >   ./Build test -- NOT OK
> > //hint// to see the cpan-testers results for installing this module, try:
> >   reports HIROSE/Net-Google-Spreadsheets-V4-0.002.tar.gz
> > Failed during this command:
> >  TODDR/XML-Parser-2.44.tar.gz                 : make NO
> >  MANWAR/XML-XPath-1.44.tar.gz                 : make_test NO one
> dependency
> > not OK (XML::Parser); additionally test harness failed
> >  MIYAGAWA/XML-Atom-0.42.tar.gz                : make_test NO one
> dependency
> > not OK (XML::XPath)
> >  DANJOU/Net-Google-DataAPI-0.2805.tar.gz      : make_test NO one
> dependency
> > not OK (XML::Atom); additionally test harness failed
> >  HIROSE/Net-Google-Spreadsheets-V4-0.002.tar.gz: make_test NO one
> > dependency not OK (Net::Google::DataAPI::Auth::OAuth2); additionally test
> > harness failed
>
>
>
> --
> -----------------------------------------------------------------
> Shlomi Fish       http://www.shlomifish.org/
> https://github.com/shlomif/shlomif-computer-settings/ - my dotfiles
>
> Ever notice that even the busiest people are never too busy to tell you
> just how busy they are?
>     — Source unknown, taken from Linux’s fortune-mod
>
> Please reply to list if it's a mailing list post - http://shlom.in/reply .
>

Reply via email to