NetBSD Problem Report #55642

From  Sat Sep  5 01:56:26 2020
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 2A59F1A9217
	for <>; Sat,  5 Sep 2020 01:56:26 +0000 (UTC)
Message-Id: <>
Date: Sat,  5 Sep 2020 01:56:24 +0000 (UTC)
Subject: lang/python37 No module named '_posixsubprocess'
X-Send-Pr-Version: www-1.0

>Number:         55642
>Category:       pkg
>Synopsis:       lang/python37 No module named '_posixsubprocess'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 05 02:00:01 +0000 2020
>Originator:     David Shao
>Release:        pkgsrc current cvs
NetBSD 9.99.72 NetBSD 9.99.72 (GENERIC) #3: Thu Sep  3 01:40:27 PDT 2020 amd64
NetBSD 9.99.72, X11_TYPE=native, pkgsrc current cvs, running a custom shell script that make replaces all prerequisites and then lang/python37, build fails with error message below.  This failure to build also has been observed on FreeBSD 12.1 release and on current DragonFly.

LD_LIBRARY_PATH=/usr/pkgsrc/lang/python37/work/Python-3.7.9 ./python -E -S -m sysconfig --generate-posix-vars ; if test $? -ne 0 ; then  echo "generate-posix-vars failed" ;  rm -f ./pybuilddir.txt ;  exit 1 ;  fi
gcc -pthread -c -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -O2 -g -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -O2 -g -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include  -std=gnu99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wno-cast-function-type -Werror=implicit-function-declaration   -I. -I./Include -I/usr/include -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -fPIC -DPy_BUILD_CORE -o Modules/_math.o Modules/_math.c
LD_LIBRARY_PATH=/usr/pkgsrc/lang/python37/work/Python-3.7.9 CC='gcc -pthread' LDSHARED='gcc -pthread -shared -L. -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib  ' OPT='-DNDEBUG -O2 -g -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include'  _TCLTK_INCLUDES='' _TCLTK_LIBS=''  ./python -E ./  build
Traceback (most recent call last):
  File "./", line 10, in <module>
    from distutils import log
  File "/usr/pkg/lib/python3.7/site-packages/_distutils_hack/", line 83, in create_module
    return importlib.import_module('._distutils', 'setuptools')
  File "/usr/pkgsrc/lang/python37/work/Python-3.7.9/Lib/importlib/", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/pkg/lib/python3.7/site-packages/setuptools/", line 8, in <module>
    import _distutils_hack.override  # noqa: F401
  File "/usr/pkg/lib/python3.7/site-packages/_distutils_hack/", line 1, in <module>
  File "/usr/pkg/lib/python3.7/site-packages/_distutils_hack/", line 64, in do_override
  File "/usr/pkg/lib/python3.7/site-packages/_distutils_hack/", line 51, in ensure_local_distutils
    core = importlib.import_module('distutils.core')
  File "/usr/pkgsrc/lang/python37/work/Python-3.7.9/Lib/importlib/", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/usr/pkg/lib/python3.7/site-packages/setuptools/_distutils/", line 16, in <module>
    from distutils.dist import Distribution
  File "/usr/pkg/lib/python3.7/site-packages/setuptools/_distutils/", line 19, in <module>
    from distutils.util import check_environ, strtobool, rfc822_escape
  File "/usr/pkg/lib/python3.7/site-packages/setuptools/_distutils/", line 14, in <module>
    from distutils.spawn import spawn
  File "/usr/pkg/lib/python3.7/site-packages/setuptools/_distutils/", line 11, in <module>
    import subprocess
  File "/usr/pkgsrc/lang/python37/work/Python-3.7.9/Lib/", line 152, in <module>
    import _posixsubprocess
ModuleNotFoundError: No module named '_posixsubprocess'

From /etc/mk.conf

.ifdef BSD_PKG_MK   # begin pkgsrc settings






.endif              # end pkgsrc settings


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.