Currently, tempfile module doesn't import on IronPython for various reasons. If you only need tempfile.mktemp, this should be enough: # tempfile.py import System mktemp = System.IO.Path.GetTempFileName Seo Sanghyeon