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
AttributeError: 'DiGraph' object has no attribute 'delete_nodes_from'
Log in to post a comment.