Skip to content

[BUG]: ImportError: cannot import name 'NUMPY_MMAP' from 'nipype.utils' #172

@FL33TW00D

Description

@FL33TW00D

Hi there,
I am using QSIPrep v0.11.0 through the singularity container using the following command:

singularity run --cleanenv --bind /gpfs/home/vhe17qgu/qsiprep:/qsiprep qsiprep-0.11.0.sif \ qsiprep_test_data \ output_dir \ participant \ --work-dir working_dir \ --fs-license-file license.txt \ --nthreads 8 --unringing-method mrdegibbs \ --hmc-model 3dSHORE \ --prefer-dedicated-fmaps \ --output-resolution 1

I am receiving the following error:
ImportError: cannot import name 'NUMPY_MMAP' from 'nipype.utils'

It seems like this is due to an outdated import according to the Nipype repo? It's a brand new image so not sure why this would happen since the issue was resolved in May 2017 at the following ticket: #1898

EDIT:
I pulled the QSIPrep repo and looked through the code, just looks like a change from

from nipype.utils import NUMPY_MMAP -> from nipype.utils.config import NUMPY_MMAP

will do the job. unfortunately I am unaware of how to edit the code and then rebuild it into a Singularity Container.

Please let me know your thoughts.

Many Thanks,
Chris

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