If you installed the PyDev plugin into Eclipse, you may get this message when you start up Eclipse:
An internal error occurred during: "PyDev code completion: rebuilding modules"
It means that, during the rebuilding of the Code Completion Tool, the Python interpreter has not been found. It happens when your Python system was not installed on the default folder (c:\Python); for example mine is installed in D:/Programs/Python. Yes I know, it's not a good practice and it's not suggested in the Python documention.
Solution:
How to set the Python system PYTHONPAT
Being into Eclipse you have to enter in "Window" menu, than "Preferences", "Pydev", "Interpreter-Python" and here you can configure your path. Click on "New..." on the left of "Python interpreters" window, and then choose your right python folder. In the shown up list, check every folder within your main python folder and go on.
Restart Eclipse.
P.S. You could also disable the "Code Completion Tool" rebuilding, but you loose this nice feature. Anyway, if you want to disable it, you can look into "Window-Preferences-Pydev-Builders" menu.
Wednesday, May 2, 2007
PyDev + Eclipse Error Message. How to configure the Python interpreter
Pubblicato da
Pelerin-Voyageur
a
4:16 AM
Etichette: eclipse, programming, python
Subscribe to:
Post Comments (Atom)
2 commenti:
I tried setting up my python interpreter as you suggested but am still getting the error. what versions of eclipse, pydev, and python are you using? I have Eclipse 3.2, pydev 1.3.2, and python 2.5.
sofeng
I don't know why it doesn't work for you, I'm sorry. For me it worked fine.
When I posted this I used eclipse 3.2 and Python 2.5 as well.
I'm not sure for the PyDev version; I had to reinstall the whole system so I can't check anymore the old version I used before.
Anyway, I hope you fixed the problem, in the meanwhile ;-)
Post a Comment