Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Spreadsheet-ParseExcel CPAN distribution.

Maintainer(s)' notes

If you are reporting a bug in Spreadsheet::ParseExcel here are some pointers

1) State the issues as clearly and as concisely as possible. A simple program or Excel test file (see below) will often explain the issue better than a lot of text.

2) Provide information on your system, version of perl and module versions. The following program will generate everything that is required. Put this information in your bug report.

    #!/usr/bin/perl -w

    print "\n    Perl version   : $]";
    print "\n    OS name        : $^O";
    print "\n    Module versions: (not all are required)\n";

    my @modules = qw(
                      Spreadsheet::ParseExcel
                      Scalar::Util
                      Unicode::Map
                      Spreadsheet::WriteExcel
                      Parse::RecDescent
                      File::Temp
                      OLE::Storage_Lite
                      IO::Stringy
                    );

    for my $module (@modules) {
        my $version;
        eval "require $module";

        if (not $@) {
            $version = $module->VERSION;
            $version = '(unknown)' if not defined $version;
        }
        else {
            $version = '(not installed)';
        }

        printf "%21s%-24s\t%s\n", "", $module, $version;
    }

    __END__

3) Upgrade to the latest version of Spreadsheet::ParseExcel (or at least test on a system with an upgraded version). The issue you are reporting may already have been fixed.

4) Create a small example program that demonstrates your problem. The program should be as small as possible. A few lines of codes are worth tens of lines of text when trying to describe a bug.

5) Supply an Excel file that demonstrates the problem. This is very important. If the file is big, or contains confidential information, try to reduce it down to the smallest Excel file that represents the issue. If you don't wish to post a file here then send it to me directly: jmcnamara@cpan.org

6) Say if the test file was created by Excel, OpenOffice, Gnumeric or something else. Say which version of that application you used.

7) If you are submitting a patch you should check with the maintainer whether the issue has already been patched or if a fix is in the works. Patches should be accompanied by test cases.

Asking a question

If you would like to ask a more general question there is the Spreadsheet::ParseExcel Google Group.

Report information
The Basics
Id: 26078
Status: resolved
Priority: 0/
Queue: Spreadsheet-ParseExcel

People
Owner: Nobody in particular
Requestors: MTHURN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.30
Fixed in: (no value)



