mmdetection icon indicating copy to clipboard operation
mmdetection copied to clipboard

Get error when use albumentations: It seems that scikit-image has not been built correctly.

Open muyuuuu opened this issue 4 years ago • 6 comments
trafficstars

  • [x] : I have read the checklist.

bug description

background: The server I am using is not connected to the Internet therefore cannot use pip, so, I packed the Albu in local (linux os):

pip install -U albumentations

pip download albumentations -d \tmp

then, I uploaded the \tmp to my server and run

pip install albumentations-1.0.0-py3-none-any.whl --no-index --find-links=/home/ljw/pyenv/

then has shown :

Successfully installed albumentations-1.0.0

and In the same environment, I could use albumentations:

(GPU-info) [ljw@gpu05 ~]$ python
Python 3.7.9 (default, Aug 31 2020, 12:42:55)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import albumentations
>>> albumentations.__version__
'1.0.0'

But in mmdetection:

try:
    import albumentations
    from albumentations import Compose
except ImportError:
    corrupt = None
    albumentations, Compose = None, None

above script got error: albumentations is not installed. Then I have tried to remove the import block from try:

import albumentations
from albumentations import Compose

But it got error:

  File "/home/anaconda3/envs/GPU-info/lib/python3.7/site-packages/skimage/__init__.py", line 124, in <module>
  File "/home/anaconda3/envs/GPU-info/lib/python3.7/site-packages/skimage/__init__.py", line 124, in <module>
  File "/home/anaconda3/envs/GPU-info/lib/python3.7/site-packages/skimage/__init__.py", line 124, in <module>
    import skimage
  File "/home/anaconda3/envs/GPU-info/lib/python3.7/site-packages/skimage/__init__.py", line 124, in <module>
    _raise_build_error(e)
  File "/home/anaconda3/envs/GPU-info/lib/python3.7/site-packages/skimage/__init__.py", line 104, in _raise_build_error
    _raise_build_error(e)
  File "/home/anaconda3/envs/GPU-info/lib/python3.7/site-packages/skimage/__init__.py", line 104, in _raise_build_error
    _raise_build_error(e)
  File "/home/anaconda3/envs/GPU-info/lib/python3.7/site-packages/skimage/__init__.py", line 104, in _raise_build_error
        %s""" % (e, msg))_raise_build_error(e)

    ImportError  File "/home/anaconda3/envs/GPU-info/lib/python3.7/site-packages/skimage/__init__.py", line 104, in _raise_build_error
%s""" % (e, msg)): 
dlopen: cannot load any more object with static TLS
It seems that scikit-image has not been built correctly.

In the same virtual environment, I can't import albumentations when use mmdetection, but can import albumentations when not use mmdetection (so poor English). How to fix it? and here is my package version and script:

image

muyuuuu avatar Jun 04 '21 15:06 muyuuuu

I have met some similar problem,do you solve the problem?

YangPanHZAU avatar Mar 06 '22 07:03 YangPanHZAU

I have met some similar problem,do you solve the problem? @muyuuuu

YangPanHZAU avatar Mar 06 '22 07:03 YangPanHZAU

I have met some similar problem,do you solve t

Sorry, I didn't solve this problem.

muyuuuu avatar Mar 06 '22 08:03 muyuuuu

Thanks for your reply!

YangPanHZAU avatar Mar 06 '22 08:03 YangPanHZAU

Thanks for your reply!

YangPanHZAU avatar Mar 06 '22 08:03 YangPanHZAU

same

JamesWWilson avatar Aug 05 '22 21:08 JamesWWilson

I have met some similar problem,do you solve the problem? @muyuuuu

harleyszhang avatar Nov 02 '22 08:11 harleyszhang

I have the same problem too, hope someone can help

YiangAhead avatar Jul 26 '23 01:07 YiangAhead