Skip to content

AttributeError: 'module' object has no attribute 'write_dot' #1350

Closed
@TheChymera

Description

@TheChymera

I am trying to run this pipeline and I am getting this error message:

/usr/lib64/python2.7/site-packages/nipy/labs/glm/glm.py:9: FutureWarning: Module nipy.labs.utils.routines deprecated, will be removed
  from ..utils import mahalanobis
/usr/lib64/python2.7/site-packages/nipype/interfaces/nipy/model.py:18: FutureWarning: Module nipy.labs.glm deprecated, will be removed. Please use nipy.modalities.fmri.glm instead.
  import nipy.labs.glm.glm as GLM
/usr/lib64/python2.7/site-packages/nipype/interfaces/base.py:419: UserWarning: Input tr requires inputs: slice_times
  warn(msg)
/usr/lib64/python2.7/site-packages/nipype/interfaces/base.py:419: UserWarning: Input slice_info requires inputs: slice_times
  warn(msg)
160205-22:03:39,570 workflow INFO:
         Creating detailed dot file: /home/chymera/NIdata/ofM.dr/FSL_GLM_work/graph_detailed.dot
Traceback (most recent call last):
  File "glm.py", line 166, in <module>
    fsl_glm(workflow_base="~/NIdata/ofM.dr/", functional_scan_type="7_EPI_CBV", structural_scan_type="T2_TurboRARE>", experiment_type="<ofM>", omit_ID=["20151027_121613_4013_1_1"])
  File "glm.py", line 162, in fsl_glm
    pipeline.write_graph(graph2use="flat")
  File "/usr/lib64/python2.7/site-packages/nipype/pipeline/engine.py", line 558, in write_graph
    format=format, simple_form=simple_form)
  File "/usr/lib64/python2.7/site-packages/nipype/pipeline/utils.py", line 905, in export_graph
    nx.write_dot(pklgraph, outfname)
AttributeError: 'module' object has no attribute 'write_dot'

It seems to be due to this line. And if I cmment it, the pipeline works. This happens both with release 0.11.0 and with the live nipype version from github. I have matplotlib. Any ideas what might be the problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions