Description of problem: There seems to be a problem with how python3-networkx is being built. Consider the test code: import matplotlib.pyplot as plt import networkx as nx G=nx.Graph() #G.add_nodes_from([2,3]) G.add_edges_from([(1,2),(1,3),(2,3)]) print('Number of nodes: {0}'.format(G.number_of_nodes())) nx.draw(G) plt.show() $ python3 simplegraph.py Number of nodes: 3 Traceback (most recent call last): File "simplegraph.py", line 9, in <module> nx.draw(G) AttributeError: 'module' object has no attribute 'draw' With Python 2, the code runs fine. I am reporting it as a packaging issue because I can "pip3 install networkx" and the above code runs fine. I see the same issue on F20 as well. Version-Release number of selected component (if applicable): $ rpm -q python-networkx python3-networkx python-networkx-1.9.1-1.fc21.noarch python3-networkx-1.9.1-1.fc21.noarch How reproducible: Always Steps to Reproduce: 1. See above. 2. 3. Actual results: Expected results: Additional info:
It is indeed a packaging error. The files in python3-networkx-drawing are in the python2 tree, not the python3 tree. Thanks for catching this. I will fix it right away.
python-networkx-1.9.1-2.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/python-networkx-1.9.1-2.fc20
python-networkx-1.9.1-2.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/python-networkx-1.9.1-2.fc21
(In reply to Jerry James from comment #1) > It is indeed a packaging error. The files in python3-networkx-drawing are > in the python2 tree, not the python3 tree. Thanks for catching this. I > will fix it right away. Left a +1. Looks good, thanks!
Package python-networkx-1.9.1-2.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing python-networkx-1.9.1-2.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-12396/python-networkx-1.9.1-2.fc21 then log in and leave karma (feedback).
python-networkx-1.9.1-2.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
python-networkx-1.9.1-2.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.