picar / pyrrd

Automatically exported from code.google.com/p/pyrrd
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

TypeError: fetch() takes exactly 2 arguments (3 given) #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call function like  data = rrd.fetch(cf=cf, resolution=resolution, 
start=start, end=end) where rrd = RRD(filename, step=step, mode="r")
2. Got exception:

  File "/usr/local/bin/readrrd.py", line 54, in dump_rrd
    data = rrd.fetch(cf=cf, resolution=resolution, start=start, end=end)
  File "/usr/lib/python2.6/site-packages/PyRRD-0.1.0-py2.6.egg/pyrrd/rrd.py", line 226, in fetch
    return self.backend.fetch(*data)[returnStyle]
TypeError: fetch() takes exactly 2 arguments (3 given)

3. Version 0.0.7 works fine. Problem with version 0.1.0

What version of the product are you using? On what operating system?

Linux Centos 6 i386 

Original issue reported on code.google.com by msh.comp...@gmail.com on 29 Feb 2012 at 3:47

GoogleCodeExporter commented 9 years ago
See Issue 46 -- I list a fix to this in the source code. 

Original comment by Lucas.in...@gmail.com on 10 Aug 2012 at 12:08

GoogleCodeExporter commented 9 years ago
This is a duplicate of Issue 26 and it has been fixed in a checkout of the 
current development code.

Original comment by g...@2ndquadrant.com on 22 Feb 2013 at 6:46