Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Dist::Zilla spewing flames...

by blue_cowdawg (Monsignor)
on Oct 02, 2014 at 15:26 UTC ( #1102638=perlquestion: print w/replies, xml ) Need Help??

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

So, it's been a while since I used Dist::Zilla last and so I tried to start a new project with it this morning and it spewed all over itself. What in the world are these errors trying to tell me and what am I supposed to do to fix things?

dzil new RPG::Starmap 'Dist::Zilla::Role::File' requires the methods 'encoded_content' and ' +encoding' to be implemented by 'Dist::Zilla::File::Generated' at /usr +/local/lib/perl/5.14.2/Moose/Exception.pm line 34 Moose::Exception::_build_trace('Moose::Exception::RequiredMeth +odsNotImplementedByClass=HASH(0x1de5f08)') called at reader Moose::Ex +ception::trace (defined at /usr/local/lib/perl/5.14.2/Moose/Exception +.pm line 6) line 7 Moose::Exception::trace('Moose::Exception::RequiredMethodsNotI +mplementedByClass=HASH(0x1de5f08)') called at /usr/local/lib/perl/5.1 +4.2/Moose/Exception.pm line 46 Moose::Exception::BUILD('Moose::Exception::RequiredMethodsNotI +mplementedByClass=HASH(0x1de5f08)', 'HASH(0x1dce968)') called at /usr +/local/lib/perl/5.14.2/Class/MOP/Method.pm line 123 Class::MOP::Method::execute('Moose::Meta::Method=HASH(0x1e52ed +8)', 'Moose::Exception::RequiredMethodsNotImplementedByClass=HASH(0x1 +de5f08)', 'HASH(0x1dce968)') called at /usr/local/lib/perl/5.14.2/Moo +se/Object.pm line 52 Moose::Object::BUILDALL('Moose::Exception::RequiredMethodsNotI +mplementedByClass=HASH(0x1de5f08)', 'HASH(0x1dce968)') called at /usr +/local/lib/perl/5.14.2/Moose/Meta/Class.pm line 278 Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x1dfa +6f8)', 'HASH(0x1dce968)') called at /usr/local/lib/perl/5.14.2/Moose/ +Object.pm line 23 Moose::Object::new('Moose::Exception::RequiredMethodsNotImplem +entedByClass', 'class_name', 'Dist::Zilla::File::Generated', 'role_na +me', 'Dist::Zilla::Role::File', 'missing_methods', 'ARRAY(0x12236c8)' +) called at /usr/local/lib/perl/5.14.2/Moose/Util.pm line 49 Moose::Util::throw_exception('RequiredMethodsNotImplementedByC +lass', 'class_name', 'Dist::Zilla::File::Generated', 'role_name', 'Di +st::Zilla::Role::File', 'missing_methods', 'ARRAY(0x12236c8)') called + at /usr/local/lib/perl/5.14.2/Moose/Meta/Role/Application/ToClass.pm + line 104 Moose::Meta::Role::Application::ToClass::check_required_method +s('Moose::Meta::Role::Application::ToClass=HASH(0x1de61f0)', 'Moose:: +Meta::Role=HASH(0x1dce650)', 'Moose::Meta::Class=HASH(0x1db7970)') ca +lled at /usr/local/lib/perl/5.14.2/Moose/Meta/Role/Application.pm lin +e 51 Moose::Meta::Role::Application::apply('Moose::Meta::Role::Appl +ication::ToClass=HASH(0x1de61f0)', 'Moose::Meta::Role=HASH(0x1dce650) +', 'Moose::Meta::Class=HASH(0x1db7970)') called at /usr/local/lib/per +l/5.14.2/Moose/Meta/Role/Application/ToClass.pm line 32 Moose::Meta::Role::Application::ToClass::apply('Moose::Meta::R +ole::Application::ToClass=HASH(0x1de61f0)', 'Moose::Meta::Role=HASH(0 +x1dce650)', 'Moose::Meta::Class=HASH(0x1db7970)', 'HASH(0x1dea400)') +called at /usr/local/lib/perl/5.14.2/Moose/Meta/Role.pm line 471 Moose::Meta::Role::apply('Moose::Meta::Role=HASH(0x1dce650)', +'Moose::Meta::Class=HASH(0x1db7970)') called at /usr/local/lib/perl/5 +.14.2/Moose/Util.pm line 172 Moose::Util::_apply_all_roles('Moose::Meta::Class=HASH(0x1db79 +70)', undef, 'Dist::Zilla::Role::File') called at /usr/local/lib/perl +/5.14.2/Moose/Util.pm line 114 Moose::Util::apply_all_roles('Moose::Meta::Class=HASH(0x1db797 +0)', 'Dist::Zilla::Role::File') called at /usr/local/lib/perl/5.14.2/ +Moose.pm line 59 Moose::with('Moose::Meta::Class=HASH(0x1db7970)', 'Dist::Zilla +::Role::File') called at /usr/local/lib/perl/5.14.2/Moose/Exporter.pm + line 408 Moose::with('Dist::Zilla::Role::File') called at /usr/local/sh +are/perl/5.14.2/Dist/Zilla/File/Generated.pm line 36 require Dist/Zilla/File/Generated.pm at /usr/local/share/perl/ +5.14.2/Dist/Zilla/Plugin/Web/Bundle.pm line 13 Dist::Zilla::Plugin::Web::Bundle::BEGIN at /usr/local/share/pe +rl/5.14.2/Dist/Zilla/File/Generated.pm line 0 eval {...} at /usr/local/share/perl/5.14.2/Dist/Zilla/File/Gen +erated.pm line 0 require Dist/Zilla/Plugin/Web/Bundle.pm at /usr/local/share/pe +rl/5.14.2/Dist/Zilla/App/Command/bundle.pm line 12 Dist::Zilla::App::Command::bundle::BEGIN at /usr/local/share/p +erl/5.14.2/Dist/Zilla/File/Generated.pm line 0 eval {...} at /usr/local/share/perl/5.14.2/Dist/Zilla/File/Gen +erated.pm line 0 require Dist/Zilla/App/Command/bundle.pm at /usr/local/share/p +erl/5.14.2/Module/Runtime.pm line 317 Module::Runtime::require_module('Dist::Zilla::App::Command::bu +ndle') called at /usr/local/share/perl/5.14.2/Class/Load.pm line 180 Class::Load::try {...} at /usr/local/share/perl/5.14.2/Try/Ti +ny.pm line 76 eval {...} at /usr/local/share/perl/5.14.2/Try/Tiny.pm line 72 Try::Tiny::try('CODE(0x1dab9c8)', 'Try::Tiny::Catch=REF(0x1a96 +200)') called at /usr/local/share/perl/5.14.2/Class/Load.pm line 186 Class::Load::try_load_class('Dist::Zilla::App::Command::bundle +', undef) called at /usr/local/share/perl/5.14.2/Class/Load.pm line 4 +1 Class::Load::load_class('Dist::Zilla::App::Command::bundle') c +alled at /usr/local/share/perl/5.14.2/App/Cmd.pm line 98 App::Cmd::_command('Dist::Zilla::App', undef) called at /usr/l +ocal/share/perl/5.14.2/App/Cmd.pm line 72 App::Cmd::new('Dist::Zilla::App') called at /usr/local/share/p +erl/5.14.2/App/Cmd.pm line 203 App::Cmd::run('Dist::Zilla::App') called at /usr/local/bin/dzi +l line 15 Compilation failed in require at /usr/local/share/perl/5.14.2/Dist/Zil +la/Plugin/Web/Bundle.pm line 13. BEGIN failed--compilation aborted at /usr/local/share/perl/5.14.2/Dist +/Zilla/Plugin/Web/Bundle.pm line 13. Compilation failed in require at /usr/local/share/perl/5.14.2/Dist/Zil +la/App/Command/bundle.pm line 12. BEGIN failed--compilation aborted at /usr/local/share/perl/5.14.2/Dist +/Zilla/App/Command/bundle.pm line 12. Compilation failed in require at /usr/local/share/perl/5.14.2/App/Cmd. +pm line 98. App::Cmd::_command("Dist::Zilla::App", undef) called at /usr/l +ocal/share/perl/5.14.2/App/Cmd.pm line 72 App::Cmd::new("Dist::Zilla::App") called at /usr/local/share/p +erl/5.14.2/App/Cmd.pm line 203 App::Cmd::run("Dist::Zilla::App") called at /usr/local/bin/dzi +l line 15

Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; Blog: http://blog.berghold.net Warning: No political correctness allowed.

