Remove debugging stuff and try to downgrade matplotlib

This commit is contained in:
DarkPhoenix
2019-07-27 22:12:01 +03:00
parent 4f3228388c
commit a1d807bd45
2 changed files with 1 additions and 7 deletions

View File

@@ -36,7 +36,6 @@ 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
@@ -45,14 +44,10 @@ 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
@@ -62,7 +57,6 @@ except ImportError as e:
Patch = mpl = Canvas = Figure = None
graphFrame_enabled = False
mplImported = False
raise
except Exception:
# We can get exceptions deep within matplotlib. Catch those. See GH #1046
tb = traceback.format_exc()

View File

@@ -1,6 +1,6 @@
wxPython == 4.0.6
logbook >= 1.0.0
matplotlib >= 3.0.0
matplotlib == 3.0.3
python-dateutil
requests >= 2.0.0
sqlalchemy >= 1.3.0