Recursion Error when importing mlair
Bug
Error description
Recursion error when importing mlari (v1.2)
Error message
File "<input>", line 1, in <module>
File "/snap/pycharm-community/224/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/home/felix/PycharmProjects/mlair/mlair/__init__.py", line 7, in <module>
from mlair.run_modules import RunEnvironment, ExperimentSetup, PreProcessing, ModelSetup, Training, PostProcessing
File "/snap/pycharm-community/224/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/home/felix/PycharmProjects/mlair/mlair/run_modules/__init__.py", line 7, in <module>
from mlair.run_modules.training import Training
File "/snap/pycharm-community/224/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/home/felix/PycharmProjects/mlair/mlair/run_modules/training.py", line 16, in <module>
from mlair.plotting.training_monitoring import PlotModelHistory, PlotModelLearningRate
File "/snap/pycharm-community/224/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/home/felix/PycharmProjects/mlair/mlair/plotting/training_monitoring.py", line 15, in <module>
matplotlib.use('Agg')
File "/snap/pycharm-community/224/plugins/python-ce/helpers/pydev/pydev_ipython/matplotlibtools.py", line 70, in patched_use
matplotlib.real_use(*args, **kwargs)
File "/snap/pycharm-community/224/plugins/python-ce/helpers/pydev/pydev_ipython/matplotlibtools.py", line 70, in patched_use
matplotlib.real_use(*args, **kwargs)
File "/snap/pycharm-community/224/plugins/python-ce/helpers/pydev/pydev_ipython/matplotlibtools.py", line 70, in patched_use
matplotlib.real_use(*args, **kwargs)
[Previous line repeated 471 more times]
RecursionError: maximum recursion depth exceeded while calling a Python object
First guess on error origin
Error origin
when exec run.py