[Numpy-discussion] ANN: 1.8.0b2 release.

Christoph Gohlke cgohlke at uci.edu
Sun Sep 8 17:45:10 EDT 2013


On 9/8/2013 12:14 PM, Charles R Harris wrote:
> Hi all,
>
> I'm happy to announce the second beta release of Numpy 1.8.0. This
> release should solve the Windows problems encountered in the first beta.
> Many thanks to Christolph Gohlke and Julian Taylor for their hard work
> in getting those issues settled.
>
> It would be good if folks running OS X could try out this release and
> report any issues on the numpy-dev mailing list. Unfortunately the files
> still need to be installed from source as dmg files are not avalable at
> this time.
>
> Source tarballs and release notes can be found at
> https://sourceforge.net/projects/numpy/files/NumPy/1.8.0b2/. The Windows
> and OS X installers will follow when the infrastructure issues are dealt
> with.
>
> Chuck
>


Hello,

I tested numpy 1.8.0b2 with Visual Studio and Intel MKL on Python 2.7 
and 3.3 for Windows, 32 and 64 bit. There's only a single test failure 
on win-amd64-py3.3, which looks strange since the test expects a 
TypeError to be raised.

======================================================================
ERROR: test_record_no_hash (test_multiarray.TestRecord)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"X:\Python33\lib\site-packages\numpy\core\tests\test_multiarray.py", 
line 2464, in test_record_no_hash
     self.assertRaises(TypeError, hash, a[0])
   File "X:\Python33\lib\unittest\case.py", line 570, in assertRaises
     return context.handle('assertRaises', callableObj, args, kwargs)
   File "X:\Python33\lib\unittest\case.py", line 135, in handle
     callable_obj(*args, **kwargs)
   File "X:\Python33\lib\unittest\case.py", line 153, in __exit__
     self.obj_name))
TypeError: unhashable type: 'writeable void-scalar'




In case it is useful: there are a few failures in the scipy.io.matlab 
and scipy.fftpack modules when testing scipy 0.12.0 (built against numpy 
1.7.1) with numpy 1.8.0b2. I have not looked in detail.


On Python 3.3 only, 32 and 64 bit:

======================================================================
ERROR: test_mio.test_str_round
----------------------------------------------------------------------
Traceback (most recent call last):
   File "X:\Python33-x32\lib\site-packages\nose\case.py", line 198, in 
runTest
     self.test(*self.arg)
   File 
"X:\Python33-x32\lib\site-packages\scipy\io\matlab\tests\test_mio.py", 
line 923, in test_str_round
     savemat_future(stream, dict(a=in_from_str))
   File "X:\Python33-x32\lib\site-packages\scipy\io\matlab\mio.py", line 
270, in savemat
     MW.put_variables(mdict)
   File "X:\Python33-x32\lib\site-packages\scipy\io\matlab\mio5.py", 
line 866, in put_variables
     self._matrix_writer.write_top(var, asbytes(name), is_global)
   File "X:\Python33-x32\lib\site-packages\scipy\io\matlab\mio5.py", 
line 617, in write_top
     self.write(arr)
   File "X:\Python33-x32\lib\site-packages\scipy\io\matlab\mio5.py", 
line 652, in write
     self.write_char(narr, codec)
   File "X:\Python33-x32\lib\site-packages\scipy\io\matlab\mio5.py", 
line 698, in write_char
     arr = arr_to_chars(arr)
   File "X:\Python33-x32\lib\site-packages\scipy\io\matlab\miobase.py", 
line 392, in arr_to_chars
     buffer=arr)
ValueError: ndarray is not C-contiguous



On Python 2.7 only, 32 and 64 bit (this kind of error also occurs in the 
tests of pytables 3.3):

