Select to view content in your preferred language

Arcpy intellisence / code complete for Eclipse

3074
9
02-26-2011 12:06 AM
KevinCressy
Emerging Contributor
Hello all,

I have installed Eclipse, added PyDev and seem to have arcpy python scripts running fine within Eclipse.

My scripts are running correctly and I am getting context help when hovering over objects - however intellisence and code completion does not seem to be working.

Can anyone advise how this can be set up?  If at all?

Regards,

Kevin
Tags (2)
0 Kudos
9 Replies
ChrisMathers
Deactivated User
Window>Preferences>Pydev>Interpreter-Python, click New Folder and add
c:\Program File\ArcGIS\Desktop 10.0\bin
c:\Program File\ArcGIS\Desktop 10.0\arcpy
c:\Program File\ArcGIS\Desktop 10.0\Lib\site-packages\numpy
0 Kudos
KevinCressy
Emerging Contributor
Thanks Chris,

I managed to add the first two folders but do not have the third:
c:\Program File\ArcGIS\Desktop 10.0\Lib\site-packages\numpy

is this required to get intellisence working?
0 Kudos
KevinCressy
Emerging Contributor
Update - I had been looking in the wrong location for the numpy folder.

I have now added this to the preferences path but I am still not getting intellisence.  I attach a screen dump of all of my references....does this look correct?
0 Kudos
ChrisMathers
Deactivated User
Looks fine to me. Try it and see.
0 Kudos
KevinCressy
Emerging Contributor
Still no luck.

Is there anything other than referencing the file paths that I should do?
0 Kudos
ChrisMathers
Deactivated User
C:\Python26
C:\Python26\DLLs
C:\Python26\lib
C:\Python26\lib\lib-tk
C:\Python26\lib\site-packages

Beyond making sure that you have all the libraries in there I dont know what to tell you. When I added in the ArcGIS10.0 ones it worked.
0 Kudos
KevinCressy
Emerging Contributor
I don't have a standalone version of Python 2.6 installed on my machine - are you saying I need both the version shipped with ArcGIS v10 and a separate install of python?

i.e. would I need to install version 2.6.6 here (2.6.5 is apparently an unstable version: http://www.python.org/download/releases/2.6.6/)
0 Kudos
EvanBlaisdell
Occasional Contributor
I hate to be the guy that chimes in with a "did you ever figure this out" post, but...

Did you ever figure this out?

I'm just starting to use Eclipse with PyDev, and cannot get code-completion to work for arcpy, even after having added the folders shown above in this thread.

Thanks,
Evan
0 Kudos
tianbingwei
New Contributor
When you typing , Try "Crtl+SPC" and the arcpy will come
0 Kudos