#5 ffnet not working with networkx1.0rc1 ?

closed
nobody
None
5
2009-09-14
2009-09-08
T M
No

On a separate machine (running Leopard 10.5.8), I have gotten python 2.6 and associated python packages working with the svn copy of ffnet and networkx-0.99 and everything is fine.

On my own machine however (also Leopard 10.5.8 using python 2.6), installed both networkx-0.99 (from macports) AND networkx-1.0rc1 (from easy_install - the latest release). Unfortunately, the svn copy of ffnet doesn't seem to be getting along with networkx-1.0rc1 ( I think this is the problem, anyway..)

I suspect that if I could get python2.6 to default to using networkx-0.99, then the svn ffnet would work, but unfortunately I have not found an effective way of uninstalling or removing networkx-1.0rc1. When I use python2.6 >>>import networkx >>> help(networkx) , the version info lists networkx-1.0rc1

the following error is what I get when I try testing the ffnet install:

>>> import ffnet
>>> from ffnet import ffnet, mlgraph, savenet, loadnet, exportnet
>>> conec = mlgraph((2,2,1))
>>> net = ffnet(conec)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ffnet/ffnet.py", line 334, in __init__
bgraph, bconecno = _bconec(conec, inno)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ffnet/ffnet.py", line 209, in _bconec
bgraph.delete_nodes_from(inno)
AttributeError: 'DiGraph' object has no attribute 'delete_nodes_from'
>>>

Discussion

  • Marek

    Marek - 2009-09-14

    Trunk now works with networkx-1.0rc1.

    Thanks for bug report!

     
  • Marek

    Marek - 2009-09-14
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks