Your message dated Sat, 09 Apr 2016 10:00:55 +0000
with message-id <e1aophh-0002gf...@franck.debian.org>
and subject line Bug#813932: fixed in python-numpy 1:1.11.0-1
has caused the Debian Bug report #813932,
regarding TypeError: 'float' object cannot be interpreted as an index
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
813932: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=813932
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: healpy
Version: 1.8.1-1.1
Severity: serious
Justification: fails to build from source
User: reproducible-bui...@lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Dear Maintainer,

healpy fails to build from source in unstable/amd64:

  [..]

  
      def update(self, *args, **kwargs):
          """
              Update the Header with new keyword values, updating the values of
              existing keywords and appending new keywords otherwise; similar to
              `dict.update`.
      
              `update` accepts either a dict-like object or an iterable.  In the
              former case the keys must be header keywords and the values may be
              either scalar values or (value, comment) tuples.  In the case of 
an
              iterable the items must be (keyword, value) tuples or (keyword, 
value,
              comment) tuples.
      
              Arbitrary arguments are also accepted, in which case the update() 
is
              called again with the kwargs dict as its only argument.  That is,
      
              ::
      
                  >>> header.update(NAXIS1=100, NAXIS2=100)
      
              is equivalent to::
      
                  >>> header.update({'NAXIS1': 100, 'NAXIS2': 100})
              """
      
          if args:
              other = args[0]
          else:
              other = None
      
          def update_from_dict(k, v):
              if not isinstance(v, tuple):
                  card = Card(k, v)
              elif 0 < len(v) <= 2:
                  card = Card(*((k,) + v))
              else:
                  raise ValueError(
                      'Header update value for key %r is invalid; the value '
                      'must be either a scalar, a 1-tuple containing the '
                      'scalar value, or a 2-tuple containing the value and a '
                      'comment string.' % k)
              self._update(card)
      
          if other is None:
              pass
          elif hasattr(other, 'iteritems'):
              for k, v in other.iteritems():
                  update_from_dict(k, v)
          elif hasattr(other, 'keys'):
              for k in other.keys():
                  update_from_dict(k, other[k])
          else:
              for idx, card in enumerate(other):
                  if isinstance(card, Card):
                      self._update(card)
                  elif isinstance(card, tuple) and (1 < len(card) <= 3):
                      self._update(Card(*card))
                  else:
                      raise ValueError(
                          'Header update sequence item #%d is invalid; the '
                          'item must either be a 2-tuple containing a keyword '
                          'and value, or a 3-tuple containing a keyword, '
  >                       'value, and comment string.' % idx)
  E                   ValueError: Header update sequence item #0 is invalid; 
the item must either be a 2-tuple containing a keyword and value, or a 3-tuple 
containing a keyword, value, and comment string.
  
  /usr/lib/python2.7/dist-packages/pyfits/header.py:1017: ValueError
  ____________________ TestReadWriteCl.test_write_read_cl_II 
_____________________
  
  self = <healpy.test.test_fitsfunc.TestReadWriteCl 
testMethod=test_write_read_cl_II>
  
      def test_write_read_cl_II(self):
          cl = np.arange(1025, dtype=np.double)
  >       write_cl("test_cl.fits", cl)
  
  healpy/test/test_fitsfunc.py:84: 
  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ 
  healpy/fitsfunc.py:86: in write_cl
      tbhdu.header.update('CREATOR','healpy')
  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ 
  
  self = XTENSION= 'BINTABLE'           / binary table extension                
       ...FORM1  = 'D       '                                                   
         
  args = ('CREATOR', 'healpy'), kwargs = {}, other = 'CREATOR'
  update_from_dict = <function update_from_dict at 0x7f056f4b20c8>, idx = 0
  card = 'C'
  
      def update(self, *args, **kwargs):
          """
              Update the Header with new keyword values, updating the values of
              existing keywords and appending new keywords otherwise; similar to
              `dict.update`.
      
              `update` accepts either a dict-like object or an iterable.  In the
              former case the keys must be header keywords and the values may be
              either scalar values or (value, comment) tuples.  In the case of 
an
              iterable the items must be (keyword, value) tuples or (keyword, 
value,
              comment) tuples.
      
              Arbitrary arguments are also accepted, in which case the update() 
is
              called again with the kwargs dict as its only argument.  That is,
      
              ::
      
                  >>> header.update(NAXIS1=100, NAXIS2=100)
      
              is equivalent to::
      
                  >>> header.update({'NAXIS1': 100, 'NAXIS2': 100})
              """
      
          if args:
              other = args[0]
          else:
              other = None
      
          def update_from_dict(k, v):
              if not isinstance(v, tuple):
                  card = Card(k, v)
              elif 0 < len(v) <= 2:
                  card = Card(*((k,) + v))
              else:
                  raise ValueError(
                      'Header update value for key %r is invalid; the value '
                      'must be either a scalar, a 1-tuple containing the '
                      'scalar value, or a 2-tuple containing the value and a '
                      'comment string.' % k)
              self._update(card)
      
          if other is None:
              pass
          elif hasattr(other, 'iteritems'):
              for k, v in other.iteritems():
                  update_from_dict(k, v)
          elif hasattr(other, 'keys'):
              for k in other.keys():
                  update_from_dict(k, other[k])
          else:
              for idx, card in enumerate(other):
                  if isinstance(card, Card):
                      self._update(card)
                  elif isinstance(card, tuple) and (1 < len(card) <= 3):
                      self._update(Card(*card))
                  else:
                      raise ValueError(
                          'Header update sequence item #%d is invalid; the '
                          'item must either be a 2-tuple containing a keyword '
                          'and value, or a 3-tuple containing a keyword, '
  >                       'value, and comment string.' % idx)
  E                   ValueError: Header update sequence item #0 is invalid; 
