Add some debug info to MPL import

This commit is contained in:
DarkPhoenix
2019-07-27 18:37:34 +03:00
parent adf750fe44
commit 0ffdae97fd

View File

@@ -36,6 +36,7 @@ from service.fit import Fit
pyfalog = Logger(__name__)
try:
pyfalog.warning('before mpl import')
import matplotlib as mpl
mpl_version = int(mpl.__version__[0]) or -1
@@ -44,10 +45,14 @@ try:
mplImported = True
else:
mplImported = False
pyfalog.warning('before patch import')
from matplotlib.patches import Patch
pyfalog.warning('before canvas import')
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as Canvas
pyfalog.warning('before figure import')
from matplotlib.figure import Figure
pyfalog.warning('done')
graphFrame_enabled = True
mplImported = True