Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Can't locate object method "is_floating" via package "floating"

by Anonymous Monk
on Oct 22, 2009 at 06:53 UTC ( #802664=perlquestion: print w/replies, xml ) Need Help??

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

I have been trying to compile the CPAN package DateTime-Calendar-Hebrew-0.04 and keep getting the following error when I type: make test

Can't locate object method "is_floating" via package "floating" (perha +ps you forgot to load "floating"?) at /usr/lib/perl5/vendor_perl/5.8. +8/i386-linux-thread-multi/DateTime.pm line 512

The module DateTime.pm is part of a standard Fedora rpm package that is installed on my Fedora8 machine and (presumably) built straight from the CPAN sources.

Googling, I noticed that several other testers have reported this problem, but no solution was offered. I also was unable to contact the author for his advice.

As a newbie to compiling CPAN modules, I'm not sure how I correct this problem. I would suspect that despite the error message, that the error is more likely to be in the DateTime-Calendar-Hebrew code than in the perl-DateTime since perl-DateTime is a rather standard module.

Any suggestions on what I need to do to make this test out properly?

Here is the complete log of the 'make test' attempt:

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0,\ 'blib/lib', 'blib/arch')" t/*.t t/accessors........ok t/clone............Name "main::Dumper" used only once: possible typo a +t t/clone\ .t line 25. Can't locate object method "is_floating" via package "floating" (perha +ps you fo\ rgot to load "floating"?) at /usr/lib/perl5/vendor_perl/5.8.8/i386-lin +ux-thread\ -multi/DateTime.pm line 512. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay t/durations........Use of uninitialized value in numeric ne (!=) at /s +cratch/Da\ teTime-Calendar-Hebrew-0.04/blib/lib/DateTime/Calendar/Hebrew.pm line +222. Use of uninitialized value in numeric ne (!=) at /scratch/DateTime-Cal +endar-Heb\ rew-0.04/blib/lib/DateTime/Calendar/Hebrew.pm line 222. Use of uninitialized value in numeric ne (!=) at /scratch/DateTime-Cal +endar-Heb\ rew-0.04/blib/lib/DateTime/Calendar/Hebrew.pm line 222. Use of uninitialized value in numeric ne (!=) at /scratch/DateTime-Cal +endar-Heb\ rew-0.04/blib/lib/DateTime/Calendar/Hebrew.pm line 222. ok t/from_object......Can't locate object method "is_floating" via packag +e "floati\ ng" (perhaps you forgot to load "floating"?) at /usr/lib/perl5/vendor_ +perl/5.8.\ 8/i386-linux-thread-multi/DateTime.pm line 512. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okayt/new..............ok t/now..............ok t/overload.........Use of uninitialized value in numeric ne (!=) at /s +cratch/Da\ teTime-Calendar-Hebrew-0.04/blib/lib/DateTime/Calendar/Hebrew.pm line +222. Use of uninitialized value in numeric ne (!=) at /scratch/DateTime-Cal +endar-Heb\ rew-0.04/blib/lib/DateTime/Calendar/Hebrew.pm line 222. Use of uninitialized value in numeric ne (!=) at /scratch/DateTime-Cal +endar-Heb\ rew-0.04/blib/lib/DateTime/Calendar/Hebrew.pm line 222. Use of uninitialized value in numeric ne (!=) at /scratch/DateTime-Cal +endar-Heb\ rew-0.04/blib/lib/DateTime/Calendar/Hebrew.pm line 222. ok t/set..............ok t/strftime.........ok t/sunset...........Can't locate object method "is_floating" via packag +e "floati\ ng" (perhaps you forgot to load "floating"?) at /usr/lib/perl5/vendor_ +perl/5.8.\ 8/i386-linux-thread-multi/DateTime.pm line 512. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay t/today............ok t/utc_rd_values....ok Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/clone.t 255 65280 1 2 200.00% 1 t/from_object.t 255 65280 1 2 200.00% 1 t/sunset.t 255 65280 1 2 200.00% 1 Failed 3/12 test scripts, 75.00% okay. 3/43 subtests failed, 93.02% ok +ay. make: *** [test_dynamic] Error 255

Replies are listed 'Best First'.
Re: Can't locate object method "is_floating" via package "floating"
by ikegami (Pope) on Oct 22, 2009 at 07:35 UTC

    It's a bug in DateTime::Calendar::Hebrew. It's time_zone method is supposed to return a DateTime::TimeZone object, but it returns the string 'floating'.

    Fix to DateTime-Calendar-Hebrew-0.04/Hebrew.pm:

    -sub time_zone { 'floating' } +use DateTime::TimeZone::Floating qw( ); +sub time_zone { DateTime::TimeZone::Floating->new() }
      Thanks - that fixes the problem. Now what can/should be done to get the module fixed in CPAN?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://802664]
Approved by moritz
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2020-10-28 00:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (259 votes). Check out past polls.

    Notices?