Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 614594

Summary: dev-python/networkx-1.10-r1[doc] fail with NameError: global name 'dot_parser' is not defined
Product: Gentoo Linux Reporter: Alessandro Barbieri <lssndrbarbieri>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED OBSOLETE    
Severity: normal CC: deference
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alessandro Barbieri 2017-04-04 03:47:10 UTC
I have:

[I] media-gfx/pydot
     Available versions:  1.0.28-r2 {PYTHON_TARGETS="python2_7"}
     Installed versions:  1.0.28-r2(03:32:21 30/03/2017)(PYTHON_TARGETS="python2_7")
     Homepage:            https://pypi.python.org/pypi/pydot
     Description:         Python interface to Graphviz's Dot language


[I] dev-python/pygraphviz
     Available versions:  1.2 1.3.1 {examples test PYTHON_TARGETS="python2_7 python3_4 python3_5"}
     Installed versions:  1.3.1(14:28:25 01/04/2017)(examples -test PYTHON_TARGETS="python2_7 python3_4 -python3_5")
     Homepage:            http://pygraphviz.github.io/
     Description:         Python wrapper for the Graphviz Agraph data structure


[I] media-gfx/graphviz
     Available versions:  2.38.0-r1^t {X +cairo devil doc examples gdk-pixbuf gtk gts guile java lasi nls pdf perl postscript python qt4 ruby static-libs svg tcl ELIBC="FreeBSD" PYTHON_TARGETS="python2_7"}
     Installed versions:  2.38.0-r1^t(07:30:15 26/03/2017)(X cairo doc examples guile java nls pdf perl postscript python ruby svg tcl -devil -gdk-pixbuf -gtk -gts -lasi -qt4 -static-libs ELIBC="-FreeBSD" PYTHON_TARGETS="python2_7")
     Homepage:            http://www.graphviz.org/
     Description:         Open Source Graph Visualization Software


 * python2_7: running distutils-r1_run_phase python_compile_all
make -j5 -l5 -C doc html
make: Entering directory '/var/tmp/portage/dev-python/networkx-1.10-r1/work/networkx-1.10/doc'
mkdir -p build
python make_gallery.py
/usr/lib64/python2.7/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
atlas.py Traceback (most recent call last):
  File "make_gallery.py", line 62, in <module>
    execfile(example)
  File "atlas.py", line 73, in <module>
    pos=nx.graphviz_layout(G,prog="neato")
  File "/var/tmp/portage/dev-python/networkx-1.10-r1/work/networkx-1.10-python2_7/lib/networkx/drawing/nx_pydot.py", line 257, in graphviz_layout
    return pydot_layout(G=G,prog=prog,root=root,**kwds)
  File "/var/tmp/portage/dev-python/networkx-1.10-r1/work/networkx-1.10-python2_7/lib/networkx/drawing/nx_pydot.py", line 288, in pydot_layout
    Q=pydot.graph_from_dot_data(D)
  File "/usr/lib64/python2.7/site-packages/pydot.py", line 220, in graph_from_dot_data
    return dot_parser.parse_dot_data(data)
NameError: global name 'dot_parser' is not defined
make: *** [Makefile:38: build/generate-stamp] Error 1
make: Leaving directory '/var/tmp/portage/dev-python/networkx-1.10-r1/work/networkx-1.10/doc'
 * ERROR: dev-python/networkx-1.10-r1::gentoo failed (compile phase):
 *   emake failed
Comment 1 deference 2017-07-21 00:51:43 UTC
I'm also experiencing this.
If you need any additional info just yell.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-03-28 09:23:25 UTC
Old version removed.  Please reopen if you can still reproduce.
Comment 3 Alessandro Barbieri 2020-03-28 15:38:40 UTC
latest networkx doesn't have USE="doc"