[SciPy-user] building numpy fails

Steve Schmerler elcorto at gmx.net
Sun Apr 2 18:13:04 CDT 2006


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.

elcorto at ramrod:~/install/python/matplotlib$ sudo updatedb
Password:
elcorto at ramrod:~/install/python/matplotlib$ locate tempfile.py
/usr/lib/python2.3/tempfile.py
/usr/lib/python2.3/tempfile.pyc
/usr/lib/python2.3/tempfile.pyo
/usr/share/reportbug/rbtempfile.py
/usr/share/reportbug/rbtempfile.pyc
/usr/share/reportbug/rbtempfile.pyo

numpy 0.9.6 from sourceforge builds just fine.

cheers,
steve

-- 
Random number generation is the art of producing pure gibberish as 
quickly as possible.



More information about the SciPy-user mailing list