1

I'm trying to set up auto complete for ArcPy in PyCharm, but while submodules seem to have auto complete suggestions, the ArcPy module itself doesn't have completions provided.

Example of unsuccessful auto complete:

Ex. 1 Unsuccessful

But when typing arcpy.gp. I see suggestions, as expected.

I thought that the submodules and functions/classes directly available from arcpy would be shown or help for specific functions would display.

I followed the instructions for setting up PyCharm to reference ArcPy. I ensured that the project interpreter was configured correctly, and also my PYTHONPATH in the application. I have also tried invalidating the cache and restarting PyCharm but did not see any improvement.

Is this auto complete supposed to work, and if so, how do I configure PyCharm to do it?

I am using PyCharm Community Edition 2016.2.3 and Arcpy as included with ArcGIS Desktop 10.3.

  • 1
    I'm using pychrm and it's working for me. Do you install another version of python other than the default python? – BBG_GIS Nov 16 '16 at 20:59
  • 1
    What's your version of pycharm? When you install pycharm it's automatically index whole packages. It takes some minutes to import all of packages. Did you see indexing process ? – BBG_GIS Nov 16 '16 at 21:02
  • On my machines, pycharm is a bit laggy with auto-completion on arcpy. If you wait a few seconds, does that help? – Paul Nov 16 '16 at 23:21
  • You're right. I tried again, and it just takes awhile to show up. Thanks for your help guys. – iradm Nov 17 '16 at 16:17
  • what I have noticed is that its not working until the first run. Simply start your script with Import arcpy and run it... then you will have Autocomplete functionality enabled. Looks like, pycharm needs to load arcpy library first, I think. – ChrisL Nov 18 '16 at 14:23
1

what I have noticed is that its not working until the first run. Simply start your script with Import arcpy and run it... then you will have Autocomplete functionality enabled. Looks like, pycharm needs to load arcpy library first,

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.