Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Problem in MooseX?

by VingInMedina (Acolyte)
on Jan 13, 2011 at 20:15 UTC ( #882225=perlquestion: print w/ replies, xml ) Need Help??
VingInMedina has asked for the wisdom of the Perl Monks concerning the following question:

I have been working with the WWW::Google::Contacts package. I am using ActivePerl 5.10.0 Build 1003 on my WindowsXP machine. Things were going along just fine. Program was working and I was pulling my Google Contacts into my program.

I was trying to add a splash screen to my Tk program startup and added a couple more packages and updated another couple (Win32API, Win32, Zlib, Stash) that had later versions. Now all of a sudden my program will no longer even compile!

Here is just a little test program to show what is happening.

#!C:/Perl/bin/perl.exe -w use strict; use WWW::Google::Contacts; print "Hello World\n";
This is what I am getting when I attempt to run it:
Undefined subroutine &MooseX::Types::Base::find_type_constraint called + at C:/Perl/site/lib/MooseX/Types/Base.pm line 64. BEGIN failed--compilation aborted at C:/Perl/site/lib/WWW/Google/Conta +cts/Contact.pm line 8. Compilation failed in require at C:/Perl/site/lib/WWW/Google/Contacts. +pm line 14. BEGIN failed--compilation aborted at C:/Perl/site/lib/WWW/Google/Conta +cts.pm line 14. Compilation failed in require at C:/bin/testGC.pl line 5. BEGIN failed--compilation aborted at C:/bin/testGC.pl line 5.

The thing is, the Moose and MooseX packages haven't changed. I don't have a clue as to where to go, so any thought would be really helpful.

Comment on Problem in MooseX?
Select or Download Code
Re: Problem in MooseX?
by eff_i_g (Curate) on Jan 13, 2011 at 20:38 UTC
    Are you positive they didn't change? I had a program that was using Moose and MooseX::ChainedAccessors and it broke after I installed a module that upgraded Moose. There are more details here. Perhaps you have a similar problem?
Re: Problem in MooseX?
by ikegami (Pope) on Jan 13, 2011 at 21:06 UTC
    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) [...]
      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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2014-09-30 18:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (380 votes), past polls