[SciPy-user] building numpy fails

Steve Schmerler elcorto at gmx.net
Mon Apr 3 12:04:48 CDT 2006


Pearu Peterson wrote:
> 
> 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.
> 

Thanks. I should switch to python 2.4 anyway sometime soon ...

cheers,
steve


-- 
When danger or in doubt, run in circles, scream and shout.



More information about the SciPy-user mailing list