Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/tmp.atoQSuHf68/venv/lib/python3.10/site-packages/matplotlib/backends/backend_qt5agg.py", line 7, in <module>
from .backend_qtagg import ( # noqa: F401, E402 # pylint: disable=W0611
File "/tmp/tmp.atoQSuHf68/venv/lib/python3.10/site-packages/matplotlib/backends/backend_qtagg.py", line 12, in <module>
from .backend_qt import QtCore, QtGui, _BackendQT, FigureCanvasQT
File "/tmp/tmp.atoQSuHf68/venv/lib/python3.10/site-packages/matplotlib/backends/backend_qt.py", line 72, in <module>
_MODIFIER_KEYS = [
File "/tmp/tmp.atoQSuHf68/venv/lib/python3.10/site-packages/matplotlib/backends/backend_qt.py", line 73, in <listcomp>
(_to_int(getattr(_enum("QtCore.Qt.KeyboardModifier"), mod)),
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'KeyboardModifier'
Activity
koutoftimer commented on Oct 18, 2022
I suppose it is already fixed in the main branch.
matplotlib/lib/matplotlib/backends/qt_compat.py
Lines 71 to 115 in 80b15fb
koutoftimer commented on Oct 18, 2022
Yes it is fixed already. Can't reproduce the issue with main branch.
For me works fine.
oscargus commented on Oct 18, 2022
Was fixed in #24158