![](https://secure.gravatar.com/avatar/9b85a909fbfc71a3ea3275c7872e714d.jpg?s=120&d=mm&r=g)
On Mon, 3 Apr 2006, Steve Schmerler wrote:
Robert Kern wrote:
Steve Schmerler wrote:
The latest numpy svn checkout fails to build (Python 2.3.5) when trying to call tempfile.mktemp(). The module index says:
mktemp([suffix[, prefix[, dir]]]) Deprecated since release 2.3. Use mkstemp() instead. [...]
File "/home/elcorto/install/python/scipy/svn/numpy/numpy/distutils/exec_command.py", line 279, in _exec_command_posix tmpfile = tempfile.mktemp() AttributeError: 'module' object has no attribute 'mktemp'
Do you have a file tempfile.py sitting around that isn't the standard library's tempfile.py?
No.
I can reproduce this error with pyhton 2.3 but not with 2.4. So it seems to be a bug of import machinery of Python 2.3. I have commited a workaround to this problem to numpy svn. Pearu