Not an ARRAY reference at ...Heap/Elem.pm line 31

D

donuvitanoga

Hi,

when i try to install the Graph CPAN module, I get failures in a lot
of its tests.
All failure are in the Heap module, file elem.pm line 31..

any ideas ?

thanks...

Here is the install log:
CPAN.pm: Going to build J/JH/JHI/Graph-0.81.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Graph
cp lib/Graph/Directed.pm blib/lib/Graph/Directed.pm
cp lib/Graph/UnionFind.pm blib/lib/Graph/UnionFind.pm
cp lib/Graph/Undirected.pm blib/lib/Graph/Undirected.pm
cp lib/Graph/AdjacencyMap/Vertex.pm blib/lib/Graph/AdjacencyMap/
Vertex.pm
cp lib/Graph/AdjacencyMap/Light.pm blib/lib/Graph/AdjacencyMap/
Light.pm
cp lib/Graph/Matrix.pm blib/lib/Graph/Matrix.pm
cp lib/Graph/Attribute.pm blib/lib/Graph/Attribute.pm
cp lib/Graph/AdjacencyMatrix.pm blib/lib/Graph/AdjacencyMatrix.pm
cp lib/Graph/SPTHeapElem.pm blib/lib/Graph/SPTHeapElem.pm
cp lib/Graph/AdjacencyMap.pm blib/lib/Graph/AdjacencyMap.pm
cp lib/Graph.pm blib/lib/Graph.pm
cp lib/Graph/MSTHeapElem.pm blib/lib/Graph/MSTHeapElem.pm
cp lib/Graph/AdjacencyMap/Heavy.pm blib/lib/Graph/AdjacencyMap/
Heavy.pm
cp lib/Graph/TransitiveClosure/Matrix.pm blib/lib/Graph/
TransitiveClosure/Matrix
..pm
cp lib/Graph/TransitiveClosure.pm blib/lib/Graph/TransitiveClosure.pm
cp lib/Graph/Traversal/BFS.pm blib/lib/Graph/Traversal/BFS.pm
cp lib/Graph/Traversal/DFS.pm blib/lib/Graph/Traversal/DFS.pm
cp lib/Graph/Traversal.pm blib/lib/Graph/Traversal.pm
cp lib/Graph/BitMatrix.pm blib/lib/Graph/BitMatrix.pm
cp lib/Graph.pod blib/lib/Graph.pod
Manifying blib/man3/Graph::UnionFind.3pm
Manifying blib/man3/Graph::Directed.3pm
Manifying blib/man3/Graph::AdjacencyMap::Vertex.3pm
Manifying blib/man3/Graph::Undirected.3pm
Manifying blib/man3/Graph::TransitiveClosure::Matrix.3pm
Manifying blib/man3/Graph::TransitiveClosure.3pm
Manifying blib/man3/Graph::Traversal::BFS.3pm
Manifying blib/man3/Graph::Matrix.3pm
Manifying blib/man3/Graph::Traversal::DFS.3pm
Manifying blib/man3/Graph::Traversal.3pm
Manifying blib/man3/Graph::AdjacencyMatrix.3pm
Manifying blib/man3/Graph::BitMatrix.3pm
Manifying blib/man3/Graph::AdjacencyMap.3pm
Manifying blib/man3/Graph.3pm
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/00_use.......................ok
t/01_isa.......................ok
t/02_trap......................ok
t/03_derived...................ok
t/04_dgraph....................ok
t/05_ugraph....................ok
t/06_new.......................ok
t/07_gen.......................ok
t/08_stringify.................ok
t/09_eq........................ok
t/10_has_vertices..............ok
t/11_vertices..................ok
t/12_has_vertex................ok
t/13_add_vertex................ok
t/14_delete_vertex.............ok
t/15_has_edges.................ok
t/16_edges.....................ok
t/17_has_edge..................ok
t/18_add_edge..................ok
t/19_delete_edge...............ok
t/20_countvertexed.............ok
t/21_multivertexed.............ok
t/22_refvertexed...............ok
t/23_hypervertexed.............ok
t/24_mixvertexed...............ok
t/25_countedged................ok
t/26_multiedged................ok
t/27_omnidirected..............ok
t/28_hyperedged................ok
t/29_uniqedged.................ok
t/30_mixedged..................ok
t/31_hypervertex...............ok
t/32_hypervertex_edges.........ok
t/33_hyperedge.................ok
t/34_omnivertexed..............ok
t/35_uniqvertexed..............ok
t/36_omniuniqvertexed..........ok
t/37_hypervertex_implicit......ok
t/38_vertices_at...............ok
t/39_edges_at..................ok
t/40_edges_from................ok
t/41_edges_to..................ok
t/42_add_path..................ok
t/43_has_path..................ok
t/44_delete_path...............ok
t/45_add_cycle.................ok
t/46_has_cycle.................ok
t/47_delete_cycle..............ok
t/48_get_vertex_count..........ok
t/49_get_edge_count............ok
t/50_vertex_attributes.........ok
t/51_multivertex_attributes....ok
t/52_edge_attributes...........ok
t/53_multiedge_attributes......ok
t/54_graph_attributes..........ok
t/55_attributes................ok
t/56_neighbourhood.............ok
t/57_degree....................ok
t/58_connections...............ok
t/59_dfs.......................ok
t/60_bfs.......................ok
t/61_connected.................ok
t/62_bcc.......................ok
t/63_scc.......................ok
t/64_mst.......................ok 1/22Not an ARRAY reference at /usr/
local/share
/perl/5.8.8/Heap/Elem.pm line 31.
# Looks like you planned 22 tests but only ran 8.
# Looks like your test died just after 8.
t/64_mst.......................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 9-22
Failed 14/22 tests, 36.36% okay
t/65_ref.......................ok
t/66_simple....................ok
t/67_copy......................ok
t/68_transpose.................ok
t/69_complete..................ok
t/70_complement................ok
t/71_spt.......................Not an ARRAY reference at /usr/local/
share/perl/5
..8.8/Heap/Elem.pm line 31.
# Looks like your test died before it could output anything.
t/71_spt.......................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-124
Failed 124/124 tests, 0.00% okay
t/72_transitive................ok
t/73_diameter..................ok
t/74_random....................ok
t/75_attribute_array...........ok
t/76_attribute_hash............ok
t/77_adjacency.................ok
t/78_expect....................ok
t/79_unionfind.................ok
t/80_isomorphic................ok
t/81_dump......................ok
t/82_cycle.....................ok
1/1 skipped: no Devel::Cycle
t/83_bitmatrix.................ok
t/g02_00directed...............ok
t/g02_01undirected.............ok
t/g02_02multiple...............ok
t/g02_03degree.................ok
t/g02_04attribute..............ok
t/g02_05copy...................ok
t/g02_06transpose..............ok
t/g02_07complete...............ok
t/g02_08complement.............ok
t/g02_09scc....................ok
t/pod-coverage.................skipped
all skipped: Test::pod::Coverage 1.00 required for testing POD
coverage
t/pod..........................skipped
all skipped: Test::pod 1.00 required for testing POD
t/u_at1........................Not an ARRAY reference at /usr/local/
share/perl/5
..8.8/Heap/Elem.pm line 31, <DATA> line 5078.
# Looks like your test died before it could output anything.
t/u_at1........................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
t/u_at2........................Not an ARRAY reference at /usr/local/
share/perl/5
..8.8/Heap/Elem.pm line 31, <DATA> line 24.
# Looks like your test died before it could output anything.
t/u_at2........................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-4
Failed 4/4 tests, 0.00% okay
t/u_at3........................Not an ARRAY reference at /usr/local/
share/perl/5
..8.8/Heap/Elem.pm line 31.
# Looks like your test died before it could output anything.
t/u_at3........................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-44
Failed 44/44 tests, 0.00% okay
t/u_bb_rv......................ok
t/u_bf.........................ok
t/u_bill.......................ok
t/u_bo.........................ok 1/95Not an ARRAY reference at /usr/
local/share
/perl/5.8.8/Heap/Elem.pm line 31.
# Looks like you planned 95 tests but only ran 79.
# Looks like your test died just after 79.
t/u_bo.........................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 80-95
Failed 16/95 tests, 83.16% okay
t/u_bo1........................ok 1/20Not an ARRAY reference at /usr/
local/share
/perl/5.8.8/Heap/Elem.pm line 31.
# Looks like your test died just after 20.
t/u_bo1........................dubious
Test returned status 255 (wstat 65280, 0xff00)
after all the subtests completed successfully
t/u_bo_ap1.....................ok
t/u_bo_ap2.....................ok
t/u_bo_apx.....................ok
t/u_jh_va......................ok
t/u_mn_va......................ok
t/u_ng_mst.....................ok 1/0Not an ARRAY reference at /usr/
local/share/
perl/5.8.8/Heap/Elem.pm line 31.
# Looks like your test died just after 1.
t/u_ng_mst.....................dubious
Test returned status 255 (wstat 65280, 0xff00)
after all the subtests completed successfully
t/u_ng_path....................ok
t/u_ng_scc.....................ok
t/u_rb_cc......................ok
t/u_re_sd......................Not an ARRAY reference at /usr/local/
share/perl/5
..8.8/Heap/Elem.pm line 31.
# Looks like your test died before it could output anything.
t/u_re_sd......................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-2
Failed 2/2 tests, 0.00% okay
t/u_sn_sva.....................ok
t/u_te_ae......................ok
t/u_te_me......................ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/64_mst.t 255 65280 22 28 127.27% 9-22
t/71_spt.t 255 65280 124 248 200.00% 1-124
t/u_at1.t 255 65280 2 4 200.00% 1-2
t/u_at2.t 255 65280 4 8 200.00% 1-4
t/u_at3.t 255 65280 44 88 200.00% 1-44
t/u_bo.t 255 65280 95 32 33.68% 80-95
t/u_bo1.t 255 65280 20 0 0.00% ??
t/u_ng_mst.t 255 65280 1 0 0.00% ??
t/u_re_sd.t 255 65280 2 4 200.00% 1-2
2 tests and 1 subtest skipped.
Failed 9/117 test scripts, 92.31% okay. 206/8345 subtests failed,
97.53% okay.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
 
