Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid metadata structure. Errors: Expected a map structure from string or file. [Validation: 1.0] #3

Open
timbunce opened this issue Feb 22, 2015 · 2 comments

Comments

@timbunce
Copy link

Hello David.

I just tried to run rt-to-github.pl on my devel-nytprof repo repo, which I'd checked out and run 'perl Makefile.PL' in to generate a MYMETA.json file.

I got this error:

$ ~/repos/zzz-rt-to-github/rt-to-github.pl -n
github user:  [timbunce]
github token:  [...]
repo owner:  [timbunce]
repo name:  [master] devel-nytprof
PAUSE ID:  [TIMB]
Invalid metadata structure. Errors: Expected a map structure from string or file. [Validation: 1.0]
 at /Users/timbo/repos/zzz-rt-to-github/rt-to-github.pl line 50.

I upgraded CPAN::Meta to the latest ("installed CPAN-Meta-2.143240 (upgraded from 2.142690)") but that didn't help.

Then I figured the generated MYMETA.json file might be the problem, so I updated ExtUtils::MakeMaker ("installed ExtUtils-MakeMaker-7.04 (upgraded from 6.66)") but that didn't help.

Eventually I hacked the code to ignore MYMETA.json etc. Then it prompted for 'RT dist name' and all was well.

@dagolden
Copy link
Collaborator

Can you post or email me the generated MYMETA file, please? That's an error from CPAN::Meta::Validator, I think and I'm curious what it's choking on.

@timbunce
Copy link
Author

{
   "abstract" : "Powerful fast feature-rich Perl source code profiler",
   "author" : [
      "Tim Bunce <[email protected]>"
   ],
   "dynamic_config" : 0,
   "generated_by" : "ExtUtils::MakeMaker version 7.04, CPAN::Meta::Converter version 2.143240",
   "license" : [
      "perl_5"
   ],
   "meta-spec" : {
      "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
      "version" : "2"
   },
   "name" : "Devel-NYTProf",
   "no_index" : {
      "directory" : [
         "t",
         "inc"
      ],
      "package" : [
         "SVG"
      ]
   },
   "prereqs" : {
      "build" : {
         "requires" : {
            "ExtUtils::MakeMaker" : "0"
         }
      },
      "configure" : {
         "requires" : {
            "ExtUtils::MakeMaker" : "0"
         }
      },
      "runtime" : {
         "requires" : {
            "Getopt::Long" : "0",
            "JSON::Any" : "0",
            "List::Util" : "0",
            "Test::Differences" : "0.60",
            "Test::More" : "0.84",
            "XSLoader" : "0"
         }
      }
   },
   "release_status" : "stable",
   "resources" : {
      "bugtracker" : {
         "mailto" : "[email protected]",
         "web" : "https://github.com/timbunce/devel-nytprof/issues"
      },
      "homepage" : "https://code.google.com/p/perl-devel-nytprof/",
      "license" : [
         "http://dev.perl.org/licenses/"
      ],
      "repository" : {
         "type" : "git",
         "url" : "git://github.com/timbunce/devel-nytprof.git",
         "web" : "https://github.com/timbunce/devel-nytprof"
      },
      "x_MailingList" : "http://groups.google.com/group/develnytprof-dev"
   },
   "version" : "5.07"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant