https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220596
--- Comment #27 from Roberto Fernandez Cueto <roberf...@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. _______________________________________________ freebsd-python@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-python To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"