When I write import MySQLdb in Eclipse using the PyDev plugin, I get an unresolved import. However, the program runs without error. I can add an annotation to get
import MySQLdb
Adding the egg works, but the error remains. The solution for that error can be found by adding
#@UnresolvedImport
To the import statement, as in:
import web #@UnresolvedImport
Source: http://klaith.wordpress.com/2009/06/12/pydev-unresolved-import-errors/