[MacPorts] #63782: python3{8, 9, 10} +universal: ImportError: dynamic module does not define module export function (PyInit__posixsubprocess)
MacPorts
noreply at macports.org
Sat Dec 18 00:15:41 UTC 2021
#63782: python3{8,9,10} +universal: ImportError: dynamic module does not define
module export function (PyInit__posixsubprocess)
------------------------------------------+----------------------------
Reporter: casr | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: monterey arm64
Port: python38 python39 python310 |
------------------------------------------+----------------------------
Comment (by ryankanno):
Replying to [comment:11 jmroot]:
> The first thing you could rule out is the other variants. See if
building with `-lto`, `-optimizations`, or both has any effect on this
(still with `+universal` of course; we already know `-universal` is OK).
If not, and if there's an older version that was known not to have this
issue, bisecting would certainly be helpful. If there's no known good
version, going back to older versions may be futile, but I guess it's
still data.
Great idea. Following your advice, here's a matrix of what I came up with
- it looks like the arm64 archs are failing.
||= Installation command =||= Output of `port -vq installed python39` =||=
Arch =||= Command =||= Result =||
|| `$ port install python39 +universal -lto` || python39
@3.9.9_0+optimizations+universal (active) requested_variants='+universal-
lto' platform='darwin 21' archs='arm64 x86_64'
date='2021-12-18T07:52:13+0900' || x86_64 || `arch -x86_64
/opt/local/bin/python3.9 -c 'import subprocess;'` || success ||
|| `$ port install python39 +universal -lto` || python39
@3.9.9_0+optimizations+universal (active) requested_variants='+universal-
lto' platform='darwin 21' archs='arm64 x86_64'
date='2021-12-18T07:52:13+0900' || arm64 || `arch -arm64
/opt/local/bin/python3.9 -c 'import subprocess;'` || ModuleNotFoundError:
No module named 'msvcrt' ||
|| `$ port install python39 +universal -optimizations` || python39
@3.9.9_0+lto+universal (active) requested_variants='+universal-
optimizations' platform='darwin 21' archs='arm64 x86_64'
date='2021-12-18T08:46:14+0900' || x86_64 || `arch -x86_64
/opt/local/bin/python3.9 -c 'import subprocess;'` || success ||
|| `$ port install python39 +universal -optimizations` || python39
@3.9.9_0+lto+universal (active) requested_variants='+universal-
optimizations' platform='darwin 21' archs='arm64 x86_64'
date='2021-12-18T08:46:14+0900' || arm64 || `arch -arm64
/opt/local/bin/python3.9 -c 'import subprocess;'` || ModuleNotFoundError:
No module named 'msvcrt' ||
|| `$ port install python39 +universal -lto -optimizations` || python39
@3.9.9_0+universal (active) requested_variants='+universal-lto-
optimizations' platform='darwin 21' archs='arm64 x86_64'
date='2021-12-18T08:56:59+0900' || x86_64 || `arch -x86_64
/opt/local/bin/python3.9 -c 'import subprocess;'` || success ||
|| `$ port install python39 +universal -lto -optimizations` || python39
@3.9.9_0+universal (active) requested_variants='+universal-lto-
optimizations' platform='darwin 21' archs='arm64 x86_64'
date='2021-12-18T08:56:59+0900' || arm64 || `arch -arm64
/opt/local/bin/python3.9 -c 'import subprocess;'` || ModuleNotFoundError:
No module named 'msvcrt' ||
Will continue to add more data points from older portfiles as I try them
out.
--
Ticket URL: <https://trac.macports.org/ticket/63782#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list