From owner-freebsd-python@freebsd.org Tue Aug 8 14:45:31 2017 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4666ADB7DAD for ; Tue, 8 Aug 2017 14:45:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 2A4FA64F22 for ; Tue, 8 Aug 2017 14:45:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 29BCADB7DAC; Tue, 8 Aug 2017 14:45:31 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 296A1DB7DAB for ; Tue, 8 Aug 2017 14:45:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1084364F21 for ; Tue, 8 Aug 2017 14:45:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v78EjUxk062151 for ; Tue, 8 Aug 2017 14:45:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 220596] [NEW PORT] shells/xonsh: Python-ish BASH-wards shell Date: Tue, 08 Aug 2017 14:45:31 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: feature, needs-patch, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: roberfern@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: matthew@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Aug 2017 14:45:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220596 --- Comment #27 from Roberto Fernandez Cueto --- 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 =3D ctypes.CDLL(find_library('libc.so'), use_errno=3DTrue) sz =3D ctypes.c_unit(0) libc.sysctlbyname('kern.boottime', None, ctypes.byref(sz), None, 0) On python3.6 the result is -1 and errno=3DENOENT, 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. --=20 You are receiving this mail because: You are on the CC list for the bug.=