Unable to debug python u nit tests
I just downloaded the latest Pycharm Community edition, configured my python app and tried to run one of my python unit test cases through the debugger. But I get this strange error in puydev about QRunnable. Anyone know why and what is causing this?
Thanks
Chris
/usr/bin/python /disney/home/cmihaly/pycharm/pycharm-community-4.5.4/helpers/pydev/pydevd.py –multiproc –client 127.0.0.1 –port 55884 –file /disney/home/cmihaly/pycharm/pycharm-community-4.5.4/helpers/pycharm/noserunner.py /disney/home/cmihaly/projects/prodman/src/prodman/triggers/tests/testtasktrigger.py
Testing started at 8:05 PM ...
Traceback (most recent call last):
File "/disney/home/cmihaly/pycharm/pycharm-community-4.5.4/helpers/pydev/pydevd.py", line 7, in <module>
pydev_monkey_qt.patch_qt()
File "/disney/home/cmihaly/pycharm/pycharm-community-4.5.4/helpers/pydev/pydev_monkey_qt.py", line 49, in patch_qt
_internal_patch_qt()
File "/disney/home/cmihaly/pycharm/pycharm-community-4.5.4/helpers/pydev/pydev_monkey_qt.py", line 93, in _internal_patch_qt
_original_runnable_init = QtCore.QRunnable.__init__
AttributeError: 'module' object has no attribute 'QRunnable'
Thanks
Chris
/usr/bin/python /disney/home/cmihaly/pycharm/pycharm-community-4.5.4/helpers/pydev/pydevd.py –multiproc –client 127.0.0.1 –port 55884 –file /disney/home/cmihaly/pycharm/pycharm-community-4.5.4/helpers/pycharm/noserunner.py /disney/home/cmihaly/projects/prodman/src/prodman/triggers/tests/testtasktrigger.py
Testing started at 8:05 PM ...
Traceback (most recent call last):
File "/disney/home/cmihaly/pycharm/pycharm-community-4.5.4/helpers/pydev/pydevd.py", line 7, in <module>
pydev_monkey_qt.patch_qt()
File "/disney/home/cmihaly/pycharm/pycharm-community-4.5.4/helpers/pydev/pydev_monkey_qt.py", line 49, in patch_qt
_internal_patch_qt()
File "/disney/home/cmihaly/pycharm/pycharm-community-4.5.4/helpers/pydev/pydev_monkey_qt.py", line 93, in _internal_patch_qt
_original_runnable_init = QtCore.QRunnable.__init__
AttributeError: 'module' object has no attribute 'QRunnable'
请先登录再写评论。
I'm having the same issue.
the problem is that our PySide version is too old (I'm running CentOS 6.7 and its native PySide don't have that QRunnable).
But I guess/hope for you that you could change that since you posted ;)