http://www.perlmonks.org?node_id=1031013

HelenCr has asked for the wisdom of the Perl Monks concerning the following question:

Dear esteemed PerlMonks

I have been using CPANPLUS for a while. I find it neat and cool.
Now today, it suddenly stopped working.

When I ask it to look for a module (for example, CPAN Terminal>m wx) it returns immediately, without doing anything, and without saying anything (no error message).

(When I go: CPAN Terminal>help, it still prints the entire help message).

What to do?

Many TIA - HELEN

cpanp version: 0.9112 on Windows 7. DWIM Perl 5.14.2

Replies are listed 'Best First'.
Re: CPANP (CPAN Plus) stopped working - help
by bingos (Vicar) on Apr 27, 2013 at 22:23 UTC

    I suspect it is a change in one of the CPAN index files that occurred today that is causing your problems.

    You could turn on verbosity, just to be sure

    CPAN Terminal> s conf verbose 1

    If it is as I suspect, then upgrading to the fixed version of CPANPLUS (0.9136) I released today should solve the problem

    C:\> lwp-mirror http://www.cpan.org/authors/id/B/BI/BINGOS/CPANPLUS-0. +9136.tar.gz CPANPLUS-0.9136.tar.gz C:\> ptar zxf CPANPLUS-0.9136.tar.gz C:\> cd CPANPLUS-0.9136 C:\> perl bin/cpanp-boxed CPAN Terminal> i CPANPLUS

      I released today should solve the problem

      might require a kick in the pants :)( cpanp -x --update_source )

        bingos/AM: please review this session: I tried to update (x) and it issued an error:

        CPAN Terminal> s conf verbose 1 Key 'verbose' was set to '1' CPAN Terminal> m Wx CPAN Terminal> x --update_source [MSG] Checking if source files are up to date [MSG] Updating source file '01mailrc.txt.gz' [MSG] Trying to get 'http://cpan.strawberryperl.com/authors/01mailrc.t +xt.gz' [MSG] Updating source file '03modlist.data.gz' [MSG] Trying to get 'http://cpan.strawberryperl.com/modules/03modlist. +data.gz' [MSG] Updating source file '02packages.details.txt.gz' [MSG] Trying to get 'http://cpan.strawberryperl.com/modules/02packages +.details.txt.gz' [MSG] Rebuilding author tree, this might take a while [MSG] Rebuilding module tree, this might take a while [ERROR] Can't use an undefined value as an ARRAY reference at F:/Win7p +rograms/Dwimperl/perl/lib/CPANPLUS/Internals/Source.pm line 849.

        Many TIA - Helen

      bingos, khen1950fx and AM: I have installed 0.9136 according to your instructions - here is the tail of the installation:

      Looks ok, I think.
      I then ran cpanp, and it seems to be working fine.

      That was pressurizing. (sigh of relief).

      Thank you for you investment of time and energy - Helen

      By the way: can cpanp install a module from a PPM repository?

        I'm glad everything worked out in the end.

        It can't do PPM installs sorry. You should have included with DWIM a ppm commandline utility that should be able to.