Correlating rpm-python version with python version

Brad Smith <brad_stephenssmith-/[email protected]> Sun, 7 Mar 2004 08:32:03 -0800 (PST)
Newsgroups gmane.linux.redhat.rpm.python
Message-ID <[email protected]>
Hello, all. 

Appologies if this is an inappropriate forum for this question. My webhost is running python 2.2.2
and doesn't have rpm-python installed for that version (though they do for python 1.x). I was
hoping I could save the trouble of convincing an admin to install the package by just adding the
appropriate version of rpmmodule.so into my modules path. I grabbed the rpm for the distro they're
running (rh7.3), but when my app runs, I get the following:

 RuntimeWarning: Python C API version mismatch for module 
rpm: This Python has API version 1011, module rpm has version 1007.
  import rpm

I'm guessing this is because rh7.3 comes with python 1.x and so the rpm-python package I got was
designed for it instead of 2.2.2. So the question arises: how can I determine which version of the
rpm-python package I need?

A related question: Is there any central download source for rpm-python packages? I've googled and
the best I've come up with is rpmfind.net.

Thanks in advance for any help that can be rendered.

--Brad