PyCharm PyQt4 / PyQt5 Collision In Debug Mode
I am trying to use PyQt4 in pycharm. My code works perfectly in run mode, but in debug mode, when I try to import PyQt4 I get the following error: 'RuntimeError: the PyQt4.QtCore
Solution 1:
you can go to Settings>Build,Execution,Deployment>Debugger>Python Debugger>PyQt compatible: Select PyQt4.
Solution 2:
Try going to File > Settings > Project > Project Interpreter. Edit your current interpreter, or create a new one, and remove PyQt5 from the list that shows up.
Post a Comment for "PyCharm PyQt4 / PyQt5 Collision In Debug Mode"