It seems that the main problem is the use of librosa and pytorch, I can't use both libraries at the same time, even if just executing the imports of main.py and datasets.py in order.
bishe@hulk:~/kunning/DORtU$ python main.py
Traceback (most recent call last):
File "/home/bishe/anaconda3/lib/python3.6/site-packages/sklearn/__check_build/__init__.py", line 44, in <module>
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 "main.py", line 18, in <module>
import lib.Datasets.datasets as datasets
File "/home/bishe/kunning/DORtU/lib/Datasets/datasets.py", line 6, in <module>
import librosa
File "/home/bishe/anaconda3/lib/python3.6/site-packages/librosa/__init__.py", line 14, in <module>
from . import decompose
File "/home/bishe/anaconda3/lib/python3.6/site-packages/librosa/decompose.py", line 19, in <module>
import sklearn.decomposition
File "/home/bishe/anaconda3/lib/python3.6/site-packages/sklearn/__init__.py", line 81, in <module>
from . import __check_build # noqa: F401
File "/home/bishe/anaconda3/lib/python3.6/site-packages/sklearn/__check_build/__init__.py", line 46, in <module>
raise_build_error(e)
File "/home/bishe/anaconda3/lib/python3.6/site-packages/sklearn/__check_build/__init__.py", line 41, in raise_build_error
%s""" % (e, local_dir, ''.join(dir_content).strip(), msg))
ImportError: dlopen: cannot load any more object with static TLS
___________________________________________________________________________
Contents of /home/bishe/anaconda3/lib/python3.6/site-packages/sklearn/__check_build:
__init__.py setup.py _check_build.cpython-36m-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.