views:

330

answers:

4

I'm trying to install the HTML::TreeBuilderX::ASP_NET mentioned Perl module on my box with CPAN.pm, but the "make test" part of the installation fails so the module doesn't get installed.

  • Distribution: HTML-TreeBuilderX-ASP_NET-0.08
  • Perl: "This is perl, v5.10.0 built for i486-linux-gnu-thread-multi"
  • OS: Linux 2.6.28-13-server #44-Ubuntu SMP Tue Jun 2 08:47:41 UTC 2009 i686 GNU/Linux (Ubuntu 9.04 Server Edition - "Jaunty")

Does anyone have an idea on how to solve this issue?

Thanks, Blomme

"cpan[1]> install HTML::TreeBuilderX::ASP_NET
CPAN: Storable loaded ok (v2.18)
Going to read '/home/jbp/.cpan/Metadata'
  Database was generated on Mon, 22 Jun 2009 17:26:57 GMT
CPAN: YAML loaded ok (v0.68)
Going to read 25 yaml files from /home/jbp/.cpan/build/
CPAN: Time::HiRes loaded ok (v1.9711)
............................................................................DONE
Restored the state of 25 (in 1.1087 secs)
Running install for module 'HTML::TreeBuilderX::ASP_NET'
Running make for E/EC/ECARROLL/HTML-TreeBuilderX-ASP_NET-0.08.tar.gz
  Has already been unwrapped into directory /home/jbp/.cpan/build/HTML-TreeBuild                                                                                            
erX-ASP_NET-0.08-ktkd53
  Has already been made
Running make test
/usr/bin/perl "-Iinc" Makefile.PL --config= --installdeps=Class::MOP,0,Moose,0,M                                                                                            
ooseX::Traits,0,HTTP::Request::Form,0
WARNING: 'All rights reserved' in copyright may invalidate Open Source license.
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,                                                                                             
'inc', 'blib/lib', 'blib/arch')" t/00-load.t t/01-bad_const.t t/02-good_const.t                                                                                             
t/03-helperFunc.t t/10-traits.t t/boilerplate.t t/pod.t
t/00-load.t ........ 1/1 # Testing HTML::TreeBuilderX::ASP_NET 0.08, Perl 5.0100                                                                                            
00, /usr/bin/perl
t/00-load.t ........ ok
t/01-bad_const.t ... Moose does not export its sugar to the 'main' package.
t/01-bad_const.t ... 1/7
#   Failed test 'Needs parent form tag'
#   at t/01-bad_const.t line 16.
#                   'Not a CODE reference at /usr/local/share/perl/5.10.0/Moose/                                                                                            
Meta/TypeConstraint.pm line 242.
# '
#     doesn't match '(?-xism:<form>)'
# Looks like you failed 1 test of 7.
t/01-bad_const.t ... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/7 subtests
t/02-good_const.t .. # No tests run!
t/02-good_const.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 5/5 subtests
t/03-helperFunc.t .. ok
t/10-traits.t ...... 1/5
#   Failed test 'Success with use! (failed without the parent form)'
#   at t/10-traits.t line 25.
#                   'Not a CODE reference at /usr/local/share/perl/5.10.0/Moose/                                                                                            
Meta/TypeConstraint.pm line 242.
# '
#     doesn't match '(?-xism:<form>)'
Not a CODE reference at /usr/local/share/perl/5.10.0/Moose/Meta/TypeConstraint.p                                                                                            
m line 242.
# Looks like you planned 5 tests but ran 3.
# Looks like you failed 1 test of 3 run.
# Looks like your test exited with 9 just after 3.
t/10-traits.t ...... Dubious, test returned 9 (wstat 2304, 0x900)
Failed 3/5 subtests
t/boilerplate.t .... ok
t/pod.t ............ skipped: Test::Pod 1.22 required for testing POD

Test Summary Report
-------------------
t/01-bad_const.t (Wstat: 256 Tests: 7 Failed: 1)
  Failed test:  7
  Non-zero exit status: 1
t/02-good_const.t (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 5 tests but ran 0.
t/10-traits.t    (Wstat: 2304 Tests: 3 Failed: 1)
  Failed test:  3
  Non-zero exit status: 9
  Parse errors: Bad plan.  You planned 5 tests but ran 3.
t/boilerplate.t  (Wstat: 0 Tests: 2 Failed: 0)
  TODO passed:   1-2
Files=7, Tests=17,  3 wallclock secs ( 0.06 usr  0.04 sys +  2.67 cusr  0.12 csy                                                                                            
s =  2.89 CPU)
Result: FAIL
Failed 3/7 test programs. 2/17 subtests failed.
make: *** [test_dynamic] Error 255
  ECARROLL/HTML-TreeBuilderX-ASP_NET-0.08.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports ECARROLL/HTML-TreeBuilderX-ASP_NET-0.08.tar.gz
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 ECARROLL/HTML-TreeBuilderX-ASP_NET-0.08.tar.gz: make_test NO"
A: 

Your best bet is to ask on perlmonks. You could even send a message to Evan Carroll, he's always lurking down there :)

wazoox
+2  A: 

It looks like the module is currently broken and has quite a few FAIL reports in CPAN Testers. You've already filed a bug report.

brian d foy
The thing is, that I can't really wait until Evan Carroll gets time to fix this module, so I was hoping, that someone in here was having an idea on how to fix it, or might even was able to fix it oneself, now that it's open source.Is it too much to ask?
Blomme
It's open source, which means you can fix it. Expecting someone else to do what you need for free, however, is too much to ask. Open source != charity. If you really need a fix quickly, pay someone to fix it.
brian d foy
A: 

Look at which tests are failing, identify why and figure out how to fix it.

Sinan Ünür
A: 

I'm working on this now, my recent interactions with the community have caused a firm feeling of apathy towards a few past contributions. I'll fix it, but for the record this module is broken because of //previously// supported, (and tested afaik) features being pulled from Moose. This isn't random breakage.

RT: Ticket http://rt.cpan.org/Public/Bug/Display.html?id=47300

Problem resolved, as I suspected, it was Moose breakage with how it handled TypeConstraint in new versions. They changed stuff. Anyway, try the new version if it doesn't work give me a shout. Also the project is on github now.

Evan Carroll