Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 622688 - net-dns/knot-2.5.1 pykeymgr migration tool incompatible with Python 3
Summary: net-dns/knot-2.5.1 pykeymgr migration tool incompatible with Python 3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Pierre-Olivier Mercier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-25 11:06 UTC by Karl-Johan Karlsson
Modified: 2017-08-02 08:27 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl-Johan Karlsson 2017-06-25 11:06:04 UTC
net-dns/knot has changed DNSSEC key database formats from 2.4 to 2.5. They bundle a Python script (pykeymgr) to change formats; see https://www.knot-dns.cz/docs/2.5/html/migration.html#kasp-db-migration

However, running pykeymgr using Python 3 results in the following error:

     File "/usr/sbin/pykeymgr", line 512
       def __call__(self, parser, namespace, values, option_string=None):
                                                                     ^
   TabError: inconsistent use of tabs and spaces in indentation

That seems to be fixed in https://gitlab.labs.nic.cz/labs/knot/commit/33919a7c7070c8ffc575b0752d0abdcae978b8bf. There is also https://gitlab.labs.nic.cz/labs/knot/commit/d0c1a9ed0fed505936115922aff7bf3bd6fd4142, described as "python3 compatibility". 

Both of these commits are included in net-dns/knot-2.5.2, so with any luck, a simple version bump should make pykeymgr run with Python 3. However, I have not tested that.
Comment 1 Karl-Johan Karlsson 2017-07-01 10:47:20 UTC
2.5.2 is in Portage now, and works.
Comment 2 Pierre-Olivier Mercier 2017-08-02 08:27:03 UTC
Sorry for the delay, fixed in net-dns/knot-2.5.3 now in tree.