Replies are listed 'Best First'.
Re: Dist::Zilla spewing flames...
by McA (Priest) on Oct 02, 2014 at 16:54 UTC

    Hi,

    dispite the fact that this output reminds me at these ugly Java stacktraces, the very first line says much:

    'Dist::Zilla::Role::File' requires the methods 'encoded_content' and ' +encoding' to be implemented by 'Dist::Zilla::File::Generated'

    Without knowing the details, but Dist::Zilla::File::Generated is from 2012 and Dist::Zilla has undergone many many changes since that time. I'm pretty sure that Dist::Zilla::File::Generated doesn't fulfill the API of current Dist::Zilla anymore. Probably you can replace that plugin.

    Regards
    McA

      I tried that.

      root@MyMachine:~# cpanm Dist::Zilla::File::Generated Dist::Zilla::File::Generated is up to date. (0.0.6) root@MyMachine:~#


      Peter L. Berghold -- Unix Professional
      Peter -at- Berghold -dot- Net; Blog: http://blog.berghold.net Warning: No political correctness allowed.

        I think replace isn’t the same as update in this case :P The package seems to have some issues; I couldn’t build/install it at all–

         PASS (88)   FAIL (54)

        Maybe try a reinstall and see if it gives you grief and work back from there?

        cpanm Dist::Zilla::File::Generated --reinstall -v

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1102638]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2020-05-27 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (152 votes). Check out past polls.

    Notices?