The only thing that had really worked for me in the past was doing the if 0: trick:
if 0: from gluon.dal import DAL from gluon.tools import Auth db = DAL() auth = Auth() The code won't actually get executed, it's just there to give Eclipse and other IDE's some direction. If this still doesn't work, then you'll have to wait until the next web2py release, which could be in a week or two.