Bug 66992

Summary: PackageKit Python 3 support
Product: PackageKit Reporter: Bohuslav "Slavek" Kabrda <bkabrda>
Component: GeneralAssignee: Richard Hughes <richard>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Bohuslav "Slavek" Kabrda 2013-07-17 10:52:02 UTC
Hi,
I'm currently trying to asses what it'd take to move Fedora to Python 3. Since PackageKit is a part of livecd, it'd need to be patched to work with Python 3 as one of first things. So, is Python 3 on your road map? Anything I can help with?
Thanks.
Comment 1 Richard Hughes 2013-07-17 13:01:45 UTC
Well, the client library is a GIR library, so there's no 2/3 problems. The bigger problem is the yum backend, as yum is exclusively Python2 as far as I know.
Comment 2 Bohuslav "Slavek" Kabrda 2013-07-18 07:40:02 UTC
As for the Yum backend, AFAIK yum will eventually be replaced by DNF (but I'm not aware of the timeframe).
Speaking of PackageKit itself, it doesn't seem to be fully Python 3 compatible. At least in Fedora, it contains e.g. /usr/lib/python2.7/site-packages/packagekit/{gtkwidgets,progress}.py, that use "print" statements in several places (I didn't examine closer for any other harder-to-reveal Python 3 incompatibilities). I have PackageKit-0.8.9-6.fc19.x86_64
Comment 3 Miro HronĨok 2014-02-12 12:14:08 UTC
Has there been any progress with this issue?

Apart from yum (and that will be replaced by dnf), what's blocking the porting?

Thanks for an update.
Comment 4 Richard Hughes 2014-02-12 14:39:00 UTC
I've switched the fedora build to using python3 by default.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.