Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

dlopen: cannot load any more object with static TLS #323

Open
quicksandznzn opened this issue Jul 20, 2023 · 1 comment
Open

dlopen: cannot load any more object with static TLS #323

quicksandznzn opened this issue Jul 20, 2023 · 1 comment

Comments

@quicksandznzn
Copy link
Contributor

python 3.8
torch 2.0.1

Traceback (most recent call last):
File "/home/app/miniconda3/envs/so-vits-svc-4.1/lib/python3.8/site-packages/sklearn/__check_build/init.py", line 48, in
from ._check_build import check_build # noqa
ImportError: dlopen: cannot load any more object with static TLS

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "inference_main.py", line 5, in
from inference import infer_tool
File "/data1/develop/zhangshuai/so-vits-svc/inference/infer_tool.py", line 11, in
import librosa
File "/home/app/miniconda3/envs/so-vits-svc-4.1/lib/python3.8/site-packages/librosa/init.py", line 211, in
from . import decompose
File "/home/app/miniconda3/envs/so-vits-svc-4.1/lib/python3.8/site-packages/librosa/decompose.py", line 19, in
import sklearn.decomposition
File "/home/app/miniconda3/envs/so-vits-svc-4.1/lib/python3.8/site-packages/sklearn/init.py", line 81, in
from . import __check_build # noqa: F401
File "/home/app/miniconda3/envs/so-vits-svc-4.1/lib/python3.8/site-packages/sklearn/__check_build/init.py", line 50, in
raise_build_error(e)
File "/home/app/miniconda3/envs/so-vits-svc-4.1/lib/python3.8/site-packages/sklearn/__check_build/init.py", line 31, in raise_build_error
raise ImportError(
ImportError: dlopen: cannot load any more object with static TLS


Contents of /home/app/miniconda3/envs/so-vits-svc-4.1/lib/python3.8/site-packages/sklearn/__check_build:
setup.py init.py _check_build.cpython-38-x86_64-linux-gnu.so
pycache


It seems that scikit-learn has not been built correctly.

If you have installed scikit-learn from source, please do not forget
to build the package before using it: run python setup.py install or
make in the source directory.

If you have used an installer, please check that it is suited for your
Python version, your operating system and your platform.

@HuanLinOTO
Copy link
Contributor

If you have already searched on Google or Bing, then you should know how to solve this problem.
Here is my solution:

export LD_PRELOAD=/path/to/site-packages/sklearn/__check_build/../../scikit_learn.libs/libgomp-d22c30c5.so.1.0.0

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

No branches or pull requests

2 participants