Table of contents
The error code is as follows
ImportError: dlopen: cannot load any more object with static TLS
It seems that scikit-image has not been built correctly.
Your install of scikit-image appears to be broken.
Try re-installing the package following the instructions at:
https://scikit-image.org/docs/stable/install.html
Use the linux server to run some code on github, and the above error occurs when running demo.py.
Solution
Note: This article provides a solution to the error when I run the code, and it does not necessarily apply to other codes. But you can try it.
I ran the code on windows 11 without any problems, and it also ran in WSL without any problems. The problem occurred only when running on a linux server.
First of all, I am not the root user of the server. It is very difficult to upgrade gcc and glibc. I have not upgraded.
I also changed several versions of scikit-image, but this error will still be reported.
The server is Centos. View through the ldd --version command, ldd (GNU libc) 2.18. My problem can be solved as follows.
Ultimately my workaround:
I imported the scikit-image package in demo.py of the code. The added code is:
import skimage
By importing the skimage package, my problem was solved. If I comment out this line of code, the above error will appear again. So far, I have come to the conclusion that this problem is indeed caused.