dlopen: cannot load any more object with static TLS & sklearn, HPOBench, smac3

时间:2024-11-16 09:14:58

sklearn, HPOBench, smac3

Traceback (most recent call last):
  File "/data/tangqirui/HPOBench/tests/SMAC3.py", line 6, in <module>
    from hpobench.benchmarks.ml.svm_benchmark import SVMBenchmark
  File "/data/tangqirui/HPOBench/hpobench/benchmarks/ml/__init__.py", line 1, in <module>
    from hpobench.benchmarks.ml.histgb_benchmark import HistGBBenchmark, HistGBBenchmarkBB, HistGBBenchmarkMF
  File "/data/tangqirui/HPOBench/hpobench/benchmarks/ml/histgb_benchmark.py", line 15, in <module>
    from sklearn.experimental import enable_hist_gradient_boosting  # noqa
  File "/root/miniconda3/envs/HPO/lib/python3.10/site-packages/sklearn/__init__.py", line 85, in <module>
    from .utils._show_versions import show_versions
  File "/root/miniconda3/envs/HPO/lib/python3.10/site-packages/sklearn/utils/_show_versions.py", line 15, in <module>
    from ._openmp_helpers import _openmp_parallelism_enabled
ImportError: dlopen: cannot load any more object with static TLS

引用 dlopen: cannot load any more object with static TLS问题解决

成功解决:升级glibc版本到2.23。

方法 Centos7 glibc库升级到2.23(实测可行)