Hi Emily,<br><br>Please let us know what you are trying to achieve and how your code snippet looks like.<br><br>On the error:<br>obviously, the script cannot find the rrd database file. <br>I would suggest that you play around with rrdtool in its binary form, e.g. rrdtool create, rrdtool update, rrdtool graph<br>
and than start porting the command line switches to the python script.<br>Copy paste code doesn't actually work unless you understand every switch's meaning ( for example '--imgformat', 'PNG' ) <br>
and replace variables accordingly to your environment (path for example)<br><br><br><div class="gmail_quote">On Thu, Jun 5, 2008 at 10:53 PM, Emily Chouinard <<a href="mailto:cousin17@msu.edu">cousin17@msu.edu</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I am a newbie and I am having difficulty running the example on python-<br>
rrdtool. I have followed it word for word off the website<br>
>>> rrdtool.graph(path,<br>
'--imgformat', 'PNG',<br>
'--width', '540',<br>
'--height', '100',<br>
'--start', "-%i" % YEAR,<br>
'--end', "-1",<br>
'--vertical-label','Downloads/Day',<br>
'--title', 'Annual Downloads',<br>
'--lower-limit', '0', DEF:downloads=downloads.rrd:downloads:AVERAGE',<br>
'AREA:downloads#990033:Downloads')<br>
<br>
and getting getting this error<br>
<br>
Traceback (most recent call last): File "<stdin>", line 1, in ?<br>
rrdtool.error: opening 'downloads.rrd': No such file or directory<br>
<br>
I'm just lost and confused and really need a step by step. I'm a very<br>
green programmer so if anyone can guide me towards tutorials and what<br>
not I would really appreciate it because I need more information that<br>
what I can find on the RRDtool website but I haven't been able to find<br>
any.<br>
<br>
Thanks, Emily<br>
<br>
<br>
_______________________________________________<br>
rrd-users mailing list<br>
<a href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br>
</blockquote></div><br>