Source: nibabel
Version: 2.3.1-1
Severity: serious
Justification: FTBFS on amd64
Tags: buster sid
Usertags: ftbfs-20181229 ftbfs-buster

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> make[2]: Entering directory '/<<PKGBUILDDIR>>'
> /bin/sh: 1: git: not found
> python2.7 setup.py config --noisy
> Missing optional package "dicom" provided by package "pydicom"; you may get 
> run-time errors
> running config
> python2.7 setup.py build
> Missing optional package "dicom" provided by package "pydicom"; you may get 
> run-time errors
> running build
> running build_py
> running build_scripts
> /<<PKGBUILDDIR>>/nibabel/checkwarns.py:19: FutureWarning: The checkwarns 
> module is deprecated and will be removed in nibabel v3.0
>   'in nibabel v3.0', FutureWarning)
> /usr/lib/python2.7/dist-packages/nose/importer.py:94: FutureWarning: We no 
> longer carry a copy of the 'six' package in nibabel; Please import the 'six' 
> package directly
>   mod = load_module(part_fqname, fh, filename, desc)
> /usr/lib/python2.7/dist-packages/nose/importer.py:94: FutureWarning: We will 
> remove this module from nibabel soon; Please use the 'minc1' module instead
>   mod = load_module(part_fqname, fh, filename, desc)
> /usr/lib/python2.7/dist-packages/nose/importer.py:94: UserWarning: The DICOM 
> readers are highly experimental, unstable, and only work for Siemens 
> time-series at the moment
> Please use with caution.  We would be grateful for your help in improving them
>   mod = load_module(part_fqname, fh, filename, desc)
> ........................................................................................................................../<<PKGBUILDDIR>>/nibabel/nifti1.py:1590:
>  UserWarning: Multiple slice orders satisfy: sequential increasing, 
> alternating increasing, alternating decreasing 2. Choosing the first one
>   % ', '.join(matching_labels)
> ................................................................SSSSSSSSSSS...............................................................................SSS.S...S...................................................................................S.....SSSS...S....................................../<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py:23:
>  FutureWarning: Conversion of the second argument of issubdtype from `bool` 
> to `np.generic` is deprecated. In future, it will be treated as `np.bool_ == 
> np.dtype(bool).type`.
>   np.issubdtype(obj.dtype, np.bool)))
> ........./<<PKGBUILDDIR>>/nibabel/streamlines/tractogram.py:776: Warning: 
> Number of streamlines will be determined manually by looping through the 
> streamlines. If you know the actual number of streamlines, you might want to 
> set it beforehand via `self.header.nb_streamlines`.
>   " `self.header.nb_streamlines`.", Warning)
> ..E.E.EE....EEEEE.EE.............................E.E.E............................................................................................E.........................................................................................................................................S....................................S.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S.........................................S........SSSSSSSSSSSSSS.............................................................S.............S..............................................................................S..........E..................E...................E..................E.................................S......................................................S.........................................SS........E..................E...................E..................E.................................S......................................................S...........................................E..................E...................E..................E................................................................................................................................................/<<PKGBUILDDIR>>/nibabel/tests/test_orientations.py:108:
>  FutureWarning: Using a non-tuple sequence for multidimensional indexing is 
> deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this 
> will be interpreted as an array index, `arr[np.array(seq)]`, which will 
> result either in an error or a different result.
>   vals = t_arr[list(o2t_pts.astype('i'))]
> ..........................................SSS.../usr/lib/python2.7/dist-packages/scipy/ndimage/interpolation.py:450:
>  UserWarning: The behaviour of affine_transform with a one-dimensional array 
> supplied for the matrix parameter has changed in scipy 0.18.0.
>   "The behaviour of affine_transform with a one-dimensional "
> ../<<PKGBUILDDIR>>/nibabel/processing.py:306: RuntimeWarning: invalid value 
> encountered in true_divide
>   vox_fwhm = fwhm / vox
> ...............S.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S....SEE.................................................................E....................................................................E.............................................../<<PKGBUILDDIR>>/nibabel/viewers.py:416:
>  FutureWarning: Using a non-tuple sequence for multidimensional indexing is 
> deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this 
> will be interpreted as an array index, `arr[np.array(seq)]`, which will 
> result either in an error or a different result.
>   vdata = self._data[idx].ravel()
> ..E..EE.......................................................................
> ======================================================================
> ERROR: test_load_simple_file 
> (nibabel.streamlines.tests.test_streamlines.TestLoadSave)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tests/test_streamlines.py", line 
> 152, in test_load_simple_file
>     lazy_load=lazy_load)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/__init__.py", line 96, in load
>     return tractogram_file.load(fileobj, lazy_load=lazy_load)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 154, in load
>     streamlines = ArraySequence(tck_reader)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 93, in 
> __init__
>     self.extend(iterable)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 239, in 
> extend
>     for e in elements:
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 436, in _read
>     pts.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_save_complex_file 
> (nibabel.streamlines.tests.test_streamlines.TestLoadSave)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tests/test_streamlines.py", line 
> 267, in test_save_complex_file
>     tfile = nib.streamlines.load(filename, lazy_load=False)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/__init__.py", line 96, in load
>     return tractogram_file.load(fileobj, lazy_load=lazy_load)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 154, in load
>     streamlines = ArraySequence(tck_reader)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 93, in 
> __init__
>     self.extend(iterable)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 239, in 
> extend
>     for e in elements:
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 436, in _read
>     pts.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_save_from_generator 
> (nibabel.streamlines.tests.test_streamlines.TestLoadSave)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tests/test_streamlines.py", line 
> 289, in test_save_from_generator
>     tfile = nib.streamlines.load(filename, lazy_load=False)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/__init__.py", line 96, in load
>     return tractogram_file.load(fileobj, lazy_load=lazy_load)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 154, in load
>     streamlines = ArraySequence(tck_reader)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 93, in 
> __init__
>     self.extend(iterable)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 239, in 
> extend
>     for e in elements:
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 436, in _read
>     pts.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_save_simple_file 
> (nibabel.streamlines.tests.test_streamlines.TestLoadSave)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tests/test_streamlines.py", line 
> 229, in test_save_simple_file
>     tfile = nib.streamlines.load(filename, lazy_load=False)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/__init__.py", line 96, in load
>     return tractogram_file.load(fileobj, lazy_load=lazy_load)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 154, in load
>     streamlines = ArraySequence(tck_reader)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 93, in 
> __init__
>     self.extend(iterable)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 239, in 
> extend
>     for e in elements:
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 436, in _read
>     pts.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_load_file_with_wrong_information 
> (nibabel.streamlines.tests.test_tck.TestTCK)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tests/test_tck.py", line 103, in 
> test_load_file_with_wrong_information
>     tck = TckFile.load(BytesIO(new_tck_file))
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 154, in load
>     streamlines = ArraySequence(tck_reader)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 93, in 
> __init__
>     self.extend(iterable)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 239, in 
> extend
>     for e in elements:
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 436, in _read
>     pts.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_load_simple_file (nibabel.streamlines.tests.test_tck.TestTCK)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tests/test_tck.py", line 54, in 
> test_load_simple_file
>     tck = TckFile.load(DATA['simple_tck_fname'], lazy_load=lazy_load)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 154, in load
>     streamlines = ArraySequence(tck_reader)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 93, in 
> __init__
>     self.extend(iterable)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 239, in 
> extend
>     for e in elements:
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 436, in _read
>     pts.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_load_simple_file_in_big_endian 
> (nibabel.streamlines.tests.test_tck.TestTCK)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tests/test_tck.py", line 81, in 
> test_load_simple_file_in_big_endian
>     lazy_load=lazy_load)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 154, in load
>     streamlines = ArraySequence(tck_reader)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 93, in 
> __init__
>     self.extend(iterable)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 239, in 
> extend
>     for e in elements:
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 436, in _read
>     pts.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_load_write_file (nibabel.streamlines.tests.test_tck.TestTCK)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tests/test_tck.py", line 188, in 
> test_load_write_file
>     tck = TckFile.load(fname, lazy_load=lazy_load)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 154, in load
>     streamlines = ArraySequence(tck_reader)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 93, in 
> __init__
>     self.extend(iterable)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 239, in 
> extend
>     for e in elements:
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 436, in _read
>     pts.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_str (nibabel.streamlines.tests.test_tck.TestTCK)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tests/test_tck.py", line 216, in 
> test_str
>     tck = TckFile.load(DATA['simple_tck_fname'])
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 154, in load
>     streamlines = ArraySequence(tck_reader)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 93, in 
> __init__
>     self.extend(iterable)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 239, in 
> extend
>     for e in elements:
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 436, in _read
>     pts.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_write_simple_file (nibabel.streamlines.tests.test_tck.TestTCK)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tests/test_tck.py", line 165, in 
> test_write_simple_file
>     new_tck = TckFile.load(tck_file)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 154, in load
>     streamlines = ArraySequence(tck_reader)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 93, in 
> __init__
>     self.extend(iterable)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 239, in 
> extend
>     for e in elements:
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 436, in _read
>     pts.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_writeable_data (nibabel.streamlines.tests.test_tck.TestTCK)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tests/test_tck.py", line 71, in 
> test_writeable_data
>     tck = TckFile.load(DATA[key], lazy_load=lazy_load)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 154, in load
>     streamlines = ArraySequence(tck_reader)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 93, in 
> __init__
>     self.extend(iterable)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 239, in 
> extend
>     for e in elements:
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 436, in _read
>     pts.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_load_complex_file_in_big_endian 
> (nibabel.streamlines.tests.test_trk.TestTRK)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tests/test_trk.py", line 194, in 
> test_load_complex_file_in_big_endian
>     'complex_trk_big_endian_fname', endian='>')
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tests/test_trk.py", line 109, in 
> trk_with_bytes
>     trk_struct.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_load_file_with_wrong_information 
> (nibabel.streamlines.tests.test_trk.TestTRK)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tests/test_trk.py", line 114, in 
> test_load_file_with_wrong_information
>     trk_struct1, trk_bytes1 = self.trk_with_bytes()
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tests/test_trk.py", line 109, in 
> trk_with_bytes
>     trk_struct.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_load_trk_version_1 (nibabel.streamlines.tests.test_trk.TestTRK)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tests/test_trk.py", line 178, in 
> test_load_trk_version_1
>     trk_struct, trk_bytes = self.trk_with_bytes()
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tests/test_trk.py", line 109, in 
> trk_with_bytes
>     trk_struct.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_big_offset_exts (nibabel.tests.test_analyze.TestAnalyzeImage)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_analyze.py", line 809, in 
> test_big_offset_exts
>     assert_array_equal(arr, img_back.dataobj)
>   File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", 
> line 872, in assert_array_equal
>     verbose=verbose, header='Arrays are not equal')
>   File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", 
> line 692, in assert_array_compare
>     y = array(y, copy=False, subok=True)
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 356, in __array__
>     raw_data = self.get_unscaled()
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 351, in get_unscaled
>     mmap=self._mmap)
>   File "/<<PKGBUILDDIR>>/nibabel/volumeutils.py", line 543, in array_from_file
>     arr.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_big_offset_exts (nibabel.tests.test_nifti1.TestNifti1Image)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_analyze.py", line 809, in 
> test_big_offset_exts
>     assert_array_equal(arr, img_back.dataobj)
>   File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", 
> line 872, in assert_array_equal
>     verbose=verbose, header='Arrays are not equal')
>   File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", 
> line 692, in assert_array_compare
>     y = array(y, copy=False, subok=True)
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 356, in __array__
>     raw_data = self.get_unscaled()
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 351, in get_unscaled
>     mmap=self._mmap)
>   File "/<<PKGBUILDDIR>>/nibabel/volumeutils.py", line 543, in array_from_file
>     arr.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_load_save (nibabel.tests.test_nifti1.TestNifti1Image)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_nifti1.py", line 971, in 
> test_load_save
>     assert_array_equal(img3.get_data(), data)
>   File "/<<PKGBUILDDIR>>/nibabel/dataobj_images.py", line 202, in get_data
>     data = np.asanyarray(self._dataobj)
>   File "/usr/lib/python2.7/dist-packages/numpy/core/numeric.py", line 591, in 
> asanyarray
>     return array(a, dtype, copy=False, order=order, subok=True)
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 356, in __array__
>     raw_data = self.get_unscaled()
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 351, in get_unscaled
>     mmap=self._mmap)
>   File "/<<PKGBUILDDIR>>/nibabel/volumeutils.py", line 543, in array_from_file
>     arr.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_big_offset_exts (nibabel.tests.test_nifti1.TestNifti1Pair)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_analyze.py", line 809, in 
> test_big_offset_exts
>     assert_array_equal(arr, img_back.dataobj)
>   File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", 
> line 872, in assert_array_equal
>     verbose=verbose, header='Arrays are not equal')
>   File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", 
> line 692, in assert_array_compare
>     y = array(y, copy=False, subok=True)
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 356, in __array__
>     raw_data = self.get_unscaled()
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 351, in get_unscaled
>     mmap=self._mmap)
>   File "/<<PKGBUILDDIR>>/nibabel/volumeutils.py", line 543, in array_from_file
>     arr.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_load_save (nibabel.tests.test_nifti1.TestNifti1Pair)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_nifti1.py", line 971, in 
> test_load_save
>     assert_array_equal(img3.get_data(), data)
>   File "/<<PKGBUILDDIR>>/nibabel/dataobj_images.py", line 202, in get_data
>     data = np.asanyarray(self._dataobj)
>   File "/usr/lib/python2.7/dist-packages/numpy/core/numeric.py", line 591, in 
> asanyarray
>     return array(a, dtype, copy=False, order=order, subok=True)
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 356, in __array__
>     raw_data = self.get_unscaled()
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 351, in get_unscaled
>     mmap=self._mmap)
>   File "/<<PKGBUILDDIR>>/nibabel/volumeutils.py", line 543, in array_from_file
>     arr.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_big_offset_exts (nibabel.tests.test_nifti2.TestNifti1Image)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_analyze.py", line 809, in 
> test_big_offset_exts
>     assert_array_equal(arr, img_back.dataobj)
>   File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", 
> line 872, in assert_array_equal
>     verbose=verbose, header='Arrays are not equal')
>   File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", 
> line 692, in assert_array_compare
>     y = array(y, copy=False, subok=True)
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 356, in __array__
>     raw_data = self.get_unscaled()
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 351, in get_unscaled
>     mmap=self._mmap)
>   File "/<<PKGBUILDDIR>>/nibabel/volumeutils.py", line 543, in array_from_file
>     arr.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_load_save (nibabel.tests.test_nifti2.TestNifti1Image)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_nifti1.py", line 971, in 
> test_load_save
>     assert_array_equal(img3.get_data(), data)
>   File "/<<PKGBUILDDIR>>/nibabel/dataobj_images.py", line 202, in get_data
>     data = np.asanyarray(self._dataobj)
>   File "/usr/lib/python2.7/dist-packages/numpy/core/numeric.py", line 591, in 
> asanyarray
>     return array(a, dtype, copy=False, order=order, subok=True)
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 356, in __array__
>     raw_data = self.get_unscaled()
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 351, in get_unscaled
>     mmap=self._mmap)
>   File "/<<PKGBUILDDIR>>/nibabel/volumeutils.py", line 543, in array_from_file
>     arr.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_big_offset_exts (nibabel.tests.test_nifti2.TestNifti1Pair)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_analyze.py", line 809, in 
> test_big_offset_exts
>     assert_array_equal(arr, img_back.dataobj)
>   File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", 
> line 872, in assert_array_equal
>     verbose=verbose, header='Arrays are not equal')
>   File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", 
> line 692, in assert_array_compare
>     y = array(y, copy=False, subok=True)
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 356, in __array__
>     raw_data = self.get_unscaled()
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 351, in get_unscaled
>     mmap=self._mmap)
>   File "/<<PKGBUILDDIR>>/nibabel/volumeutils.py", line 543, in array_from_file
>     arr.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_load_save (nibabel.tests.test_nifti2.TestNifti1Pair)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_nifti1.py", line 971, in 
> test_load_save
>     assert_array_equal(img3.get_data(), data)
>   File "/<<PKGBUILDDIR>>/nibabel/dataobj_images.py", line 202, in get_data
>     data = np.asanyarray(self._dataobj)
>   File "/usr/lib/python2.7/dist-packages/numpy/core/numeric.py", line 591, in 
> asanyarray
>     return array(a, dtype, copy=False, order=order, subok=True)
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 356, in __array__
>     raw_data = self.get_unscaled()
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 351, in get_unscaled
>     mmap=self._mmap)
>   File "/<<PKGBUILDDIR>>/nibabel/volumeutils.py", line 543, in array_from_file
>     arr.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_big_offset_exts (nibabel.tests.test_nifti2.TestNifti2Image)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_analyze.py", line 809, in 
> test_big_offset_exts
>     assert_array_equal(arr, img_back.dataobj)
>   File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", 
> line 872, in assert_array_equal
>     verbose=verbose, header='Arrays are not equal')
>   File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", 
> line 692, in assert_array_compare
>     y = array(y, copy=False, subok=True)
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 356, in __array__
>     raw_data = self.get_unscaled()
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 351, in get_unscaled
>     mmap=self._mmap)
>   File "/<<PKGBUILDDIR>>/nibabel/volumeutils.py", line 543, in array_from_file
>     arr.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_load_save (nibabel.tests.test_nifti2.TestNifti2Image)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_nifti1.py", line 971, in 
> test_load_save
>     assert_array_equal(img3.get_data(), data)
>   File "/<<PKGBUILDDIR>>/nibabel/dataobj_images.py", line 202, in get_data
>     data = np.asanyarray(self._dataobj)
>   File "/usr/lib/python2.7/dist-packages/numpy/core/numeric.py", line 591, in 
> asanyarray
>     return array(a, dtype, copy=False, order=order, subok=True)
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 356, in __array__
>     raw_data = self.get_unscaled()
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 351, in get_unscaled
>     mmap=self._mmap)
>   File "/<<PKGBUILDDIR>>/nibabel/volumeutils.py", line 543, in array_from_file
>     arr.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_big_offset_exts (nibabel.tests.test_nifti2.TestNifti2Pair)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_analyze.py", line 809, in 
> test_big_offset_exts
>     assert_array_equal(arr, img_back.dataobj)
>   File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", 
> line 872, in assert_array_equal
>     verbose=verbose, header='Arrays are not equal')
>   File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", 
> line 692, in assert_array_compare
>     y = array(y, copy=False, subok=True)
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 356, in __array__
>     raw_data = self.get_unscaled()
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 351, in get_unscaled
>     mmap=self._mmap)
>   File "/<<PKGBUILDDIR>>/nibabel/volumeutils.py", line 543, in array_from_file
>     arr.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_load_save (nibabel.tests.test_nifti2.TestNifti2Pair)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_nifti1.py", line 971, in 
> test_load_save
>     assert_array_equal(img3.get_data(), data)
>   File "/<<PKGBUILDDIR>>/nibabel/dataobj_images.py", line 202, in get_data
>     data = np.asanyarray(self._dataobj)
>   File "/usr/lib/python2.7/dist-packages/numpy/core/numeric.py", line 591, in 
> asanyarray
>     return array(a, dtype, copy=False, order=order, subok=True)
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 356, in __array__
>     raw_data = self.get_unscaled()
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 351, in get_unscaled
>     mmap=self._mmap)
>   File "/<<PKGBUILDDIR>>/nibabel/volumeutils.py", line 543, in array_from_file
>     arr.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: nibabel.tests.test_scripts.test_nib_trk2tck
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_scripts.py", line 442, in 
> test_nib_trk2tck
>     tck = nib.streamlines.load(simple_tck)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/__init__.py", line 96, in load
>     return tractogram_file.load(fileobj, lazy_load=lazy_load)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 154, in load
>     streamlines = ArraySequence(tck_reader)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 93, in 
> __init__
>     self.extend(iterable)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 239, in 
> extend
>     for e in elements:
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 436, in _read
>     pts.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: nibabel.tests.test_scripts.test_nib_tck2trk
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_scripts.py", line 484, in 
> test_nib_tck2trk
>     code, stdout, stderr = run_command(cmd)
>   File "/<<PKGBUILDDIR>>/nibabel/tests/scriptrunner.py", line 166, in 
> run_command
>     """.format(cmd, stdout, stderr))
> RuntimeError: Command "['/usr/bin/python2.7', 
> '/<<PKGBUILDDIR>>/bin/nib-tck2trk', 
> '/<<PKGBUILDDIR>>/nibabel/tests/data/standard.nii.gz', 
> '/tmp/tmp7HbW5v/standard.tck']" failed with
>                 stdout
>                 ------
>                 
>                 stderr
>                 ------
>                 Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/bin/nib-tck2trk", line 18, in <module>
>     main()
>   File "/<<PKGBUILDDIR>>/nibabel/cmdline/tck2trk.py", line 55, in main
>     tck = nib.streamlines.load(tractogram)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/__init__.py", line 96, in load
>     return tractogram_file.load(fileobj, lazy_load=lazy_load)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 154, in load
>     streamlines = ArraySequence(tck_reader)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 93, in 
> __init__
>     self.extend(iterable)
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/array_sequence.py", line 239, in 
> extend
>     for e in elements:
>   File "/<<PKGBUILDDIR>>/nibabel/streamlines/tck.py", line 436, in _read
>     pts.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
>                 
> 
> ======================================================================
> ERROR: test_big_offset_exts 
> (nibabel.tests.test_spm2analyze.TestSpm2AnalyzeImage)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/usr/lib/python2.7/dist-packages/numpy/testing/_private/decorators.py", line 
> 155, in skipper_func
>     return f(*args, **kwargs)
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_analyze.py", line 809, in 
> test_big_offset_exts
>     assert_array_equal(arr, img_back.dataobj)
>   File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", 
> line 872, in assert_array_equal
>     verbose=verbose, header='Arrays are not equal')
>   File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", 
> line 692, in assert_array_compare
>     y = array(y, copy=False, subok=True)
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 356, in __array__
>     raw_data = self.get_unscaled()
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 351, in get_unscaled
>     mmap=self._mmap)
>   File "/<<PKGBUILDDIR>>/nibabel/volumeutils.py", line 543, in array_from_file
>     arr.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: test_big_offset_exts 
> (nibabel.tests.test_spm99analyze.TestSpm99AnalyzeImage)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File 
> "/usr/lib/python2.7/dist-packages/numpy/testing/_private/decorators.py", line 
> 155, in skipper_func
>     return f(*args, **kwargs)
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_analyze.py", line 809, in 
> test_big_offset_exts
>     assert_array_equal(arr, img_back.dataobj)
>   File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", 
> line 872, in assert_array_equal
>     verbose=verbose, header='Arrays are not equal')
>   File "/usr/lib/python2.7/dist-packages/numpy/testing/_private/utils.py", 
> line 692, in assert_array_compare
>     y = array(y, copy=False, subok=True)
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 356, in __array__
>     raw_data = self.get_unscaled()
>   File "/<<PKGBUILDDIR>>/nibabel/arrayproxy.py", line 351, in get_unscaled
>     mmap=self._mmap)
>   File "/<<PKGBUILDDIR>>/nibabel/volumeutils.py", line 543, in array_from_file
>     arr.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: nibabel.tests.test_volumeutils.test_fobj_string_assumptions
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_volumeutils.py", line 109, in 
> test_fobj_string_assumptions
>     out_arr = make_array(n, contents1)
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_volumeutils.py", line 89, in 
> make_array
>     arr.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: nibabel.tests.test_volumeutils.test_array_from_file_openers
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_volumeutils.py", line 240, in 
> test_array_from_file_openers
>     out_arr = array_from_file(shape, dtype, in_buf, offset)
>   File "/<<PKGBUILDDIR>>/nibabel/volumeutils.py", line 543, in array_from_file
>     arr.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ======================================================================
> ERROR: nibabel.tests.test_volumeutils.test_array_from_file_reread
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File "/<<PKGBUILDDIR>>/nibabel/tests/test_volumeutils.py", line 272, in 
> test_array_from_file_reread
>     out_arr = array_from_file(shape, dtt, fobj_r, offset, order)
>   File "/<<PKGBUILDDIR>>/nibabel/volumeutils.py", line 543, in array_from_file
>     arr.flags.writeable = True
> ValueError: cannot set WRITEABLE flag to True of this array
> 
> ----------------------------------------------------------------------
> Ran 7752 tests in 78.385s
> 
> FAILED (SKIP=55, errors=34)
> make[2]: *** [Makefile:94: unittest] Error 1

The full build log is available from:
   http://aws-logs.debian.net/2018/12/29/nibabel_2.3.1-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.

Reply via email to