Bug 1149980 - python3-networkx packaging issue
Summary: python3-networkx packaging issue
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-networkx
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jerry James
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-07 06:05 UTC by Amit Saha
Modified: 2015-07-26 22:16 UTC (History)
2 users (show)

Fixed In Version: python-networkx-1.9.1-2.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-12 13:56:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Amit Saha 2014-10-07 06:05:30 UTC
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:

Comment 1 Jerry James 2014-10-07 19:29:19 UTC
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.

Comment 2 Fedora Update System 2014-10-07 21:51:51 UTC
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

Comment 3 Fedora Update System 2014-10-07 21:51:59 UTC
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

Comment 4 Amit Saha 2014-10-07 23:31:00 UTC
(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!

Comment 5 Fedora Update System 2014-10-08 19:09:01 UTC
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).

Comment 6 Fedora Update System 2014-10-12 13:56:41 UTC
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.

Comment 7 Fedora Update System 2014-10-17 08:41:22 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.