Summary: | net-misc/ntpsec-1.1.2 ntpq: can't find Python NTP library -- check PYTHONPATH. / No module named 'ntp.control' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Marcin Mirosław <bug> |
Component: | Current packages | Assignee: | Steve Arnold <nerdboy> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | blueness, gem, jamesb.fe80, jstein |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Marcin Mirosław
2018-09-05 09:36:48 UTC
I am not seeing it on my system. The pylib files should be in the directory /usr/lib64/pythonX.Y/site-packages/ntp/ where X.Y has the values of (for your box 2.7 and 3.6) It might also generate errors if /usr/lib is not a symlink to lib64 I see your PYTHON_TARGETS must be set to "python2_7 python3_5 python3_6" Which is your live Python? Find out one of this way: $ python -V Python 2.7.15 The emerge should have installed for all three Python versions. The file would be here: $ ls /usr/lib64/pyt*/site-packages/ntp -d /usr/lib64/python2.7/site-packages/ntp /usr/lib64/python3.5/site-packages/ntp /usr/lib64/python3.6/site-packages/ntp ``` And, as the emerge asked, check your PYTHONPATH: $ echo $PYTHONPATH /usr/lib64/python2.7/site-packagages Confirmed nroken install. I just installed the ebuild. In my make.conf: PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6" The emerge only installed some different files for different python versions: ntpc.so for only Python 2.7: # ls /usr/lib64/python*/site-packages/ntp/ntpc.so /usr/lib64/python2.7/site-packages/ntp/ntpc.so But it did create all the install directories: $ ls -l /usr/lib64/python*/site-packages/ntp/ -d /usr/lib64/python2.7/site-packages/ntp/ /usr/lib64/python3.4/site-packages/ntp/ /usr/lib64/python3.5/site-packages/ntp/ /usr/lib64/python3.6/site-packages/ntp/ It installed ntpdc.so with odd names for the other versions: # ls /usr/lib64/python*/site-packages/ntp/ntpc* /usr/lib64/python2.7/site-packages/ntp/ntpc.so /usr/lib64/python3.4/site-packages/ntp/ntpc.cpython-34m.so /usr/lib64/python3.5/site-packages/ntp/ntpc.cpython-35m-x86_64-linux-gnu.so /usr/lib64/python3.6/site-packages/ntp/ntpc.cpython-36m-x86_64-linux-gnu.so Clearly broken. You can get ntpmon to work this way: # eselect python list Python interpreters, in order of preference: [1] python3.6 [2] python2.7 # /usr/bin/ntpmon ntpmon: can't find Python NTP library -- check PYTHONPATH. dynamic module does not define module export function (PyInit_ntpc) # eselect python set 2 # /usr/bin/ntpmon [works] So the ebuild install of the python libs is broken. no longer in the tree... |