Bug 1328199

Summary: add Python 3 support
Product: [Fedora] Fedora Reporter: Ken Dreyer (Red Hat) <kdreyer>
Component: koboAssignee: Lumír Balhar <lbalhar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: dmach, kdudka, lbalhar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-30 06:25:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ken Dreyer (Red Hat) 2016-04-18 16:56:21 UTC
Description of problem:
Kobo does not support Python 3

Version-Release number of selected component (if applicable):
https://pypi.python.org/packages/source/k/kobo/kobo-0.3.8.tar.bz2

How reproducible:
always

Steps to Reproduce:
1. $ virtualenv-3.4 venv3
2. $ venv3/bin/python3
2. >>> import kobo.conf

Actual results:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/kdreyer/dev/rhcephcompose/venv3/lib/python3.4/site-packages/kobo/conf.py", line 187
    print "%2s %16s %s" % (self._tok_number, self._tok_name, self._tok_value.strip())


Expected results:
import succeeds

Comment 1 Ken Dreyer (Red Hat) 2016-04-18 19:28:03 UTC
I can write a patch if you let me know what is the minimum version of Python that kobo has to support?

Comment 2 Ken Dreyer (Red Hat) 2016-05-04 22:19:42 UTC
(In reply to Ken Dreyer (Red Hat) from comment #1)
> I can write a patch if you let me know what is the minimum version of Python
> that kobo has to support?

Jay Greguske tells me it's Python 2.6

Comment 4 Daniel Mach 2016-05-13 08:26:32 UTC
I need to ask my team first.
Kobo supports py2.4 (rhel5) -> py2.7 (rhel7/fedora24)
and many scripts depend on that.
We probably need to change the minimal requirement to py2.6.

Comment 5 Ken Dreyer (Red Hat) 2016-05-17 23:11:54 UTC
I've tested both PRs on el5 and there is no behavior change from the code that is currently in master.

Comment 6 Jan Kurik 2016-07-26 04:14:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 7 Lumír Balhar 2017-10-02 10:45:22 UTC
My pull request [0] is merged so Kobo has support for Python 3 in master branch now. I am waiting for a new release and then we can make this change available via RPMs.

[0] https://github.com/release-engineering/kobo/pull/48

Comment 8 Lumír Balhar 2017-10-30 06:25:40 UTC
Kobo has Python 3 support in current version 0.7.0 and python3- subpackages are available in rawhide (+ updates for F27, F26 and F25)

If you find something new without Python 3 compatibility, let us know, please.