[SciPy-user] building numpy fails

Pearu Peterson pearu at scipy.org
Mon Apr 3 09:31:30 CDT 2006



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



More information about the SciPy-user mailing list