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

"cannot import name '_validate_lengths' " #40

Open
bemoregt opened this issue Sep 21, 2020 · 6 comments
Open

"cannot import name '_validate_lengths' " #40

bemoregt opened this issue Sep 21, 2020 · 6 comments

Comments

@bemoregt
Copy link

HI, @chenyuhao @javiribera @dguera

I met this error when run your elvaluation script.

"cannot import name '_validate_lengths' "

I installed your conda install guide ...

What's wrong to me ?

Thanks.
Best,

@bemoregt.

@javiribera
Copy link
Owner

Please provide the full stack traceback

@bemoregt
Copy link
Author

bemoregt commented Sep 24, 2020

Hi, @javiribera, @chenyuhao @dguera

It is may be a 'peterpy' package install problems.

It is so hard to install that package.

Best.
Thanks.
@bemoregt.

@javiribera
Copy link
Owner

I won't be able to help without the entire error stack.

@emergencyd
Copy link

you should just google this error. You will find out that you just need to downgrade your numpy version @bemoregt

@Aichiimv
Copy link

pip install -U scikit-image worked for me

@policheh
Copy link

policheh commented Oct 9, 2024

Hi @javiribera ,
the same for me. Full stack:

python -m object-locator.train -h
Traceback (most recent call last):
File ".conda/envs/object-locator/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File ".conda/envs/object-locator/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "locating-objects-without-bboxes/object-locator/train.py", line 40, in
import skimage.transform
File ".conda/envs/object-locator/lib/python3.6/site-packages/skimage/init.py", line 158, in
from .util.dtype import *
File ".conda/envs/object-locator/lib/python3.6/site-packages/skimage/util/init.py", line 7, in
from .arraycrop import crop
File ".conda/envs/object-locator/lib/python3.6/site-packages/skimage/util/arraycrop.py", line 8, in
from numpy.lib.arraypad import _validate_lengths
ImportError: cannot import name '_validate_lengths'

Thanks.

Best regards,
Boris

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

5 participants