the item must either be a 2-tuple containing a keyword and value, or a 3-tuple 
containing a keyword, value, and comment string.
  
  /usr/lib/python2.7/dist-packages/pyfits/header.py:1017: ValueError
  _____________________ TestNoCrash.test_orthview_ma_nocrash 
_____________________
  
  self = <healpy.test.test_visufunc.TestNoCrash 
testMethod=test_orthview_ma_nocrash>
  
      def test_orthview_ma_nocrash(self):
  >       orthview(self.ma)
  
  healpy/test/test_visufunc.py:42: 
  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ 
  healpy/visufunc.py:708: in orthview
      cmap=cmap,norm=norm)
  healpy/projaxes.py:700: in projmap
      return super(HpxOrthographicAxes,self).projmap(map,f,**kwds)
  healpy/projaxes.py:689: in projmap
      img = super(OrthographicAxes,self).projmap(map,vec2pix_func,**kwds)
  healpy/projaxes.py:154: in projmap
      img = self.proj.projmap(map,vec2pix_func,rot=rot,coord=coord)
  healpy/projector.py:168: in projmap
      x,y = self.ij2xy()
  healpy/projector.py:862: in ij2xy
      idx = np.outer(np.ones(ysize),np.arange(xsize))
  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ 
  
  shape = 400.0, dtype = None, order = 'C'
  
      def ones(shape, dtype=None, order='C'):
          """
          Return a new array of given shape and type, filled with ones.
      
          Parameters
          ----------
          shape : int or sequence of ints
              Shape of the new array, e.g., ``(2, 3)`` or ``2``.
          dtype : data-type, optional
              The desired data-type for the array, e.g., `numpy.int8`.  Default 
is
              `numpy.float64`.
          order : {'C', 'F'}, optional
              Whether to store multidimensional data in C- or Fortran-contiguous
              (row- or column-wise) order in memory.
      
          Returns
          -------
          out : ndarray
              Array of ones with the given shape, dtype, and order.
      
          See Also
          --------
          zeros, ones_like
      
          Examples
          --------
          >>> np.ones(5)
          array([ 1.,  1.,  1.,  1.,  1.])
      
          >>> np.ones((5,), dtype=np.int)
          array([1, 1, 1, 1, 1])
      
          >>> np.ones((2, 1))
          array([[ 1.],
                 [ 1.]])
      
          >>> s = (2,2)
          >>> np.ones(s)
          array([[ 1.,  1.],
                 [ 1.,  1.]])
      
          """
  >       a = empty(shape, dtype, order)
  E       TypeError: 'float' object cannot be interpreted as an index
  
  /usr/lib/python2.7/dist-packages/numpy/core/numeric.py:190: TypeError
  ______________________ TestNoCrash.test_orthview_nocrash 
_______________________
  
  self = <healpy.test.test_visufunc.TestNoCrash 
