using python+arcpy within Eclipse

Discussion created by rfinch on Aug 19, 2011
Latest reply on Aug 22, 2011 by achapkowski-esristaff
ArcGIS 10SP2, Win7x64.

I use the Eclipse IDE for other work, and would like to use it with arcpy. But I get this error:

File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\arcobjects\mixins.py", line 443, in __init__
    assert (os.path.isfile(mxd) or (mxd.lower() == "current")), gp.getIDMessage(89004, "Invalid MXD filename")
AssertionError: Invalid MXD filename.

the offending code line is:
mxd = arcpy.mapping.MapDocument("DSM2_Network.mxd")

This works perfectly well within, say, IDLE.

My Python interpreter libraries are as follows:

Any ideas what I've set wrong within Eclipse?