Updated. Some progress....
I just changed my licence to a (newly setup) ArcView Floating licence via ArcGIS Administrator.
Bingo. IDLE imported arcpy with no errors = therefore, clearly there is a problem with IDLE recognising the single use licence.
Unfortunately, I do not have access any extensions over the floating licence, which are essential to my work, therefore need to get the single use licence working!
After changing back to singleuse ArcView in ArcGIS Administrator, and reopening a shell causes me to get the import arcpy error again.
However, keeping the IDLE shell open even after resetting to singleuse still allows me to carry on calling arcpy functions and classes. Once arcpy is successfully imported I guess it continues to function until the IDLE session ends.
Is there anyway to interrogate/analyse my setup or possible problems when I've set the using python using the concurrent licence. Any traceback options?
After a successful import arcpy using the floating licence. I tried sys.path, see below. The first entry is a .py that I launched from the IDLE - I'll assume that's normal?
Successfully imported arcpy using floating licence:
import sys
sys.path
['W:\\Projects\\GIS\\_GISRoot\\GISUtilities\\code\\python\\scripts\\updateTextElements', 'C:\\Python26\\ArcGIS10.0\\Lib\\idlelib', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.0\\bin', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.0\\arcpy', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.0\\ArcToolbox\\Scripts', 'C:\\Windows\\system32\\python26.zip', 'C:\\Python26\\ArcGIS10.0\\DLLs', 'C:\\Python26\\ArcGIS10.0\\lib', 'C:\\Python26\\ArcGIS10.0\\lib\\plat-win', 'C:\\Python26\\ArcGIS10.0\\lib\\lib-tk', 'C:\\Python26\\ArcGIS10.0', 'C:\\Python26\\ArcGIS10.0\\lib\\site-packages']
Failed import arcpy using singleuse licence:
>>> import sys
>>> sys.path
['C:\\Windows\\system32', 'C:\\Python26\\ArcGIS10.0\\Lib\\idlelib', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.0\\bin', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.0\\arcpy', 'C:\\Program Files (x86)\\ArcGIS\\Desktop10.0\\ArcToolbox\\Scripts', 'C:\\Windows\\system32\\python26.zip', 'C:\\Python26\\ArcGIS10.0\\DLLs', 'C:\\Python26\\ArcGIS10.0\\lib', 'C:\\Python26\\ArcGIS10.0\\lib\\plat-win', 'C:\\Python26\\ArcGIS10.0\\lib\\lib-tk', 'C:\\Python26\\ArcGIS10.0', 'C:\\Python26\\ArcGIS10.0\\lib\\site-packages']
Anything incorrect here? Anyone think of another way to test this?
Getting close?! Cheers - Sam