Search code examples
pythoneclipse-pluginpydev

Integrating MySQLdb with PyDev


I have my path to the MySQLdb source folder I downloaded using apt-get install python-mysqldb. When I run the import from the command line, it works fine: command line

I then set my Eclipse PyDev plugin settings to go to the folder containing the MySQLdb stuff: pydev path settings

But my editor is still unable to get rid of the error, even after closing/opening the file and restarting Eclipse: fail

Here's what's contained at that directory (maybe I'm adding the wrong stuff to the path?: directory

Does anyone see anything I'm doing wrong or can provide me some insight on how I can get this thing to work within Eclipse PyDev?

Thanks, Kyle


Solution

  • The problem was solved by removing the python interpreter from the pydev preferences dialog in eclipse, saving the changes, then re-adding the same python interpreter.