This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id:
23933
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
ANDK [...] cpan.org
Requestors:
morten.bjornsvik [...] experian-scorex.no
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: RE: [Patch] CPAN.pm 1.8802 dies with backtrace due to calling prompt() with an undefined value
Date: Thu, 14 Dec 2006 14:40:14 +0100
To: <bug-cpan@rt.cpan.org>
From: Morten Bjørnsvik <morten.bjornsvik@experian-scorex.no>
Thanks Ævar The same error/fix applies to v1.8801 as well
Show quoted text
cpan> ?
Display Information (ver 1.8801)
Show quoted text
cpan> install CPAN
Fetching with LWP: ftp://ftp.uninett.no/pub/languages/perl/CPAN/authors/01mailrc.txt.gz prompt function called without an argument at /usr/lib/perl5/5.8.7/ExtUtils/MakeMaker.pm line 131 ExtUtils::MakeMaker::prompt('undef') called at (eval 10) line 2613 CPAN::LWP::UserAgent::_get_username_and_password_from_user('\x{a}Authentication needed!\x{a} (Note: to permanently configure ...') called at (eval 10) line 2602 CPAN::LWP::UserAgent::get_non_proxy_credentials('CPAN::LWP::UserAgent=HASH(0xa9719d0)') called at (eval 10) line 2563 CPAN::LWP::UserAgent::get_basic_credentials('CPAN::LWP::UserAgent=HASH(0xa9719d0)', 'FTP login', 'URI::ftp=SCALAR(0xa9bf8a8)', '') called at /usr/lib/perl5/vendor_perl/5.8.7/LWP/Authen/Basic.pm line 11 LWP::Authen::Basic::authenticate('LWP::Authen::Basic', 'CPAN::LWP::UserAgent=HASH(0xa9719d0)', '', 'HASH(0xab5fbd0)', 'HTTP::Response=HASH(0xab6d568)', 'HTTP::Request=HASH(0x85ea124)', '/root/.cpan/sources/authors/01mailrc.txt.gz-22250', 'undef') called at /usr/lib/perl5/vendor_perl/5.8.7/LWP/UserAgent.pm line 403 LWP::UserAgent::request('CPAN::LWP::UserAgent=HASH(0xa9719d0)', 'HTTP::Request=HASH(0x85ea124)', '/root/.cpan/sources/authors/01mailrc.txt.gz-22250') called at /usr/lib/perl5/vendor_perl/5.8.7/LWP/UserAgent.pm line 682 LWP::UserAgent::mirror('CPAN::LWP::UserAgent=HASH(0xa9719d0)', 'ftp://ftp.uninett.no/pub/languages/perl/CPAN/authors/01mailrc...', '/root/.cpan/sources/authors/01mailrc.txt.gz') called at (eval 10) line 2663 CPAN::LWP::UserAgent::mirror('CPAN::LWP::UserAgent=HASH(0xa9719d0)', 'ftp://ftp.uninett.no/pub/languages/perl/CPAN/authors/01mailrc...', '/root/.cpan/sources/authors/01mailrc.txt.gz') called at (eval 10) line 2987 CPAN::FTP::hosteasy('CPAN::FTP', 'ARRAY(0xa954c88)', 'authors/01mailrc.txt.gz', '/root/.cpan/sources/authors/01mailrc.txt.gz') called at (eval 10) line 2890 CPAN::FTP::localize('CPAN::FTP', 'authors/01mailrc.txt.gz', '/root/.cpan/sources/authors/01mailrc.txt.gz', 3) called at (eval 10) line 3712 CPAN::Index::reload_x('CPAN::Index', 'authors/01mailrc.txt.gz', 'authors/01mailrc.txt.gz', 'undef') called at (eval 10) line 3652 CPAN::Index::reload('CPAN::Index') called at (eval 10) line 859 CPAN::exists('CPAN=HASH(0x87b171c)', 'CPAN::Module', 'CPAN') called at (eval 10) line 2071 CPAN::Shell::expandany('CPAN::Shell', 'CPAN') called at (eval 10) line 2436 CPAN::Shell::rematein('CPAN::Shell', 'install', 'CPAN') called at (eval 10) line 2537 CPAN::Shell::__ANON__('CPAN::Shell', 'CPAN') called at /usr/lib/perl5/5.8.7/CPAN.pm line 231 eval {...} called at /usr/lib/perl5/5.8.7/CPAN.pm line 231 CPAN::shell() called at -e line 1 Fetching with LWP: ftp://ftp.uninett.no/pub/languages/perl/CPAN/authors/01mailrc.txt.gz Lockfile removed. prompt function called without an argument at /usr/lib/perl5/5.8.7/ExtUtils/MakeMaker.pm line 131 ExtUtils::MakeMaker::prompt('undef') called at (eval 10) line 2613 CPAN::LWP::UserAgent::_get_username_and_password_from_user('\x{a}Authentication needed!\x{a} (Note: to permanently configure ...') called at (eval 10) line 2602 CPAN::LWP::UserAgent::get_non_proxy_credentials('CPAN::LWP::UserAgent=HASH(0xa9719d0)') called at (eval 10) line 2563 CPAN::LWP::UserAgent::get_basic_credentials('CPAN::LWP::UserAgent=HASH(0xa9719d0)', 'FTP login', 'URI::ftp=SCALAR(0xab5fb1c)', '') called at /usr/lib/perl5/vendor_perl/5.8.7/LWP/Authen/Basic.pm line 11 LWP::Authen::Basic::authenticate('LWP::Authen::Basic', 'CPAN::LWP::UserAgent=HASH(0xa9719d0)', '', 'HASH(0xab6da0c)', 'HTTP::Response=HASH(0xa954b98)', 'HTTP::Request=HASH(0xa954bc8)', '/root/.cpan/sources/authors/01mailrc.txt.gz-22250', 'undef') called at /usr/lib/perl5/vendor_perl/5.8.7/LWP/UserAgent.pm line 403 LWP::UserAgent::request('CPAN::LWP::UserAgent=HASH(0xa9719d0)', 'HTTP::Request=HASH(0xa954bc8)', '/root/.cpan/sources/authors/01mailrc.txt.gz-22250') called at /usr/lib/perl5/vendor_perl/5.8.7/LWP/UserAgent.pm line 682 LWP::UserAgent::mirror('CPAN::LWP::UserAgent=HASH(0xa9719d0)', 'ftp://ftp.uninett.no/pub/languages/perl/CPAN/authors/01mailrc...', '/root/.cpan/sources/authors/01mailrc.txt.gz') called at (eval 10) line 2663 CPAN::LWP::UserAgent::mirror('CPAN::LWP::UserAgent=HASH(0xa9719d0)', 'ftp://ftp.uninett.no/pub/languages/perl/CPAN/authors/01mailrc...', '/root/.cpan/sources/authors/01mailrc.txt.gz') called at (eval 10) line 2987 CPAN::FTP::hosteasy('CPAN::FTP', 'ARRAY(0x85ea124)', 'authors/01mailrc.txt.gz', '/root/.cpan/sources/authors/01mailrc.txt.gz') called at (eval 10) line 2890 CPAN::FTP::localize('CPAN::FTP', 'authors/01mailrc.txt.gz', '/root/.cpan/sources/authors/01mailrc.txt.gz', 3) called at (eval 10) line 3712 CPAN::Index::reload_x('CPAN::Index', 'authors/01mailrc.txt.gz', 'authors/01mailrc.txt.gz', 'undef') called at (eval 10) line 3652 CPAN::Index::reload('CPAN::Index') called at (eval 10) line 640 CPAN::all_objects('CPAN=HASH(0x87b171c)', 'CPAN::Distribution') called at (eval 10) line 1916 CPAN::Shell::failed('CPAN::Shell', 4, 1) called at /usr/lib/perl5/5.8.7/CPAN.pm line 234 CPAN::shell() called at -e line 1 mbjlinux:~ # -- Morten Bjørnsvik
If you do not mind running with alpha and beta software, it would be interesting to see how CPAN-1.88_65 (in my CPAN directory "ANDK") behaves in your environment. Maybe the bug is fixed or the error message is more helpful now? If you cannot do that or if 1.88_65 behaves as badly, please send the full output of 'o conf' (but censor contained passwords before sending!). Thanks,
(Note to self: duplicate of 29887)
Fixed in 1.88_65


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.