cpan-testers / CPAN-Reporter

(Perl) Adds CPAN Testers reporting to CPAN.pm
http://search.cpan.org/dist/CPAN-Reporter/
20 stars 18 forks source link

metabase-profile fails on Strawberry Perl [rt.cpan.org #85428] #71

Open xdg opened 8 years ago

xdg commented 8 years ago

https://rt.cpan.org/Ticket/Display.html?id=85428

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]