JoinNode fails with AttributeError: 'module' object has no attribute 'has_path'

49 views
Skip to first unread message

thomas.nickson

unread,
May 23, 2014, 7:11:12 AM5/23/14
to nipy...@googlegroups.com
Hey All,

I'm trying to move from iterating over subjects with preproc and registration to putting the subjects back in to groups 'down stream' with a joinnode but I get the following error:

Traceback (most recent call last):
  File "fslWyethICA.py", line 352, in <module>
    connections.write_graph(graph2use='exec')
  File "/usr/lib/python2.6/site-packages/nipype/pipeline/engine.py", line 542, in write_graph
    graph = generate_expanded_graph(deepcopy(graph))
  File "/usr/lib/python2.6/site-packages/nipype/pipeline/utils.py", line 592, in generate_expanded_graph
    and nx.has_path(graph_in, inode, node)]
AttributeError: 'module' object has no attribute 'has_path'

My code is the following:

https://gist.github.com/thelxinoe/4df88d01a60967a7e331

Is there anyway to get more information on what the problem is. I can't even generate a graph so it's hard to work out why it might be failing.

Thanks!

Satrajit Ghosh

unread,
May 23, 2014, 7:14:13 AM5/23/14
to nipy-user
hi tom,

what version of networkx do you have. this looks like a change in the api for nx.

cheers,

satra

--

---
You received this message because you are subscribed to the Google Groups "NiPy Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nipy-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

thomas.nickson

unread,
May 23, 2014, 7:17:00 AM5/23/14
to nipy...@googlegroups.com
Networkx is version 1.5

Thanks,

Tom

Satrajit Ghosh

unread,
May 23, 2014, 8:00:01 AM5/23/14
to nipy-user
hi tom,

looks like we may have used an api call that was introduced in networkx 1.6. any chance you can use a more recent version? i won't have the time to replace that call till sometime next week.

could you please open an issue as well? we will have to either replace that call or change the minimum requirements for networkx.

cheers,

satra

Thomas Nickson

unread,
May 23, 2014, 8:15:48 AM5/23/14
to nipy...@googlegroups.com
Excellent, I upgraded to 1.6 and it works!

I'll open an issue.

Thanks,

Tom
Reply all
Reply to author
Forward
0 new messages