Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

trouble with namespace::clean

by nikmit (Sexton)
on May 13, 2016 at 08:25 UTC ( [id://1162923]=perlquestion: print w/replies, xml ) Need Help??

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

Hi,

I am getting the following error when running a Dancer2 app which was running OK yesterday:

Unable to load class for Session component Cookie: namespace::clean does not define $namespace::clean::VERSION--version check failed at /usr/share/perl5/vendor_perl/namespace/autoclean.pm line 15

What broke it was my attempt to install Net::SAML2 via cpanm, which failed and I hastily forced it rather than look into the error with a bit more attention... Reinstalling all packages concerned did not help me, and namespace::clean fails to install with:

# Failed test 'module use ok' # at t/00-basic.t line 14. # Failed test 'foo function removed' # at t/00-basic.t line 18. # Failed test 'bar function removed' # at t/00-basic.t line 18. # Looks like you failed 3 tests of 4. t/00-basic.t ............. Dubious, test returned 3 (wstat 768, 0x300) Failed 3/4 subtests # Failed test 'use FunctionWipeout;' # at t/01-function-wipeout.t line 9. # Tried to use 'FunctionWipeout'. # Error: namespace::clean does not define $namespace::clean::VERS +ION--version check failed at /usr/local/share/perl5/namespace/autocle +an.pm line 12.

Lots more errors after that but they all seem to come down to the VERSION check above.
I tried a yum reinstall perl-namespace-clean.noarch and that installs OK but makes no difference.

Unless you guys can offer something better, my next (desparate) step would be to delete all perl5 folders and then start reinstalling perl from yum and cpanm... I really don't want to do that though, even on this dev server.

Replies are listed 'Best First'.
Re: trouble with namespace::clean
by Anonymous Monk on May 13, 2016 at 08:40 UTC
      0.24 - as distributed by RedHat

        But you've over-ridden that by using cpanm with the system perl, no? That way lies madness and despair. Keep the system perl and cpanm completely separated to avoid this particular brand of infernal torment.

        Find out where cpanm has installed its versions (hopefully not in the vendor tree) and clear out everything that was added in your last change - perllocal.pod should help with that.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (1)
As of 2024-04-25 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found