Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1018525 - Enh: Support python 3 package
Summary: Enh: Support python 3 package
Alias: None
Product: Fedora
Classification: Fedora
Component: python-ethtool
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2013-10-12 23:00 UTC by Andy Grover
Modified: 2017-06-23 14:19 UTC (History)
10 users (show)

Fixed In Version: python-ethtool-0.13-1.fc27 python-ethtool-0.13-1.fc26
Doc Type: Enhancement
Doc Text:
Clone Of:
Last Closed: 2017-06-23 14:19:51 UTC
Type: Bug

Attachments (Terms of Use)
dist-git patch (6.63 KB, patch)
2017-06-13 16:18 UTC, Miro Hrončok
no flags Details | Diff
dist-git patch (6.62 KB, patch)
2017-06-13 16:29 UTC, Miro Hrončok
cstratak: review+
Details | Diff

Description Andy Grover 2013-10-12 23:00:08 UTC
I'm working on making targetcli package Python 3-compatible. Since python-ethtool is used by targetcli, this requires python-ethool also have a Python 3 version.

Feel free to assign this back to me if you'd like me to take a stab.

Comment 1 David Sommerseth 2013-10-17 22:55:23 UTC
I haven't yet started looking at Python 3 support yet.  First in line was to move it towards libnl-3 and clean up the code a bit.  This has come quite far, but still not released yet.  Planning on a release in the not too far future.

If you have any ideas or thoughts about the complexity to add support for Python 3, I'm all ears.

Comment 2 Andy Grover 2013-10-18 00:27:12 UTC
It doesn't look *too* bad, actually, just some slightly ugly ifdeffing around module init:

Whenever you wanted to roll it into your normal development cycle, I'd be happy to help with testing.

Comment 3 Antoni Segura Puimedon 2013-11-14 17:52:35 UTC
I submitted a first version of the patch for python 3 compatibility:

Comment 4 Petr Viktorin 2016-01-16 14:57:33 UTC
Hello; what is the status of this bug?

I see there was a new patchset posted on the mailing list in 2014, with no reply:

Comment 5 Gennadii Altukhov 2016-05-04 08:29:29 UTC
Hello David,

I would like to know the status of this bug because Spacewalk project uses ethtool, and now we need it for Python 3. Do you need any help with this bug?

Comment 6 David Sommerseth 2016-05-12 11:44:56 UTC
Re-assigning this bz to Gennadii Altukhov, as he will take over the maintenance of python-ethtool

Comment 7 Lumír Balhar 2016-07-18 12:26:07 UTC

Is there any progress? Do you need help?

Have a nice day.

Comment 8 Gennadii Altukhov 2016-07-18 12:39:55 UTC
Hello Lumir,

I will apply patches in near future. Sorry for the delay.

Comment 9 Charalampos Stratakis 2016-08-17 14:28:13 UTC
Upstream maintainer has pushed commits for Python 3 support and released a new version, all that remains is porting of the SPEC file.

Comment 10 Charalampos Stratakis 2016-09-08 09:14:59 UTC
Also the upstream needs to be modified for the new version.

Created a ticket here:

Comment 11 Charalampos Stratakis 2016-09-14 16:02:21 UTC
Checked the code and still a lot of changes need to be made upstream. With latest commits only the C parts of the code are python 3 compatible.

Changing to block the upstream tracker

Comment 12 Lumír Balhar 2017-05-15 10:45:16 UTC

We did some changes in source code and now we have python-ethtool version 0.12 which should be Python 2/3 compatible.

Could you please try to build it respectively make separated subpackages for Python 2 and 3? If you need help, there is a guide for porting RPM packages [0] and/or we can help you of course.

Have a nice day.


Comment 13 Miro Hrončok 2017-06-13 15:35:57 UTC
Taking over this. Just release ethtool 0.13 on PyPI and will update the package in rawhide and F26 soon. Speak against it now or never :D

Comment 14 Miro Hrončok 2017-06-13 16:18:35 UTC
Created attachment 1287378 [details]
dist-git patch

Koji scratch build:

Comment 15 Miro Hrončok 2017-06-13 16:21:19 UTC
I see I've used python-setuptools. Will change that to python2-setuptools.

Comment 16 Miro Hrončok 2017-06-13 16:22:39 UTC
arm failure. will resubmit.

Comment 17 Miro Hrončok 2017-06-13 16:29:32 UTC
Created attachment 1287381 [details]
dist-git patch

Working Koji scratch build:

Comment 18 Charalampos Stratakis 2017-06-20 15:02:14 UTC
Patch LGTM. Tested on mock as well and everything is working as expected under python3. No regressions noted and the respective modules import successfully under python2 and python3.

Comment 20 Fedora Update System 2017-06-20 16:28:11 UTC
python-ethtool-0.13-1.fc26 has been submitted as an update to Fedora 26.

Comment 21 Fedora Update System 2017-06-21 06:24:25 UTC
python-ethtool-0.13-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See for
instructions on how to install test updates.
You can provide feedback for this update here:

Comment 22 Fedora Update System 2017-06-23 14:19:51 UTC
python-ethtool-0.13-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.