Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> arcpy.CopyFeatures_management(polygon, ShapeFile_prj) File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\management.py", line 1943, in CopyFeatures raise eAttributeError: <unprintable AttributeError object>
>>> polygon <Polygon object at 0xf34f550[0x347d9e0]> >>> ShapeFile_prj 'F:\\vector\\Biboohra_Koah\\25cm\\TPE0_330000_8135000_1k_cont.shp' >>>
try: print("Place code here") except arcpy.ExecuteError: Errors = "TRUE" print("An error occurred during geoprocessing:") print(arcpy.GetMessages(2)) except Exception as ErrorDesc: Errors = "TRUE" print("An unknown error occurred:") print(ErrorDesc.message)
try: print("Place code here") except arcpy.ExecuteError: Errors = "TRUE" logger.error("An error occurred during geoprocessing:") logger.error(arcpy.GetMessages(2)) except Exception as ErrorDesc: Errors = "TRUE" logger.error("An unknown error occurred:") logger.error(ErrorDesc.message)
Can you paste a full traceback?
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.