[Dbix-class] namespace::clean problems
Graham Knop
haarg at haarg.org
Mon Jun 24 11:28:56 GMT 2013
This looks like a bug to me. DBIx::Class::Carp tries to call
namespace::clean->import, but doesn't load it first. And
DBIx::Class::Carp is loaded by ::Schema before it loads
namespace::clean.
An import call on a package that doesn't exist or doesn't define an
import will usually be ignored. However, if UNIVERSAL.pm is loaded on
old versions of perl (pre-5.10) all packages become Exporters, and
will error on parameters passed to import.
On Mon, Jun 24, 2013 at 3:47 AM, Peter Rabbitson <rabbit+dbic at rabbit.us> wrote:
> On Mon, Jun 24, 2013 at 02:25:22PM +1200, Paul Findlay wrote:
>> Hi,
>>
>> I have started to see failed import errors after upgrading DBIx-Class to 0.08250:
>>
>> "-cleanee" is not exported by the namespace::clean module
>> "DBIx::Class::Schema" is not exported by the namespace::clean module
>> "carp" is not exported by the namespace::clean module
>> "carp_once" is not exported by the namespace::clean module
>> "carp_unique" is not exported by the namespace::clean module
>> Can't continue after import errors at /usr/lib/perl5/vendor_perl/5.8.8/DBIx/Class/Schema.pm line 6
>> BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/DBIx/Class/Schema.pm line 6
>> Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/parent.pm line 20.
>> BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/PINS/Schema.pm line 5.
>>
>> The offending line 5 is:
>> use parent 'DBIx::Class::Schema';
>>
>> I'm running perl 5.8.8 from Red Hat Enterprise Linux Server release 5.9
>>
>> Does anyone have tips on how to go about debugging this..?
>
> First off - try to load namespace::clean at the top of your PINS::Schema:
>
> use namespace::clean();
>
> This may be a silly load order issue. If this does not help - provide
> your version of namespace::clean, and if possible a dump of %INC *after*
> the error occurs (via BEGIN { $SIG{__DIE__} = sub { ...dump here... } } )
>
> Cheers
>
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
More information about the DBIx-Class
mailing list