testMethod=test_orthview_nocrash>
  
      def test_orthview_nocrash(self):
  >       orthview(self.m)
  
  healpy/test/test_visufunc.py:27: 
  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ 
  healpy/visufunc.py:708: in orthview
      cmap=cmap,norm=norm)
  healpy/projaxes.py:700: in projmap
      return super(HpxOrthographicAxes,self).projmap(map,f,**kwds)
  healpy/projaxes.py:689: in projmap
      img = super(OrthographicAxes,self).projmap(map,vec2pix_func,**kwds)
  healpy/projaxes.py:154: in projmap
      img = self.proj.projmap(map,vec2pix_func,rot=rot,coord=coord)
  healpy/projector.py:168: in projmap
      x,y = self.ij2xy()
  healpy/projector.py:862: in ij2xy
      idx = np.outer(np.ones(ysize),np.arange(xsize))
  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ 
  
  shape = 400.0, dtype = None, order = 'C'
  
      def ones(shape, dtype=None, order='C'):
          """
          Return a new array of given shape and type, filled with ones.
      
          Parameters
          ----------
          shape : int or sequence of ints
              Shape of the new array, e.g., ``(2, 3)`` or ``2``.
          dtype : data-type, optional
              The desired data-type for the array, e.g., `numpy.int8`.  Default 
is
              `numpy.float64`.
          order : {'C', 'F'}, optional
              Whether to store multidimensional data in C- or Fortran-contiguous
              (row- or column-wise) order in memory.
      
          Returns
          -------
          out : ndarray
              Array of ones with the given shape, dtype, and order.
      
          See Also
          --------
          zeros, ones_like
      
          Examples
          --------
          >>> np.ones(5)
          array([ 1.,  1.,  1.,  1.,  1.])
      
          >>> np.ones((5,), dtype=np.int)
          array([1, 1, 1, 1, 1])
      
          >>> np.ones((2, 1))
          array([[ 1.],
                 [ 1.]])
      
          >>> s = (2,2)
          >>> np.ones(s)
          array([[ 1.,  1.],
                 [ 1.,  1.]])
      
          """
  >       a = empty(shape, dtype, order)
  E       TypeError: 'float' object cannot be interpreted as an index
  
  /usr/lib/python2.7/dist-packages/numpy/core/numeric.py:190: TypeError
  ================= 8 failed, 44 passed, 6 error in 6.95 seconds 
=================
  E: pybuild pybuild:274: test: plugin distutils failed with: exit code=1: cd 
/home/lamby/temp/cdt.20160205085031.zTViol37pi/healpy-1.8.1/.pybuild/pythonX.Y_2.7/build;
 python2.7 -m pytest 
  dh_auto_test: pybuild --test --test-pytest -i python{version} -p 2.7 --dir . 
returned exit code 13
  debian/rules:17: recipe for target 'override_dh_auto_test' failed
  make[1]: *** [override_dh_auto_test] Error 25
  make[1]: Leaving directory 
'/home/lamby/temp/cdt.20160205085031.zTViol37pi/healpy-1.8.1'
  debian/rules:6: recipe for target 'build' failed
  make: *** [build] Error 2

  [..]

The full build log is attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-

Attachment: healpy.1.8.1-1.1.unstable.amd64.log.txt.gz
Description: Binary data


--- End Message ---
--- Begin Message ---
Source: python-numpy
Source-Version: 1:1.11.0-1

