Skip to main content
Question

How can I resolve "No module named arcgisscripting" resulting from a Shutdown Python Script in a workspace?

  • Sep 18, 2017 5:51 PM UTC
  • 2 replies
  • 155 views

Forum|alt.badge.img

My PYTHONPATH system variable is set to the following and python.exe and pythonw.exe are both in the D:\\apps\\Python\\ArcGIS10.5 folder. This script works fine in the Python window in ArcMAP.

D:\\apps\\Python\\ArcGIS10.5; D:\\apps\\ArcGIS\\Desktop10.5\\bin

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

jdh
Contributor
Forum|alt.badge.img+41
  • Contributor
  • Sep 18, 2017 5:55 PM UTC

Have you tried explicitly pointing the python interpreter to the arcgis dll?

 

 


courtney_m
Contributor
Forum|alt.badge.img+23
  • Contributor
  • Sep 18, 2017 5:56 PM UTC

Do you have the Python Compatibility workspace parameter set to ESRI ArcGIS Desktop, as shown in the following screenshot?

Also, make sure that your script begins with import arcpy.