PyCharm Profiler is not working
Anyone know what might be wrong in my dependencies. When I try to run the PyCharm profiler on a simple script I get
/usr/bin/python /Applications/PyCharm.app/Contents/helpers/profiler/run_profiler.py 127.0.0.1 62129 /Users/eb/Work/SemanticClassifier/src/demo/algo/NNMF_simple.py
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/profiler/run_profiler.py", line 5, in <module>
from _pydev_bundle import pydev_imports
File "/Library/Python/2.7/site-packages/_pydev_bundle/pydev_imports.py", line 1, in <module>
from _pydevd_bundle.pydevd_constants import USE_LIB_COPY, izip
File "/Library/Python/2.7/site-packages/_pydevd_bundle/pydevd_constants.py", line 99, in <module>
from _pydev_imps import _pydev_threading as threading
ImportError: cannot import name _pydev_threading
My pydevd package is currently version 0.0.6 which is being reported as the most recent version.
Please sign in to leave a comment.
Hi Eric Bergerson!
When you run profiler, the PyCharm runs the `pydevd` module which is the part of your PyCharm installation. But you have a `pydevd` package installed on your Python interpreter, and Python runs it instead of `pydevd` module from PyCharm.
We share `pydevd` package with PyDev, and there are some problems with synchronizing the `pydevd` module between us. So, please, uninstall the `pydevd` package from your interpreter or use another interpreter.
Thanks. It is working now, but not sure why. I tried again, and now it is working, without uninstalling pydevd. The only thing I can think of is either, some pip install I did since I wrote this fixed the installed pydevd that it is now in line with the one you distribute. Alternatively, I did recently see a message in PyCharm that said it was not able to take advantage of cython because it needed me to do one more build step to get it properly usable. I did that and the warning went away, so maybe the profiler needed the cython to be running effectively to work?
Thanks anyhow.