I guess my IDE stringifies that NameError, leading to what I see. Reply 0 Kudos Related ArcPy Scalebar Implementation Issue Working with labels using arcpy SystemError: error return without exception set Problem creating function containing CalculateFiel... Activate map frame arcpy ...
classLicenseError(Exception):pass# Set desktop license used to ArcGIS for Desktop Basic#importarcviewimportarcpyfromarcpyimportenvtry:ifarcpy.CheckExtension("3D") =="Available":arcpy.CheckOutExtension("3D")else:# Raise a custom exception #raiseLicenseErrorenv.workspace ="D:/GrosMorne"arcpy.HillShade...
import arcpy class CustomError(Exception): pass def convert_time_units_to_nax(time_units_str): """Convert string-based time units to the correct arcpy.nax enum.""" if time_units_str == "Hours": return arcpy.nax.TimeUnits.Hours if time_units_str == "Minutes": return arcpy.nax....
exportFeatureSet(drive_times, gp_res.value) A note about input Geometries restapi will try to use arcpy first if you have it, otherwise will defer to open source. Both support the reading of shapefiles to return the first feature back as a restapi.Geometry object It also supports arcpy ...
Have you tried to capture the error explicitly? import_arcpy = False while import_arcpy == False: try: import arcpy import_arcpy = True except Exception as e: for error in e: if error == 'No module named arcpy': continue Edited: Oh I see in your code that you set arcpy_...
* */ var setDefaultLang = function(code){ /* V1.1: 2*/ return $http.get("/plugins/custom/esri/esri/language_ep_update_settings?mode=langSet&xslt=json.xsl&code="+code).then(function(result){ return "success"; }, function(result){ return "Error. Please retry after some time"; ...