S

Sisyphus

Hi,

when i try to install the Graph CPAN module, I get failures in a lot
of its tests.
All failure are in the Heap module, file elem.pm line 31..

any ideas ?

I noticed at http://search.cpan.org/~jhi/Graph-0.81/ that 6 cpan testers
report failures. I tried to get to
http://cpantesters.perl.org/show/Graph.html#Graph-0.81 to see if any of them
had experienced the same problem as you - but cpantesters.perl.org seems to
be down.

Which version of Heap are you running (and what does line 31 contain) ? If
it's not the latest (version 0.80), maybe you should update Heap and see if
that fixes the problem.

If that does fix the problem, then you should file a bug report (at
http://rt.cpan.org/Public/Dist/Display.html?Name=Graph ) for the Graph
module, as the Graph module's Makefile.PL specifies that *any* version of
Heap will suffice.

Hmmm ... on second thoughts (since Heap-0.80 is more recent than Graph-0.81)
it may be that you need to *downgrade* Heap to an earlier version (if you're
already running Heap-0.80).

Cheers,
Rob
 
D

donuvitanoga

Which version of Heap are you running
I am running the latest, version 0.80

this is line 31 of Elem.pm:

L30: sub heap {
L31: @_ > 1 ? ($_[0][1] = $_[1]) : $_[0][1];
L32: }
Hmmm ... on second thoughts (since Heap-0.80 is more recent than Graph-0.81)
it may be that you need to *downgrade* Heap to an earlier version (if you're
already running Heap-0.80).

Is there a way to do it from the "perl -MCPAN -e shell" command line ?

(I am using cpan shell v1.9102)

Thanks,
donuvi
 
S

Sisyphus

..
..
Is there a way to do it from the "perl -MCPAN -e shell" command line ?

I would think there is, but as I don't use that method, I don't know :)

(If necessary you could install the module manually - ie by downloading the
source, extracting it to some location, cd'ing to that location and running
'perl Makefile.PL', 'make test', and 'make install').

There's already a bug report about this at
http://rt.cpan.org/Public/Dist/Display.html?Name=Graph - so I'm fairly
confident that installing an earlier version of Heap will fix your problem.

Cheers,
Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top