Open ondrudav opened 6 months ago
Hello, following your instructions, I reinstalled matplotlib 3.8.3, PyQt5 5.15.10 and setuptools 69.1.1. However, I still made the above error. Here is my error message. Could you please provide me with some relevant guidance? I would really appreciate it.
OS: Windows 11
Python version: 3.12.2
IDE: Pycharm 2024.1
Error: Failed to enable GUI event loop integration for 'qt' Traceback (most recent call last): import imp ModuleNotFoundError: No module named 'imp' Backend QtAgg is interactive backend. Turning interactive mode on.
To support python 3.12 you should change the code in:_vendored/pydevd/_pydevd_bundle/pydevd_utils.py
from
spec = spec_from_file_location('__main__', file, loader=loader) m = module_from_spec(spec) sys.modules['__main__'] = m return m
to
` spec = importlib.util.spec_from_loader('main', loader=None)
m = importlib.util.module_from_spec(spec)
sys.modules['__main__'] = m
return m`
邮件已收到~~勿念
Environment data
Actual behavior
Pydevd runs into an exception when enabling matplotlib interactive mode for Qt5 backend.
Expected behavior
Interactive mode is turned on without printing a traceback.
Steps to reproduce:
matplotlib 3.8.3
,PyQt5 5.15.10
andsetuptools 69.1.1