======================================================================
ERROR: test_mio.test_load('unicode', 
['X:\\Python27\\lib\\site-packages\\scipy\\io\\matlab\\tests\\data\\testunicode_7.1
_GLNX86.mat', 
'X:\\Python27\\lib\\site-packages\\scipy\\io\\matlab\\tests\\data\\testunicode_7.4_GLNX86.mat'], 
{'testuni
code': array([ u'Japanese: 
\n\u3059\u3079\u3066\u306e\u4eba\u9593\u306f\u3001\u751f\u307e\u308c\u306a\u304c\u3089\u306b\
u3057\u3066\u81ea\u7531\u3067\u3042\u308a\u3001\n\u304b\u3064\u3001\u5c0a\u53b3\u3068\u6a29\u5229\u3068 
\u306b\u3064\u30
44\u3066\u5e73\u7b49\u3067\u3042\u308b\u3002\n\u4eba\u9593\u306f\u3001\u7406\u6027\u3068\u826f\u5fc3\u3068\u3092\u6388\u
3051\u3089\u308c\u3066\u304a\u308a\u3001\n\u4e92\u3044\u306b\u540c\u80de\u306e\u7cbe\u795e\u3092\u3082\u3063\u3066\u884c
\u52d5\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002'],
----------------------------------------------------------------------
Traceback (most recent call last):
   File "X:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
     self.test(*self.arg)
   File 
"X:\Python27\lib\site-packages\scipy\io\matlab\tests\test_mio.py", line 
314, in _load_check_case
     matdict = loadmat(file_name, struct_as_record=True)
   File "X:\Python27\lib\site-packages\scipy\io\matlab\mio.py", line 
176, in loadmat
     matfile_dict = MR.get_variables(variable_names)
   File "X:\Python27\lib\site-packages\scipy\io\matlab\mio5.py", line 
294, in get_variables
     res = self.read_var_array(hdr, process)
   File "X:\Python27\lib\site-packages\scipy\io\matlab\mio5.py", line 
257, in read_var_array
     return self._matrix_reader.array_from_header(header, process)
   File "mio5_utils.pyx", line 624, in 
scipy.io.matlab.mio5_utils.VarReader5.array_from_header 
(scipy\io\matlab\mio5_utils.c:5922)
   File "mio5_utils.pyx", line 665, in 
scipy.io.matlab.mio5_utils.VarReader5.array_from_header 
(scipy\io\matlab\mio5_utils.c:5479)
   File "mio5_utils.pyx", line 822, in 
scipy.io.matlab.mio5_utils.VarReader5.read_char 
(scipy\io\matlab\mio5_utils.c:7325
)
TypeError: buffer is too small for requested array

======================================================================
ERROR: test_mio.test_round_trip('unicode_round_trip', {'testunicode': 
array([ u'Japanese: \n\u3059\u3079\u3066\u306e\u4e
ba\u9593\u306f\u3001\u751f\u307e\u308c\u306a\u304c\u3089\u306b\u3057\u3066\u81ea\u7531\u3067\u3042\u308a\u3001\n\u304b\u
3064\u3001\u5c0a\u53b3\u3068\u6a29\u5229\u3068 
\u306b\u3064\u3044\u3066\u5e73\u7b49\u3067\u3042\u308b\u3002\n\u4eba\u959
3\u306f\u3001\u7406\u6027\u3068\u826f\u5fc3\u3068\u3092\u6388\u3051\u3089\u308c\u3066\u304a\u308a\u3001\n\u4e92\u3044\u3
06b\u540c\u80de\u306e\u7cbe\u795e\u3092\u3082\u3063\u3066\u884c\u52d5\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3
044\u3002'],
----------------------------------------------------------------------
Traceback (most recent call last):
   File "X:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
     self.test(*self.arg)
   File 
"X:\Python27\lib\site-packages\scipy\io\matlab\tests\test_mio.py", line 
344, in _rt_check_case
     _load_check_case(name, [mat_stream], expected)
   File 
"X:\Python27\lib\site-packages\scipy\io\matlab\tests\test_mio.py", line 
314, in _load_check_case
     matdict = loadmat(file_name, struct_as_record=True)
   File "X:\Python27\lib\site-packages\scipy\io\matlab\mio.py", line 
176, in loadmat
     matfile_dict = MR.get_variables(variable_names)
   File "X:\Python27\lib\site-packages\scipy\io\matlab\mio5.py", line 
294, in get_variables
     res = self.read_var_array(hdr, process)
   File "X:\Python27\lib\site-packages\scipy\io\matlab\mio5.py", line 
257, in read_var_array
     return self._matrix_reader.array_from_header(header, process)
   File "mio5_utils.pyx", line 624, in 
scipy.io.matlab.mio5_utils.VarReader5.array_from_header 
(scipy\io\matlab\mio5_utils.c:5922)
   File "mio5_utils.pyx", line 665, in 
scipy.io.matlab.mio5_utils.VarReader5.array_from_header 
(scipy\io\matlab\mio5_utils.c:5479)
   File "mio5_utils.pyx", line 822, in 
scipy.io.matlab.mio5_utils.VarReader5.read_char 
(scipy\io\matlab\mio5_utils.c:7325
)
TypeError: buffer is too small for requested array



On Python 2.7 and 3.3, 32 bit only:

======================================================================
FAIL: test_basic.TestOverwrite.test_fft
----------------------------------------------------------------------
Traceback (most recent call last):
   File "X:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
     self.test(*self.arg)
   File 
"X:\Python27\lib\site-packages\scipy\fftpack\tests\test_basic.py", line 
714, in test_fft
     self._check_1d(fft, dtype, (16,), -1, overwritable)
   File 
"X:\Python27\lib\site-packages\scipy\fftpack\tests\test_basic.py", line 
709, in _check_1d
     should_overwrite=should_overwrite)
   File 
"X:\Python27\lib\site-packages\scipy\fftpack\tests\test_basic.py", line 
689, in _check
     raise AssertionError("no overwrite in %s" % sig)
AssertionError: no overwrite in fft(complex128(16,), 8, axis=-1, 
overwrite_x=True)

======================================================================
FAIL: test_basic.TestOverwrite.test_fftn
----------------------------------------------------------------------
Traceback (most recent call last):
   File "X:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
     self.test(*self.arg)
   File 
"X:\Python27\lib\site-packages\scipy\fftpack\tests\test_basic.py", line 
793, in test_fftn
     self._check_nd(fftn, dtype, overwritable)
   File 
"X:\Python27\lib\site-packages\scipy\fftpack\tests\test_basic.py", line 
776, in _check_nd
     self._check_nd_one(routine, dtype, (16,), None, overwritable)
   File 
"X:\Python27\lib\site-packages\scipy\fftpack\tests\test_basic.py", line 
768, in _check_nd_one
     should_overwrite=should_overwrite)
   File 
"X:\Python27\lib\site-packages\scipy\fftpack\tests\test_basic.py", line 
689, in _check
     raise AssertionError("no overwrite in %s" % sig)
AssertionError: no overwrite in fftn(complex128(16,), (8,), axis=None, 
overwrite_x=True)

======================================================================
FAIL: test_basic.TestOverwrite.test_ifft
----------------------------------------------------------------------
Traceback (most recent call last):
   File "X:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
     self.test(*self.arg)
   File 
"X:\Python27\lib\site-packages\scipy\fftpack\tests\test_basic.py", line 
721, in test_ifft
     self._check_1d(ifft, dtype, (16,), -1, overwritable)
   File 
"X:\Python27\lib\site-packages\scipy\fftpack\tests\test_basic.py", line 
709, in _check_1d
     should_overwrite=should_overwrite)
   File 
"X:\Python27\lib\site-packages\scipy\fftpack\tests\test_basic.py", line 
689, in _check
     raise AssertionError("no overwrite in %s" % sig)
AssertionError: no overwrite in ifft(complex128(16,), 8, axis=-1, 
overwrite_x=True)

======================================================================
FAIL: test_basic.TestOverwrite.test_ifftn
----------------------------------------------------------------------
Traceback (most recent call last):
   File "X:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
     self.test(*self.arg)
   File 
"X:\Python27\lib\site-packages\scipy\fftpack\tests\test_basic.py", line 
798, in test_ifftn
     self._check_nd(ifftn, dtype, overwritable)
   File 
"X:\Python27\lib\site-packages\scipy\fftpack\tests\test_basic.py", line 
776, in _check_nd
     self._check_nd_one(routine, dtype, (16,), None, overwritable)
   File 
"X:\Python27\lib\site-packages\scipy\fftpack\tests\test_basic.py", line 
768, in _check_nd_one
     should_overwrite=should_overwrite)
   File 
"X:\Python27\lib\site-packages\scipy\fftpack\tests\test_basic.py", line 
689, in _check
     raise AssertionError("no overwrite in %s" % sig)
AssertionError: no overwrite in ifftn(complex128(16,), (8,), axis=None, 
overwrite_x=True)


Christoph



More information about the NumPy-Discussion mailing list