Subject: test failures under ActivePerl build 820, Win XP
C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\li b', 'blib\arch')" t/*.t t/examples/*t t/basic................. # Failed test 'use Spreadsheet::ParseExcel;' # in t/basic.t at line 8. # Tried to use 'Spreadsheet::ParseExcel'. # Error: Weak references are not implemented in the version of perl at C:\source \perl\.cpanplus\5.8.8\build\Spreadsheet-ParseExcel-0.30\blib\lib/Spreadsheet/ParseExc el.pm line 67 # BEGIN failed--compilation aborted at t/basic.t line 8. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at (eval 3) line 2. dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 1 Failed 1/8 tests, 87.50% okay (less 3 skipped tests: 4 okay, 50.00%) t/examples/chkFmt.......# Looks like you failed 1 test of 8. ok t/examples/chkInfo......# sample/Excel/FmtTest.xls # Could not run example: Bad file descriptor # Failed test in t/lib/Test/Example.pm at line 49. # Lists are not the same length. Expected is 7485 long, while received is 0 long # Looks like you failed 1 test of 2. dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 2 Failed 1/2 tests, 50.00% okay t/examples/dmpExR.......# sample/Excel/Rich.xls # Could not run example: Bad file descriptor # Failed test in t/lib/Test/Example.pm at line 49. # Lists are not the same length. Expected is 68 long, while received is 0 long # Looks like you failed 1 test of 2. dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 2 Failed 1/2 tests, 50.00% okay t/examples/iftest.......# sample/Excel/Test97.xls # Could not run example: Bad file descriptor # Failed test in t/lib/Test/Example.pm at line 49. # Lists are not the same length. Expected is 22 long, while received is 0 long # Looks like you failed 1 test of 2. dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 2 Failed 1/2 tests, 50.00% okay t/examples/sample.......# Could not run example: Bad file descriptor # Failed test in t/lib/Test/Example.pm at line 49. # Lists are not the same length. Expected is 91 long, while received is 0 long # Looks like you failed 1 test of 2. dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 2 Failed 1/2 tests, 50.00% okay t/examples/sample_j.....skipped all skipped: Jcode needed for this test t/examples/sampleOEM....skipped all skipped: We need Unicode::Map and CP932Excel.map has to be installed some how... This test is not in use currently t/examples/warning......# Could not run example: Bad file descriptor # Failed test in t/lib/Test/Example.pm at line 49. # Lists are not the same length. Expected is 2 long, while received is 0 long # Looks like you failed 1 test of 2. dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 2 Failed 1/2 tests, 50.00% okay t/memory_leak...........skipped all skipped: Proc::ProcessTable is needed for this test t/parse................. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-37 Failed 37/37 tests, 0.00% okay t/pod...................# Failed test 'use Spreadsheet::ParseExcel;' # in t/parse.t at line 10. # Tried to use 'Spreadsheet::ParseExcel'. # Error: Weak references are not implemented in the version of perl at C:\source \perl\.cpanplus\5.8.8\build\Spreadsheet-ParseExcel-0.30\blib\lib/Spreadsheet/ParseExc el.pm line 67 # BEGIN failed--compilation aborted at t/parse.t line 10. # Compilation failed in require at (eval 3) line 2. # BEGIN failed--compilation aborted at (eval 3) line 2. Can't locate object method "new" via package "Spreadsheet::ParseExcel" at C:\source\p erl\.cpanplus\5.8.8\build\Spreadsheet-ParseExcel-0.30\blib\lib/Spreadsheet/ParseExcel .pm line 33. # Looks like you planned 37 tests but only ran 1. # Looks like you failed 1 test of 1 run. # Looks like your test died just after 1. ok t/sample................# Skipping 0 test as they need Jcode to be installed skipped all skipped: Tests moved to individual files in t/examples/ Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/basic.t 1 256 8 1 1 t/examples/chkInfo.t 1 256 2 1 2 t/examples/dmpExR.t 1 256 2 1 2 t/examples/iftest.t 1 256 2 1 2 t/examples/sample.t 1 256 2 1 2 t/examples/warning.t 1 256 2 1 2 t/parse.t 255 65280 37 73 1-37 4 tests and 3 subtests skipped. Failed 7/13 test scripts. 43/108 subtests failed. Files=13, Tests=108, 5 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU) Failed 7/13 test programs. 43/108 subtests failed. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0xff' Stop. [ERROR] Unable to create a new distribution object for 'Spreadsheet::ParseExcel' -- c annot continue *** Install log written to: C:\source\perl\.cpanplus\install-logs\Spreadsheet-ParseExcel-1175635550.log Error installing 'Spreadsheet::ParseExcel' Problem installing one or more modules -- - - Martin 'Kingpin' Thurn
On Tue Apr 03 17:30:44 2007, MTHURN wrote: Show quoted text
> C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib\li > b', 'blib\arch')" t/*.t t/examples/*t > t/basic................. > # Failed test 'use Spreadsheet::ParseExcel;' > # in t/basic.t at line 8. > # Tried to use 'Spreadsheet::ParseExcel'. > # Error: Weak references are not implemented in the version of > perl
Hi, I think that this problem may have been particular to ActivePerl build 820 which didn't implement Scalar::Util::weaken correctly. I don't see the same problem in build 822. John. --
Subject: RE: [rt.cpan.org #26078] test failures under ActivePerl build 820, Win XP
Date: Sat, 10 Jan 2009 09:19:04 -0500
To: <bug-Spreadsheet-ParseExcel [...] rt.cpan.org>
From: "Martin Thurn" <mthurn [...] verizon.net>
You're probably right. And I've since upgraded to build 1002, so I have no way to go back and retest. - - Martin
On Sat Jan 10 09:19:23 2009, mthurn@verizon.net wrote: Show quoted text
> You're probably right. And I've since upgraded to build 1002, so I > have no way to go back and retest.
Hi, In that case I'll close this issue. If it occurs again you can reopen the tracker. Thanks, John. --