[Bug 220596] [NEW PORT] shells/xonsh: Python-ish BASH-wards shell
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Aug 8 14:45:31 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220596
--- Comment #27 from Roberto Fernandez Cueto <roberfern at gmail.com> ---
Ok, I have tracked this error until the following conclusion:
I have run the following code in python3.6 and python2.7,
import ctypes
import ctypes.util
libc = ctypes.CDLL(find_library('libc.so'), use_errno=True)
sz = ctypes.c_unit(0)
libc.sysctlbyname('kern.boottime', None, ctypes.byref(sz), None, 0)
On python3.6 the result is -1 and errno=ENOENT, but in python2.7 the
sysctlbyname(3) function returns 0 and the sz variable correctly set.
Xonsh assumes that out machine is not a BSD machine because this function
does not return a valid parameter.
I do not know which will be the best solution.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-python
mailing list