laptop and a wrench

Bug

Python toolbox tools will eventually fail with [Errno 9] "Bad file descriptor" if print statements are used within loops.

Last Published: August 25, 2014 ArcGIS for Desktop
Bug ID Number NIM088273
SubmittedJanuary 22, 2013
Last ModifiedJune 5, 2024
Applies toArcGIS for Desktop
Version found10.1
Operating SystemWindows OS
Operating System Version7
Version Fixed10.2.1
StatusFixed

Workaround

1. Comment out (or remove) print statements in the script for the Python toolbox.-or-2. Wrap print statements in a try/except like below: try: print "some statement" except IOError: pass

Steps to Reproduce

Bug ID: NIM088273

Software:

  • ArcGIS for Desktop

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options