matplotlib のこのサンプル ファイルを実行していますが、メイン ウィンドウを正常に終了しているときに次のエラーが発生します。
Fatal Python error: deallocating None
PyQt の代わりに PySide2 を使用したかったため、次の行のみを変更しました。
オリジナル:
# Make sure that we are using QT5
matplotlib.use('Qt5Agg')
from PyQt5 import QtCore, QtWidgets
新しい:
# Make sure that we are using QT5
matplotlib.use('Qt5Agg')
matplotlib.rcParams['backend.qt5']='PySide2'
from PySide2 import QtCore, QtWidgets
それ以外の場合、プログラムは完全に実行されますが、閉じるとクラッシュするだけで、少しイライラします。
私の環境は次のもので構成されています。
- パイソン 3.6.4
- PySide2 5.6.0a1
- MatplotLib 2.2.2
何か案は?