nipype icon indicating copy to clipboard operation
nipype copied to clipboard

ModuleNotFoundError: No module named 'nipype.workflows.misc'

Open roya2022 opened this issue 3 years ago • 1 comments
trafficstars

Summary

I’m currently learning to find fmri confound through nipype

when I run this code:

from nipype.pipeline.engine import Workflow from nipype.pipeline import engine as pe from nipype.interfaces import fsl as fsl from nipype.interfaces import freesurfer as fs from nipype.interfaces import meshfix as mf from nipype.interfaces import io as nio from nipype.interfaces import utility as niu from nipype.algorithms import misc as misc from nipype.interfaces.utility import Function from nipype.workflows.misc.utils import region_list_from_volume, id_list_from_lookup_table import os

I faced this error


ModuleNotFoundError Traceback (most recent call last) /tmp/ipykernel_36058/4077897726.py in 8 from nipype.algorithms import misc as misc 9 from nipype.interfaces.utility import Function ---> 10 from nipype.workflows.misc.utils import region_list_from_volume, id_list_from_lookup_table 11 import os

ModuleNotFoundError: No module named 'nipype.workflows.misc'

and when I tried to run this one

from nipype.workflows import misc

faced this error;


ImportError Traceback (most recent call last) /tmp/ipykernel_36058/1271572871.py in ----> 1 from nipype.workflows import misc

ImportError: cannot import name 'misc' from 'nipype.workflows' (/home/roya/.local/lib/python3.8/site-packages/nipype/workflows/init.py)

roya2022 avatar Aug 02 '22 21:08 roya2022

Copying in the issue template:


Summary

Actual behavior

Expected behavior

How to replicate the behavior

Script/Workflow details

Please put URL to code or code here (if not too long).

Platform details:


Execution environment

Choose one

  • Container [Tag: ???]
  • My python environment inside container [Base Tag: ???]
  • My python environment outside container

effigies avatar Sep 21 '22 15:09 effigies