nipype
nipype copied to clipboard
ModuleNotFoundError: No module named 'nipype.workflows.fmri' & 5 failed tests
Hello Nipype community,
MacOS - 10.14.6 - Mojave
nipype version 1.5.0-rc1 (latest: 1.4.2)
Anaconda - Spyder
Python 3.7.6
(my previous installation with Jupyterlab worked without the following error)
I am getting two errors, I don't believe they might be connected(?)
- When I import, I get from nipype.workflows.fmri.spm import create_spm_preproc ModuleNotFoundError: No module named 'nipype.workflows.fmri'
import os import json import matplotlib.pyplot as plt import nibabel as nb import numpy as np import popeye import dicom2nifti import nipype import nipype.interfaces.fsl as fsl import nipype.interfaces.matlab as Matlab import nipype.interfaces.spm as spm from nipype.interfaces.matlab import MatlabCommand MatlabCommand.set_default_paths('/Users/dvartak/Documents/MATLAB TOOLBOX/spm12')
from nipype.interfaces.fsl import (BET, ExtractROI, FAST, FLIRT, ImageMaths, MCFLIRT, SliceTimer, Threshold) from os.path import join as opj
from nipype.pipeline.engine import Workflow, Node from nipype import SelectFiles
from nipype.interfaces.freesurfer import ReconAll, MRIConvert from nipype.interfaces.spm import Smooth from nipype.interfaces.utility import IdentityInterface from nipype.interfaces.io import SelectFiles, DataSink from nipype.algorithms.rapidart import ArtifactDetect from nipype import Workflow, Node, MapNode from nipype.algorithms.misc import Gunzip from nipype.interfaces.fsl import ExtractROI from nipype.interfaces.fsl import MCFLIRT from nipype.interfaces.fsl import FAST from nipype.workflows.fmri.spm import create_spm_preproc from nipype.interfaces.spm import SliceTiming from nipype.interfaces.fsl import FLIRT from nipype.interfaces.spm import NewSegment from nipype.interfaces.spm import Coregister from nipype.interfaces.fsl import ConvertXFM from nipype.interfaces.fsl import BinaryMaths from nipype.interfaces.base import CommandLine
print(nipype.version) print(nipype.interfaces.fsl.Info.version()) print(popeye.version)
- When I run nipype.test(), I get these =========================== short test summary info ============================ FAILED ../../opt/anaconda3/envs/nipype/lib/python3.7/site-packages/nipype/interfaces/freesurfer/tests/test_FSSurfaceCommand.py::test_associated_file FAILED ../../opt/anaconda3/envs/nipype/lib/python3.7/site-packages/nipype/interfaces/freesurfer/tests/test_utils.py::test_mrisexpand FAILED ../../opt/anaconda3/envs/nipype/lib/python3.7/site-packages/nipype/interfaces/freesurfer/tests/test_utils.py::test_eulernumber FAILED ../../opt/anaconda3/envs/nipype/lib/python3.7/site-packages/nipype/interfaces/fsl/tests/test_base.py::test_fslversion FAILED ../../opt/anaconda3/envs/nipype/lib/python3.7/site-packages/nipype/interfaces/tests/test_matlab.py::test_run_interface = 5 failed, 2803 passed, 54 skipped, 8 xfailed, 347 warnings in 223.34s (0:03:43)
My actual program seems to run fine (barring error 1)
Any ideas as to why I get Error 1 and the failed tests at 2?
Thank you.
Cheers, Dev
I get the same issue, do you find the solution?
pip install niflow-nipype1-workflows
.
There should be warnings like Nipype 1 workflows have been moved to the niflow-nipype1-workflows package. pip install niflow-nipype1-workflows to continue using them.