Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CPAN-Reporter CPAN distribution.

Report information
The Basics
Id: 85428
Status: resolved
Priority: 0/
Queue: CPAN-Reporter

People
Owner: Nobody in particular
Requestors: ben.aveling [...] optusnet.com.au
Cc: CHORNY [...] cpan.org
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: metabase-profile fails on Strawberry Perl
Date: Sun, 19 May 2013 08:29:25 +1000
To: bug-CPAN-Reporter [...] rt.cpan.org
From: Ben Aveling <ben.aveling [...] optusnet.com.au>
Download (untitled) / with headers
text/plain 4.7k
CPAN::Reporter seems to install fine (using CPAN). But when I enter "o conf init test_report", CPAN runs metabase-profile, and fails. It displays a prompt for Full Name, but won't accept any input. Would you like to run 'metabase-profile' now to create 'C:\Users\ben\.cpanreport er\metabase_id.json'? [y] y Running [C:\STRAWB~1\perl\site\bin\metabase-profile.BAT --output C:\Users\ben\.c panreporter\metabase_id.json --email bena.001@optusnet.com.au --secret 05420000] ... Enter full name: After a while it seems to timeout and prompt for Transport (See below). At which point, what I tried to enter as my Full Name gets entered as my transport. If I didn't try to enter a full name, I can enter a Transport, but it then prompts for metabase-profile again, and again, until I hit ^C to break the loop. Running metabase-profile from the command line works fine, after which "o conf init test_report" skips the metabase-profile section, and works. Regards, Ben Distribution name and version: CPAN::Reporter version 1.2010 Perl version Strawberry Perl perl 5, version 14, subversion 2 (v5.14.2) built for MSWin32-x64-multi-thread Operating System vendor and version Windows 7 Professional - Service Pack 1 MINGW32_NT-6.1 VI 1.0.12(0.46/3/2) 2011-07-20 17:52 i686 unknown Exact cut and pasted error or warning messages By default, CPAN::Reporter will prompt you for confirmation that the test report should be sent before actually doing it. This gives the opportunity to skip sending particular reports if you need to (e.g. if you caused the failure). This option takes "grade:action" pairs. (Recommended: 'default:ask/yes pass/na:yes') send_report? [default:ask/yes pass/na:yes] CPAN::Reporter sends your reports over HTTPS using Metabase. This option lets you set a different uri, transport mechanism and metabase profile path. If you are receiving HTTPS errors, you may change the uri to use plain HTTP, though this is not recommended. Unless you know what you're doing, just accept the default value. (Recommended: 'Metabase uri https://metabase.cpantesters.org/api/v1/ id_file met abase_id.json') transport? [metabase] Metabase uri https://metabase.cpantesters.org/api/v1/ id_f ile metabase_id.json Would you like to run 'metabase-profile' now to create 'C:\Users\ben\.cpanreport er\metabase_id.json'? [y] y Running [C:\STRAWB~1\perl\site\bin\metabase-profile.BAT --output C:\Users\ben\.c panreporter\metabase_id.json --email bena.001@optusnet.com.au --secret 05420000] ... Enter full name: Use of uninitialized value $answer in chomp at C:\STRAWB~1\perl \site\bin\metabase-profile.BAT line 64. missing required argument "full_name" when constructing Metabase::User::Profile at C:/strawberry/perl/site/lib/Metabase/Fact.pm line 38 Metabase::Fact::__validate_args('Metabase::User::Profile', 'ARRAY(0x2a25 480)', 'HASH(0x31ed40)') called at C:/strawberry/perl/site/lib/Metabase/User/Pro file.pm line 21 Metabase::User::Profile::create('Metabase::User::Profile', 'email_addres s', 'bena.001@optusnet.com.au', 'full_name', undef) called at C:\STRAWB~1\perl\s ite\bin\metabase-profile.BAT line 70 transport? [metabase] Metabase uri https://metabase.cpantesters.org/api/v1/ id_f ile metabase_id.json Would you like to run 'metabase-profile' now to create 'C:\Users\ben\.cpanreport er\metabase_id.json'? [y] Running [C:\STRAWB~1\perl\site\bin\metabase-profile.BAT --output C:\Users\ben\.c panreporter\metabase_id.json --email bena.001@optusnet.com.au --secret 107f0000] ... Enter full name: Use of uninitialized value $answer in chomp at C:\STRAWB~1\perl \site\bin\metabase-profile.BAT line 64. missing required argument "full_name" when constructing Metabase::User::Profile at C:/strawberry/perl/site/lib/Metabase/Fact.pm line 38 Metabase::Fact::__validate_args('Metabase::User::Profile', 'ARRAY(0x2995 480)', 'HASH(0x32ed40)') called at C:/strawberry/perl/site/lib/Metabase/User/Pro file.pm line 21 Metabase::User::Profile::create('Metabase::User::Profile', 'email_addres s', 'bena.001@optusnet.com.au', 'full_name', undef) called at C:\STRAWB~1\perl\s ite\bin\metabase-profile.BAT line 70 transport? [metabase] Metabase uri https://metabase.cpantesters.org/api/v1/ id_f ile metabase_id.json Would you like to run 'metabase-profile' now to create 'C:\Users\ben\.cpanreport er\metabase_id.json'? [y] n You can create a Metabase profile by typing 'metabase-profile' in your command prompt and moving the resulting file to the location you specified. If you did not specify an absolute path, put it in your .cpanreporter directory. You will need to do this before continuing. transport? [metabase] Metabase uri https://metabase.cpantesters.org/api/v1/ id_f ile metabase_id.json Would you like to run 'metabase-profile' now to create 'C:\Users\ben\.cpanreport er\metabase_id.json'? [y]
Download (untitled) / with headers
text/plain 502b
metabase-profile is run from CPAN::Reporter::Config, sub _generate_profile. It uses IPC::Cmd to run metabase-profile which uses IO::Prompt::Tiny. IO::Prompt::Tiny assumes default when STDOUT is not a terminal. For me it is not terminal. So metabase-profile misleadingly prints 'Enter full name:' if it was not possible to extract full name from e-mail. Bit it does exit immediately. Ben, did you use last version of CPAN::Reporter when you have seen this bug? -- Alexandr Ciornii, http://chorny.net


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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