We believe that the bug you reported is fixed in the latest version of
python-numpy, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 813...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sandro Tosi <mo...@debian.org> (supplier of updated python-numpy package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 09 Apr 2016 09:47:40 +0100
Source: python-numpy
Binary: python-numpy python-numpy-dbg python3-numpy python3-numpy-dbg 
python-numpy-doc
Architecture: source amd64 all
Version: 1:1.11.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team 
<python-modules-t...@lists.alioth.debian.org>
Changed-By: Sandro Tosi <mo...@debian.org>
Description:
 python-numpy - Numerical Python adds a fast array facility to the Python 
languag
 python-numpy-dbg - Fast array facility to the Python language (debug extension)
 python-numpy-doc - NumPy documentation
 python3-numpy - Fast array facility to the Python 3 language
 python3-numpy-dbg - Fast array facility to the Python 3 language (debug 
extension)
Closes: 813429 813932 816369 816574
Changes:
 python-numpy (1:1.11.0-1) unstable; urgency=medium
 .
   [ Sandro Tosi ]
   * New upstream release: Closes: #816369, #813429, #813932, #816574
   * debian/control
     - bump Standards-Version to 3.9.7 (no changes needed)
 .
   [ Ondřej Nový ]
   * Fixed VCS URL
Checksums-Sha1:
 761309df812f89a57af98b06124256f6381548a6 2661 python-numpy_1.11.0-1.dsc
 3e43596cba1d5df4002dd0c87d4041f31ea6e1b5 4169494 
python-numpy_1.11.0.orig.tar.gz
 76e3eb031cc337b52f1944536993c985b40b0f1e 141028 
python-numpy_1.11.0-1.debian.tar.xz
 75f8d925cd2547997617653c1ac6596ba79c8f61 3554480 
python-numpy-dbg_1.11.0-1_amd64.deb
 65dbc3c2f3ffeedc8fe629664125c585e4a16896 3573596 
python-numpy-doc_1.11.0-1_all.deb
 2b29971160f9b3d75d504359ead256c6b1cb94f7 1769802 
python-numpy_1.11.0-1_amd64.deb
 6d717f6930e5357e81115c916109e2e403ea7bd5 7056320 
python3-numpy-dbg_1.11.0-1_amd64.deb
 fa4f501571a0c0d6ddf75d6797ee3482c30c12e1 1769292 
python3-numpy_1.11.0-1_amd64.deb
Checksums-Sha256:
 783c07956322fa7e69123faccf074f2e52ca16fca91c9552b3b2999995737494 2661 
python-numpy_1.11.0-1.dsc
 a1d1268d200816bfb9727a7a27b78d8e37ecec2e4d5ebd33eb64e2789e0db43e 4169494 
python-numpy_1.11.0.orig.tar.gz
 ce6c761d2d555d8c0c522ce2734ae5fb406294a01bb46d685c980df94b9ca23c 141028 
python-numpy_1.11.0-1.debian.tar.xz
 c8a022b74c5591db466137a1e2c740fa99fd8cb1453a7d895ce4364161ec299d 3554480 
python-numpy-dbg_1.11.0-1_amd64.deb
 522a4b35163ef06cb13911769d39e4281ce5dcfac7c96164ee33974e248e11ce 3573596 
python-numpy-doc_1.11.0-1_all.deb
 dc2c027bd75b9994385445efe8422bf493144eb7f9c78730545f2aedd3e07d2a 1769802 
python-numpy_1.11.0-1_amd64.deb
 a3bbdb59c95a0414e386528a24fc24eb7d54a0031fe7dabc236af6d28c420e9a 7056320 
python3-numpy-dbg_1.11.0-1_amd64.deb
 df6376fe6b1016cadb5287e04c0723b6b164010621497edbda8941a7a0320ba8 1769292 
python3-numpy_1.11.0-1_amd64.deb
Files:
 bda73188757b92bad2234ab4dfa92724 2661 python optional python-numpy_1.11.0-1.dsc
 bc56fb9fc2895aa4961802ffbdb31d0b 4169494 python optional 
python-numpy_1.11.0.orig.tar.gz
 286e1c1fd3763e10b665af1d55e3fc7d 141028 python optional 
python-numpy_1.11.0-1.debian.tar.xz
 b586db4310ad920fc5c124ea2cfd79cf 3554480 debug extra 
python-numpy-dbg_1.11.0-1_amd64.deb
 f8e8b3f8f758d6de1ecd86e540cf69ef 3573596 doc optional 
python-numpy-doc_1.11.0-1_all.deb
 99b950a660ae47d048d8698ac4c32afb 1769802 python optional 
python-numpy_1.11.0-1_amd64.deb
 0e2fbab860b73e715fe7f8e6dc40339f 7056320 debug extra 
python3-numpy-dbg_1.11.0-1_amd64.deb
 a395795cb1b1d4baee85b7122eab66c2 1769292 python optional 
python3-numpy_1.11.0-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJXCMpgAAoJEIefPJk4AalPb5cP/iTO1XNLwxiGpn83+8ZTIbBm
yuEqDoUsPCyUN2bFfgJOoYWla9JPCCWuhhvw4hfHr27AliGqKqkEq70q/gV4P4FH
TtzWbO0tAFIPuMRNR2VTjn7HGLuO+9kEnDBfmmWiyKukvSyjNzBH/5fRc+PdHFx9
FdS8PY5Vohzkd1p/SWd9FHKJ0CGxoZZjpd13eb1XW2hQeWo2GmkffMsWayri+OCU
sheq14+RcyZCR8vU8/FioZmvI9FtwCDv4oEn5noBf5tswCvLb4AJSDqq+3KJoByj
m1F6n0C9hFjPYsu4YQjXqfKEpAQu74o6cDgw5oo0lO5+iEfo0V8aYKosrZwkkaKB
fs00UcCh6IRmyMz7rGq3fEvfYd8or4AYusTaBgIQcoFH0ziKGvYy+gars6rFDWuu
CJYlVd64PKydWfN/zyHvLr2/yZFeQixVfPMgXlRV8MLybGu96Gnfph90waNTfPz+
jUxk3ZVqi7+SyZY+vXXjZX+6vfH+05vUdx5s4Bz5FVo4DtH6ym6W9/x+xriPDDxz
cVIwShvrG4T8oPiBQvq+xbVPowiGElGApbzN1oxSja9X/JdoIYN8hJ3aa/i7aK1l
bbpxQ+uj8b98kA2HlNsMPIYXTsPbaBHvQEYotcUTpgwopRQVHtOA4nI5M5sNwf+U
t4IVbgi9CCWosE5H4h47
=Y2Gk
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to