On Mon, 2013-08-05 at 03:28 -0400, Antoni Segura Puimedon wrote:
Hi List,
Yesterday I had a few idle hours after dinner and I started porting parts of
oVirt's vdsm to be compatible with Python 2.6, 2.7 and 3.3 (unified codebase).
In order to get the networking part working we need python-ethtool to work in
Python 3. For this, I started working on a series of patches to allow just
that:
https://github.com/celebdor/python-ethtool/tree/py3k
The current status is that python-ethtool builds in python up to 3.3 and some
parts work. I still get segfaults with etherinfo objects (which I believe to
related to encoding issues with the PyUnicode/PyBytes/char * conversions.
What works(so far tested):
- importing the module
- using ethtool.get_*
Do you have some testsuite for it?
Did you see:
https://lists.fedorahosted.org/pipermail/python-ethtool-devel/2013/000017...
It looks like you're using an old version of the code.
FWIW, I regard
https://git.fedorahosted.org/cgit/python-ethtool.git as
the canonical source repository.
[I don't work on python-ethtool anymore, fwiw]