Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import issue #3

Open
loftusa opened this issue Aug 29, 2019 · 2 comments
Open

Import issue #3

loftusa opened this issue Aug 29, 2019 · 2 comments

Comments

@loftusa
Copy link

loftusa commented Aug 29, 2019

Setup:

pip install deepbrain
from deepbrain import Extractor

Error:

ImportError                               Traceback (most recent call last)
 in 
      5 
      6 import nibabel as nib
----> 7 from deepbrain import Extractor

/usr/local/Caskroom/miniconda/base/envs/ndmg/lib/python3.6/site-packages/deepbrain/__init__.py in 
----> 1 from deepbrain.extractor import Extractor

/usr/local/Caskroom/miniconda/base/envs/ndmg/lib/python3.6/site-packages/deepbrain/extractor.py in 
      1 import tensorflow as tf
      2 import numpy as np
----> 3 from skimage.transform import resize
      4 import os
      5 

/usr/local/Caskroom/miniconda/base/envs/ndmg/lib/python3.6/site-packages/skimage/__init__.py in 
    156     except ImportError as e:
    157         _raise_build_error(e)
--> 158     from .util.dtype import *
    159 
    160 

/usr/local/Caskroom/miniconda/base/envs/ndmg/lib/python3.6/site-packages/skimage/util/__init__.py in 
      5 from .apply_parallel import apply_parallel
      6 
----> 7 from .arraycrop import crop
      8 from ._regular_grid import regular_grid, regular_seeds
      9 from .unique import unique_rows

/usr/local/Caskroom/miniconda/base/envs/ndmg/lib/python3.6/site-packages/skimage/util/arraycrop.py in 
      6 
      7 import numpy as np
----> 8 from numpy.lib.arraypad import _validate_lengths
      9 
     10 

ImportError: cannot import name '_validate_lengths'
@loftusa
Copy link
Author

loftusa commented Aug 29, 2019

Fixed by grabbing scikit-image with a conda install command, looks like a scikit-image dependency thing

@lucahei
Copy link

lucahei commented Dec 20, 2019

I have the same issue, how exactly did you grab scikit-image with a conda install command? I tried to do the following:

conda install -c conda-forge scikit-image

But I'm still getting the same error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants