nipype
nipype copied to clipboard
ModuleNotFoundError: No module named 'nipype.workflows.misc'
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
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
ImportError: cannot import name 'misc' from 'nipype.workflows' (/home/roya/.local/lib/python3.8/site-packages/nipype/workflows/init.py)
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