Debugger not working in latest versions
已回答
I have a problem with the debugger in the most recent versions (PyCharm Community Edition 2017.1.2 and earlier)
My Python knowledge is a bit limited so I am at a loss.
The error I get:
warning: Debugger speedups using cython not found. Run '"/usr/local/opt/python/bin/python2.7" "/Applications/PyCharm CE.app/Contents/helpers/pydev/setup_cython.py" build_ext --inplace' to build.
pydev debugger: process 10266 is connecting
Traceback (most recent call last):
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1574, in <module>
apply_debugger_options(setup)
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1408, in apply_debugger_options
enable_qt_support(setup_options['qt-support'])
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/pydevd.py", line 1065, in enable_qt_support
pydev_monkey_qt.patch_qt(qt_support_mode)
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_monkey_qt.py", line 53, in patch_qt
import PySide.QtCore # @UnresolvedImport
ImportError: dlopen(/usr/local/lib/python2.7/site-packages/PySide/QtCore.so, 2): Library not loaded: /usr/local/lib/QtCore.framework/Versions/4/QtCore
Referenced from: /usr/local/lib/python2.7/site-packages/PySide/QtCore.so
Reason: image not found
Process finished with exit code 1
The following folder does not exist on my system:
/usr/local/lib/QtCore.framework/Versions/4/QtCore
However, I did not delete anything and older versions worked perfectly fine. Do I need to manually install Qt for newer versions to work?
My system stats:
PyCharm Community Edition 2017.1.2
Build #PC-171.4249.17, built on April 18, 2017
JRE: 1.8.0_112-release-736-b16 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.11.6
请先登录再写评论。
Hi! Please go to Python Debugger Settings https://www.jetbrains.com/help/pycharm/2017.1/python-debugger.html and uncheck the option "PyQt compatible".
That was it. Thanks Elizabeth.
Likewise, thanks!