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.


In reply to trouble with namespace::clean by nikmit

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.