[Numpy-discussion] 3K: fromfile/tofile errors on Windows

Ralf Gommers ralf.gommers@googlemail....
Sat Aug 14 02:01:46 CDT 2010


======================================================================
ERROR: test_multiarray.TestIO.test_ascii
----------------------------------------------------------------------
Traceback (most recent call last):
 File
"Z:\Users\rgommers\.wine\drive_c\Python31\lib\site-packages\nose-3.0.0.dev-py3.1.egg\nose\case.py",
line 178, in runTest
   self.test(*self.arg)
 File
"Z:\Users\rgommers\.wine\drive_c\Python31\lib\site-packages\numpy\core\tests\test_multiarray.py",
line 1017, in test_ascii
   self._check_from('1 , 2 , 3 , 4', [1.,2.,3.,4.], sep=',')
 File
"Z:\Users\rgommers\.wine\drive_c\Python31\lib\site-packages\numpy\core\tests\test_multiarray.py",
line 980, in _check_from
   y = np.fromfile(self.filename, **kw)
IOError: first argument must be an open file

======================================================================
ERROR: test_multiarray.TestIO.test_ascii
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"Z:\Users\rgommers\.wine\drive_c\Python31\lib\site-packages\nose-3.0.0.dev-py3.1.egg\nose\case.py",
line 370, in tearDown
    try_run(self.inst, ('teardown', 'tearDown'))
  File
"Z:\Users\rgommers\.wine\drive_c\Python31\lib\site-packages\nose-3.0.0.dev-py3.1.egg\nose\util.py",
line 469, in try_run
    return func()
  File
"Z:\Users\rgommers\.wine\drive_c\Python31\lib\site-packages\numpy\core\tests\test_multiarray.py",
line 918, in tearDown
    os.unlink(self.filename)
WindowsError: [Error 32] Sharing violation:
'z:\\var\\folders\\uu\\uuxfo1nlfae4yyypscz-xe+++ti\\-tmp-\\tmpdtktwh'


And 18 more like that. These are the only errors with 1.5.x and Python 3.1.2
on Windows XP. Ticket: http://projects.scipy.org/numpy/ticket/1583. Anyone
have an idea?

Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100814/fdaab285/attachment-0001.html 


More information about the NumPy-Discussion mailing list