Skip to content

06_analysis_multivariate “ImportError: cannot import name analyze” #38

@donghui1119

Description

@donghui1119

Summary

It seems to be a problem with "nibabel", because "ImportError: cannot import name analyze" will appear when importing nibabel. But I still have this problem after I delete "nibabel" and reinstall it. I installed "nibabel==2.5.1" in python2.7 on my laptop, and there is no error in "import nibable"

Actual behavior

Expected behavior

How to replicate the behavior

Script/Workflow details

from mvpa2.suite import *


ImportError Traceback (most recent call last)
in ()
2 import os
3 from os.path import basename
----> 4 from mvpa2.suite import *

/opt/miniconda-latest/envs/mvpa/lib/python2.7/site-packages/mvpa2/suite.py in ()
225 from mvpa2.misc.plot.base import *
226 from mvpa2.misc.plot.erp import *
--> 227 from mvpa2.misc.plot.scatter import *
228 if externals.exists(['griddata', 'scipy']):
229 from mvpa2.misc.plot.topo import *

/opt/miniconda-latest/envs/mvpa/lib/python2.7/site-packages/mvpa2/misc/plot/scatter.py in ()
14 import sys, os
15 import pylab as pl
---> 16 import nibabel as nb
17 import numpy as np
18

/opt/miniconda-latest/envs/mvpa/lib/python2.7/site-packages/nibabel/init.py in ()
60
61 # module imports
---> 62 from . import analyze as ana
63 from . import spm99analyze as spm99
64 from . import spm2analyze as spm2

ImportError: cannot import name analyze

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

Platform details:



Execution environment

Ubuntu20.04
Choose one

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions