I get this warning while running a python program (some basic web automation using selenium):
warning: Debugger speedups using cython not found. Run '"/usr/bin/python3.5" "/root/.p2/pool/plugins/org.python.pydev_4.5.5.201603221110/pysrc/setup_cython.py" build_ext --inplace' to build. pydev debugger: starting (pid: 3502)
How can I address this issue?
I use python 3.3 interpreter, pydev and eclipse neon on Windows 7, 64 bit. I got the error:
warning: Debugger speedups using cython not found. Run '"C:\Python33\python.exe" "C:\Users\user\.p2\pool\plugins\org.python.pydev_5.2.0.201608171824\pysrc\setup_cython.py" build_ext --inplace' to build. pydev debugger: starting (pid: 8252)
I am working on the solution now. This is an INCOMPLETE answer.
python setup_cython build_ext --inplace
. You must add .py after setup_cython to make this command work in windows.To run this command, open cmd as administrator and then CD into the folder where the setup_cython script is stored (see it in error message). Then, run:
python setup_cython.py build_ext --inplace
. Btw, if you get an error python is not recognized as an internal or external command, then refer this.Then, I got an error:
Traceback (most recent call last): File "setup_cython.py", line 25, in from setuptools import setup ImportError: No module named 'setuptools'
Looks like setuptools is missing and must be installed. Refer this link. We will use the simplified windows instructions. Download the ez_setup.py script in any folder. Open cmd as administrator and then cd into that folder. Then run
python ez_setup.py
python setup_cython.py build_ext --inplace
. I got the error:running build_ext building '_pydevd_bundle.pydevd_cython' extension error: INCLUDE environment variable is empty
Let me see what to do next.
Installing PyDev plugin in eclipse doesn't enough to run python (*.py) file. This error will come if Microsoft Visual C++ Compiler for Python 2.7 is not installed, So if you look error message in eclipse console there you can find a link how to install this python compiler, what you can simply do is,
1.Download Microsoft Visual C++ Compiler for Python 2.7 from http://aka.ms/vcpython27
2.Install downloaded package (.msi)
3.Go to command prompt in windows and change directory to "cd python27"
4.Run
C:\Users\xyz\<path to you eclipse plugins> \org.python.pydev.core_6.3.2.201803171248\pysrc\setup_cython.py build_ext --inplace
5.Hit enter and wait unless compiler plugin install.
Voila! You have now installed python compiler.
Hope so It will help you. In my case it worked. Thanks!!!
On ubuntu, I needed to do the following in a terminal:
I then copied the full setup path from the error in eclipse and onto my command prompt: python "/home/mark/.eclipse/360744347_linux_gtk_x86_64/plugins/org.python.pydev.core_6.5.0.201809011628/pysrc/setup_cython.py" build_ext --inplace
It finally compiled and the error message no longer appears.
simply copy all the command "/usr/bin/python3.5" "/root/.p2/pool/plugins/org.python.pydev_4.5.5.201603221110/pysrc/setup_cython.py" build_ext --inplace ,
paste in a command line terminal (tipically bash shell) and press return :)
with py 3.7 this does not build. but then, you just lose some speed-ups, not a big deal.
you get :
This is as expected. Run
"/usr/bin/python3.5" "/root/.p2/pool/plugins/org.python.pydev_4.5.5.201603221110/pysrc/setup_cython.py" build_ext --inplace
as it asks to get the debugger accelerations.(Nb. The error in the comment below was because this answer was missing an initial double quote.)
Ideally run it from within your virtual environment, if you use one, to make sure you run this for the correct Python version. You'll need to run this once per Python version you use.