d6t/d6tflow-template

dlopen: cannot load any more object with static TLS

Closed this issue · 1 comments

Hi everyone,

For learning purpose, I am training to run the default code present in d6tflow-templete. So, when I am trying to run the following command I got the above error:
visualize.plot_importances()

The full error is the following:

In [53]: visualize.plot_importances()
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-53-3fbdd0f0e93e> in <module>()
----> 1 visualize.plot_importances()

~/Dropbox/GRB-project/visualize.py in plot_importances()
     12     df_train = tasks.TaskPreprocess().output().load()
     13     df_importance = pd.Series(model.feature_importances_, index=df_train.iloc[:,:-1].columns)
---> 14     import matplotlib.pyplot as plt
     15     df_importance.sort_values(ascending=False).plot.bar()
     16     plt.savefig('reports/plot.png')

~/anaconda3/lib/python3.6/site-packages/matplotlib/pyplot.py in <module>()
    113 ## Global ##
    114 
--> 115 _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
    116 
    117 _IP_REGISTERED = None

~/anaconda3/lib/python3.6/site-packages/matplotlib/backends/__init__.py in pylab_setup(name)
     60     # imports. 0 means only perform absolute imports.
     61     backend_mod = __import__(backend_name, globals(), locals(),
---> 62                              [backend_name], 0)
     63 
     64     # Things we pull in from all backends

~/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py in <module>()
     13 
     14 from .backend_agg import FigureCanvasAgg
---> 15 from .backend_qt5 import (
     16     QtCore, QtGui, QtWidgets, _BackendQT5, FigureCanvasQT, FigureManagerQT,
     17     NavigationToolbar2QT, backend_version)

~/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py in <module>()
     17     _Backend, FigureCanvasBase, FigureManagerBase, NavigationToolbar2,
     18     TimerBase, cursors, ToolContainerBase, StatusbarBase)
---> 19 import matplotlib.backends.qt_editor.figureoptions as figureoptions
     20 from matplotlib.backends.qt_editor.formsubplottool import UiSubplotTool
     21 from matplotlib.figure import Figure

~/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_editor/figureoptions.py in <module>()
     18 import matplotlib
     19 from matplotlib import cm, colors as mcolors, markers, image as mimage
---> 20 import matplotlib.backends.qt_editor.formlayout as formlayout
     21 from matplotlib.backends.qt_compat import QtGui
     22 

~/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_editor/formlayout.py in <module>()
     52 
     53 from matplotlib import colors as mcolors
---> 54 from matplotlib.backends.qt_compat import QtGui, QtWidgets, QtCore
     55 
     56 

~/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_compat.py in <module>()
    138     if QT_API == QT_API_PYQT5:
    139         try:
--> 140             from PyQt5 import QtCore, QtGui, QtWidgets
    141             _getSaveFileName = QtWidgets.QFileDialog.getSaveFileName
    142         except ImportError:

ImportError: dlopen: cannot load any more object with static TLS

I do not know what is going on. Any help would be great.

Thanks!

import matplotlib.pyplot as plt => seems to be a problem with your setup not d6tflow