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

I downloaded and installed the OpenThought web application framework this afternoon and ran into problems when running the tests. I was wondering if anyone here (perhaps even the authour, who I met at YAPC 2002) could help me understand what I've done wrong.

OpenThought consists of three modules, OpenThought-XML2Hash-0.56, OpenPlugin-0.09 and OpenThought-0.63. The installation instructions recommend you install them in that order, so that's what I did. The first module tested OK, but I got various errors like

fileparse(): need a valid pathname at /usr/local/exeg enix/src/OpenPlugin-0.09/blib/lib/OpenPlugin/Config.pm line 58
with the second module. The report that Failed 6/8 test scripts, 25.00% okay. 39/43 subtests failed, 9.30% okay didn't make me feel good.

The test of the third module also failed:

t/02_serialize......Can't call method "config" on unblessed reference +at lib/OpenThought.pm line 153.

I'm not sure how to solve this one either. Is this common? Am I being an egghead?

--t. alex
but my friends call me T.

Replies are listed 'Best First'.
Re: OpenThought test problems
by chromatic (Archbishop) on Dec 20, 2002 at 03:15 UTC

    The best way to solve this is to run the test manually (or in verbose mode), read the output, find the failure, fix it as easily as possible, and send a patch to the author. You might also check the CPAN Testers link for the module from http://search.cpan.org/, though it has no results in this case. Failing that, send the verbose output to the author along with the output of perl -V, and work with him to perform additional debugging.

    (I'm pretty sure you already knew this, so I'm posting for the benefit of readers who didn't.)

Re: OpenThought test problems
by andreychek (Parson) on Dec 20, 2002 at 05:12 UTC
    Hi talexb,

    Glad the first module worked without a hitch :-)

    I'm not sure about the error in OpenPlugin. If you could provide more information regarding the plugins/drivers you are trying to install, and perhaps the error messages, I think I can help you get that going.

    However, I'm ashamed to say that I do know what the problem with the third module, OpenThought, is. I'm still not sure how this managed to slip by, but there's a bug in the test suite.

    The fix (as least, a decent temporary one) is to edit two test files in the OpenThought distribution:
    t/02_serialize.t t/03_deserialize.t
    You can add the following line which should allow the test to work properly:
    $OpenThought::Prefix = "./openthought";
    You can put it after the line reading:
    use OpenThoughtTests();
    You are more than welcome to email me that debug information on OpenPlugin if you like. I'd be thrilled to be able to work out any kinks that are showing up.

    Thanks for the heads up,
    -Eric

    --
    Lucy: "What happens if you practice the piano for 20 years and then end up not being rich and famous?"
    Schroeder: "The joy is in the playing."
Re: OpenThought test problems
by submersible_toaster (Chaplain) on Dec 20, 2002 at 01:11 UTC
    I have seen 'vanilla' installs of OpenPlugin do this in on a variety of systems. I never got it to make test. So whilst I sympathize - You seem to be SOL. If you contact the author you might have some success .., what were you expecting from 0.09 ? : )
Re: OpenThought test problems
by talexb (Chancellor) on Dec 20, 2002 at 20:39 UTC

    Just a note, in case anyone is wondering .. Eric Andreycheck (andreychek) and I have been corresponding by E-Mail to get these problems solved. I'll post news and feedback on the module when things settle down, which will probably be the week after next (paid vacation next week -- woo-hoo!)

    --t. alex
    but my friends call me T.