in reply to Problem in MooseX?

I get similar errors trying to install the latest MooseX-Types (0.25) with the lastest Moose (1.21) installed.
[...] CPAN.pm: Going to build D/DR/DROLSKY/MooseX-Types-0.25.tar.gz Checking if your kit is complete... Looks good Writing Makefile for MooseX::Types cp lib/MooseX/Types/Base.pm blib/lib/MooseX/Types/Base.pm cp lib/MooseX/Types/Wrapper.pm blib/lib/MooseX/Types/Wrapper.pm cp lib/MooseX/Types/CheckedUtilExports.pm blib/lib/MooseX/Types/Checke +dUtilExports.pm cp lib/MooseX/Types/Util.pm blib/lib/MooseX/Types/Util.pm cp lib/MooseX/Types/UndefinedType.pm blib/lib/MooseX/Types/UndefinedTy +pe.pm cp lib/MooseX/Types/Combine.pm blib/lib/MooseX/Types/Combine.pm cp lib/MooseX/Types/TypeDecorator.pm blib/lib/MooseX/Types/TypeDecorat +or.pm cp lib/MooseX/Types/Moose.pm blib/lib/MooseX/Types/Moose.pm cp lib/MooseX/Types.pm blib/lib/MooseX/Types.pm Manifying blib/man3/MooseX::Types::Base.3 Manifying blib/man3/MooseX::Types::Wrapper.3 Manifying blib/man3/MooseX::Types::CheckedUtilExports.3 Manifying blib/man3/MooseX::Types::Util.3 Manifying blib/man3/MooseX::Types::UndefinedType.3 Manifying blib/man3/MooseX::Types::Combine.3 Manifying blib/man3/MooseX::Types::TypeDecorator.3 Manifying blib/man3/MooseX::Types::Moose.3 Manifying blib/man3/MooseX::Types.3 DROLSKY/MooseX-Types-0.25.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /home/eric/usr/perlbrew/perls/perl-5.12.2/bin/perl " +-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'bl +ib/arch')" t/*.t t/regressions/*.t t/10_moose-types.t ................. Undefined subroutine &MooseX::Typ +es::Base::find_type_constraint called at /home/eric/.cpan/build/Moose +X-Types-0.25-mMQaoo/blib/lib/MooseX/Types/Base.pm line 64. BEGIN failed--compilation aborted at t/10_moose-types.t line 8. t/10_moose-types.t ................. Dubious, test returned 255 (wstat + 65280, 0xff00) No subtests run t/11_library-definition.t .......... Undefined subroutine &MooseX::Typ +es::Base::find_type_constraint called at /home/eric/.cpan/build/Moose +X-Types-0.25-mMQaoo/blib/lib/MooseX/Types/Base.pm line 64. BEGIN failed--compilation aborted at /home/eric/.cpan/build/MooseX-Typ +es-0.25-mMQaoo/t/lib/TestLibrary.pm line 5. Compilation failed in require at t/11_library-definition.t line 9. BEGIN failed--compilation aborted at t/11_library-definition.t line 9. t/11_library-definition.t .......... Dubious, test returned 255 (wstat + 65280, 0xff00) [...]

Replies are listed 'Best First'.
Re^2: Problem in MooseX?
by ikegami (Patriarch) on Jan 13, 2011 at 21:42 UTC
    uh oh, upgrading Moose or one of its dependencies messed up my own project.

      I thought this was going to take hours, but it took just a few minutes! There were some hints that it was related to namespace::clean or namespace::autoclean, so I checked the Moose install output for "clean". I found only the following:

      [...] CPAN.pm: Going to build D/DO/DOY/Package-Stash-0.23.tar.gz *** Conflicts detected for Package::Stash: MooseX::Role::WithOverloading is version 0.08, but must be great +er than version 0.08 namespace::clean is version 0.18, but must be greater than versi +on 0.18 *** Checking if your kit is complete... Looks good [...]

      There were no corresponding installation of those dependencies. Upgrading namespace::clean fixed the installed version of MooseX-Types that got broken, and allowed me to install 0.25 cleanly.

        Wow, that did it! I upgraded namespace-clean from 0.18 to 0.20 and everything works again.

        That did it! I updated namespace::clean from 0.18 to 0.20 and everything is fine again!

        Thanks for your help!