Ticket #52 (closed defect: fixed)
Python binding broken in 1.2.15
| Reported by: | todd.valentic@… | Owned by: | oetiker |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | misc | Version: | 1.2.15 |
| Keywords: | python | Cc: | todd.valentic@… |
Description
The Python binding no longer works since updating to 1.2.15 (tested on both Fedora Core 5/Python 2.4 and Fedora Core 4/Python 2.3).
The following error occurs when importing the module:
Python 2.4.3 (#1, Jun 13 2006, 11:46:08) [GCC 4.1.1 20060525 (Red Hat 4.1.1-1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import rrdtool Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: dynamic module does not define init function (initrrdtool) >>>
The release notes mention a change in the naming convention and checking the subversion site shows the relevant change was made in revision 839:
http://people.ee.ethz.ch/~oetiker/webtools/rrdtool-trac/changeset/839
Backing out these changes fixes the problem. I think the original version correctly follows the expected naming convention.



Fixed in svn revision [864]. Patch included in latest Fedora Extras rrdtool builds.