[Python-modules-team] Bug#691230: python-pyrrd: RRD.fetch method is broken

Elena Grandi elena.valhalla at gmail.com
Tue Oct 23 09:17:17 UTC 2012


Package: python-pyrrd
Version: 0.1.0-1
Severity: important
Tags: upstream

Dear Maintainer,

python-pyrrd as currently found in wheezy and sid has a bug, known upstream 
(<https://code.google.com/p/pyrrd/issues/detail?id=26>) which breaks 
the RRD.fetch method, preventing the user from getting data out of an RRD.

With some boilerplate taken from the package doctests, this is a 
way to trigger the bug:

    >>> import os, tempfile
    >>> from pyrrd.rrd import DataSource, RRA, RRD
    >>>
    >>> dss = []
    >>> rras = []
    >>> rrdfile = tempfile.NamedTemporaryFile()
    >>> dss.append(DataSource(dsName='speed', dsType='COUNTER', heartbeat=600))
    >>> rras.append(RRA(cf='AVERAGE', xff=0.5, steps=1, rows=24))
    >>> rras.append(RRA(cf='AVERAGE', xff=0.5, steps=6, rows=10))
    >>> rrd = RRD(rrdfile.name, ds=dss, rra=rras, start=920804400)
    >>> rrd.create()
    >>> rrd.bufferValue('920805600', '12363')
    >>> rrd.bufferValue('920805900', '12363')
    >>> rrd.update()
    >>> rrd.fetch()
    Traceback (most recent call last):
      File "<input>", line 1, in <module>
      File "/usr/lib/python2.7/dist-packages/pyrrd/rrd.py", line 226, in fetch
        return self.backend.fetch(*data)[returnStyle]
    TypeError: fetch() takes exactly 2 arguments (3 given)

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-3-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-pyrrd depends on:
ii  python          2.7.3~rc2-1
ii  python-rrdtool  1.4.7-2
ii  python2.6       2.6.8-0.2
ii  python2.7       2.7.3~rc2-2.1
ii  rrdtool         1.4.7-2

python-pyrrd recommends no packages.

python-pyrrd suggests no packages.

-- no debconf information



More information about the Python-modules-team mailing list