Package: networkx
Version: 2.4-3
Severity: normal
Dear Maintainer,
I tried building networkx 2.4-3 and it fails with the following. I noticed
there are a number of py3 related
patches upstream since the 2.4 release. Perhaps some changes could be picked.
Seems perhaps we're running
some examples with py2 and that's why they're unable to import graphviz.
The HTML pages are in build/html.
Examples failing as expected:
/build/networkx-2.4/examples/advanced/plot_parallel_betweenness.py failed
leaving traceback:
Traceback (most recent call last):
File "/build/networkx-2.4/examples/advanced/plot_parallel_betweenness.py",
line 77, in <module>
bt = betweenness_centrality_parallel(G)
File "/build/networkx-2.4/examples/advanced/plot_parallel_betweenness.py",
line 57, in betweenness_centrality_parallel
node_chunks))
File "/usr/lib/python3.7/multiprocessing/pool.py", line 268, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/usr/lib/python3.7/multiprocessing/pool.py", line 657, in get
raise self._value
File "/usr/lib/python3.7/multiprocessing/pool.py", line 431, in _handle_tasks
put(task)
File "/usr/lib/python3.7/multiprocessing/connection.py", line 206, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/usr/lib/python3.7/multiprocessing/reduction.py", line 51, in dumps
cls(buf, protocol).dump(obj)
_pickle.PicklingError: Can't pickle <function _betmap at 0x7f297e3f2440>:
attribute lookup _betmap on __main__ failed
Exception occurred:
File "/usr/lib/python3/dist-packages/sphinx_gallery/gen_gallery.py", line
313, in sumarize_failing_examples
"\n" + "-" * 79)
ValueError: Here is a summary of the problems encountered when running the
examples
Unexpected failing examples:
/build/networkx-2.4/examples/drawing/plot_circular_tree.py failed leaving
traceback:
Traceback (most recent call last):
File "/build/networkx-2.4/examples/drawing/plot_circular_tree.py", line 23,
in <module>
pos = graphviz_layout(G, prog='twopi', args='')
TypeError: graphviz_layout() got an unexpected keyword argument 'args'
/build/networkx-2.4/examples/pygraphviz/plot_pygraphviz_attributes.py failed
leaving traceback:
Traceback (most recent call last):
File "/build/networkx-2.4/examples/pygraphviz/plot_pygraphviz_attributes.py",
line 34, in <module>
A = nx.nx_agraph.to_agraph(G)
File "/build/networkx-2.4/build/lib/networkx/drawing/nx_agraph.py", line 136,
in to_agraph
'http://pygraphviz.github.io/')
ImportError: ('requires pygraphviz ', 'http://pygraphviz.github.io/')
/build/networkx-2.4/examples/pygraphviz/plot_pygraphviz_simple.py failed
leaving traceback:
Traceback (most recent call last):
File "/build/networkx-2.4/examples/pygraphviz/plot_pygraphviz_simple.py",
line 27, in <module>
A = nx.nx_agraph.to_agraph(G) # convert to a graphviz graph
File "/build/networkx-2.4/build/lib/networkx/drawing/nx_agraph.py", line 136,
in to_agraph
'http://pygraphviz.github.io/')
ImportError: ('requires pygraphviz ', 'http://pygraphviz.github.io/')
/build/networkx-2.4/examples/pygraphviz/plot_pygraphviz_draw.py failed leaving
traceback:
Traceback (most recent call last):
File "/build/networkx-2.4/examples/pygraphviz/plot_pygraphviz_draw.py", line
27, in <module>
A = nx.nx_agraph.to_agraph(G) # convert to a graphviz graph
File "/build/networkx-2.4/build/lib/networkx/drawing/nx_agraph.py", line 136,
in to_agraph
'http://pygraphviz.github.io/')
ImportError: ('requires pygraphviz ', 'http://pygraphviz.github.io/')
-------------------------------------------------------------------------------
The full traceback has been saved in /tmp/sphinx-err-cnbjaocp.log, if you want
to report the issue to the developers.
Please also report this if it was a user error, so that a better error message
can be provided next time.
A bug report can be filed in the tracker at
<https://github.com/sphinx-doc/sphinx/issues>. Thanks!
make[2]: *** [Makefile:46: html] Error 2
make[2]: Leaving directory '/build/networkx-2.4/doc'
make[1]: *** [debian/rules:52: override_dh_sphinxdoc] Error 2
make[1]: Leaving directory '/build/networkx-2.4'
make: *** [debian/rules:7: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit
status 2
Regards,
Corey