Python Add-ins don't seem to work for us since we upgraded from Windows 7 16 bit and ArcGis 10.1 to Windows 7 32 bit and ArcGis10.2. I even created one from scratch without adding any code and when it loaded, it showed up typical of a Python syntax error

3755
1
10-17-2014 07:38 AM
AultonSmith
New Contributor

Python Add-ins don't seem to work for us since we upgraded from Windows 7 16 bit and ArcGis 10.1 to Windows 7 32 bit and ArcGis10.2. I even created one from scratch without adding any code and when it loaded, it showed up typical of a Python syntax error (with an x where the icon should be and the word "Missing" where the name should be). Custom toolboxes work fine. What gives?

0 Kudos
1 Reply
DanPatterson_Retired
MVP Emeritus

your system paths have changed ...As an example, I am currently running windows 7 and Arc10.2 so my ArcGIS folder is in I upgraded from 10.1 to 10.2 hence, all Arc* stuff now resides in

c:\Program Files (x86)\ArcGIS\Desktop10.2               where as 10.1 was located in

c:\Program Files (x86)\ArcGIS\Desktop10.1

Also, my system paths are now all different for both python and Arc

>>> import sys

>>> sys.path

['', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\ArcGIS10.2\\DLLs', 'C:\\Python27\\ArcGIS10.2\\lib', 'C:\\Python27\\ArcGIS10.2\\lib\\plat-win', 'C:\\Python27\\ArcGIS10.2\\lib\\lib-tk', 'C:\\Python27\\ArcGIS10.2\\Lib\\site-packages\\pythonwin', 'C:\\Python27\\ArcGIS10.2', 'C:\\Python27\\ArcGIS10.2\\lib\\site-packages', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\bin', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\arcpy', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.2\\ArcToolbox\\Scripts', 'C:\\Python27\\ArcGIS10.2\\lib\\site-packages\\win32', 'C:\\Python27\\ArcGIS10.2\\lib\\site-packages\\win32\\lib']

Other changes are obviously made to default folders and the registry, so you need to know where things were being saved before and where they should be located now

0 Kudos