ImportError: dlopen: cannot load any more object with static TLS when running setup.py
This exception is raised when running pip install sicor on Ubuntu, Python 3.8:
(gms3.8) gfz-fe@geoms:~/scheffler/python_deployed/sicor$ pip install -e .
Obtaining file:///home/gfz-fe/scheffler/python_deployed/sicor
ERROR: Command errored out with exit status 1:
command: /home/gfz-fe/miniconda3/envs/gms3.8/bin/python3.8 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/gfz-fe/scheffler/python_deployed/sicor/setup.py'"'"'; __file__='"'"'/home/gfz-fe/scheffler/python_deployed/sicor/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-bhi_y75q
cwd: /home/gfz-fe/scheffler/python_deployed/sicor/
Complete output (34 lines):
running egg_info
creating /tmp/pip-pip-egg-info-bhi_y75q/sicor.egg-info
writing /tmp/pip-pip-egg-info-bhi_y75q/sicor.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-bhi_y75q/sicor.egg-info/dependency_links.txt
writing requirements to /tmp/pip-pip-egg-info-bhi_y75q/sicor.egg-info/requires.txt
writing top-level names to /tmp/pip-pip-egg-info-bhi_y75q/sicor.egg-info/top_level.txt
writing manifest file '/tmp/pip-pip-egg-info-bhi_y75q/sicor.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
/home/gfz-fe/miniconda3/envs/gms3.8/lib/python3.8/distutils/dist.py:274: UserWarning: Unknown distribution option: 'authors'
warnings.warn(msg)
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
warning: no files found matching '*.jpg' under directory 'docs'
warning: no files found matching '*.gif' under directory 'docs'
writing manifest file '/tmp/pip-pip-egg-info-bhi_y75q/sicor.egg-info/SOURCES.txt'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/gfz-fe/scheffler/python_deployed/sicor/setup.py", line 131, in <module>
from sicor.tables import get_tables
File "/home/gfz-fe/scheffler/python_deployed/sicor/sicor/__init__.py", line 6, in <module>
from .sicor_ac import ac, ac_gms
File "/home/gfz-fe/scheffler/python_deployed/sicor/sicor/sicor_ac.py", line 39, in <module>
from .AC.RtFo import Rho2Rj_const, Rj2RhoJ_const, RtFo
File "/home/gfz-fe/scheffler/python_deployed/sicor/sicor/AC/RtFo.py", line 20, in <module>
from ..Tools import initializer, SharedNdarray
File "/home/gfz-fe/scheffler/python_deployed/sicor/sicor/Tools/__init__.py", line 21, in <module>
from .linear_error_moddeling import linear_error_modeling
File "/home/gfz-fe/scheffler/python_deployed/sicor/sicor/Tools/linear_error_moddeling.py", line 8, in <module>
from sklearn.linear_model import LinearRegression
File "/home/gfz-fe/miniconda3/envs/gms3.8/lib/python3.8/site-packages/sklearn/__init__.py", line 81, in <module>
from .utils._show_versions import show_versions
File "/home/gfz-fe/miniconda3/envs/gms3.8/lib/python3.8/site-packages/sklearn/utils/_show_versions.py", line 12, in <module>
from ._openmp_helpers import _openmp_parallelism_enabled
ImportError: dlopen: cannot load any more object with static TLS
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I will submit a merge request to fix that, soon.