ntpq vs Python 3.8

Gary E. Miller gem at rellim.com
Mon May 25 22:42:23 UTC 2020


Yo Hal!

On Mon, 25 May 2020 15:31:42 -0700
Hal Murray via devel <devel at ntpsec.org> wrote:

> Fedora is updating from Python 3.7 to 3.8.

Gentoo has remove 2.7 and moved from 3.6 yo 3.7 to 3.8 quickly.  What a PITA.
 
> That breaks ntpq (and friends) because the installed ntp libraries
> are over in 3.7 but ntpq is looking in 3.8

Just reinstall NTPsec from git head.  It will autodetect the new python
and Do The Right Thing(tm).

> Is there a good/clean fix for this?  Should the code that chops the
> ".py? off the name also fixup the first line of the script to replace
> "python" with "python3.x"?

On gpsd, I made the python shebang a config variable.  The PEP used to
be very specific, but the distros went all random.  There is no one, or
even two good answers.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20200525/3d3cf2c9/attachment.bin>


More information about the devel mailing list