RRDtool cannot find in python

490 views Asked by At

I have a remote server which have installed RHEL 5 and Python2.

OS Version:
Red Hat Enterprise Linux Server release 5 (Tikanga)

Python Version:
Python 2.4.3

I could find the rrdtool have installed on following path as well.

/usr/local/rrdtool/bin

But when I execute following command in a .py file I am getting an error.

import sys
import rrdtool

Error:

import rrdtool
ImportError: No module named rrdtool

Can someone explain why I am getting this error and how to overcome this?

1

There are 1 answers

3
ibi0tux On

Python expects a python library. The directory /usr/local/rrdtool/ contains the rrdtool binary, but not the bindings to use it in Python.

You need to install the matching python library, using pip for instance :

pip install python-rrdtool