mmdetection
mmdetection copied to clipboard
Get error when use albumentations: It seems that scikit-image has not been built correctly.
- [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:

I have met some similar problem,do you solve the problem?
I have met some similar problem,do you solve the problem? @muyuuuu
I have met some similar problem,do you solve t
Sorry, I didn't solve this problem.
Thanks for your reply!
Thanks for your reply!
same
I have met some similar problem,do you solve the problem? @muyuuuu
I have the same problem too, hope someone can help