[MacPorts] #64916: Pythons 3.x for ppc+ppc64 on Leopard: No module named 'msvcrt', '_posixsubprocess' errors, how to fix?
MacPorts
noreply at macports.org
Thu Apr 21 19:55:16 UTC 2022
#64916: Pythons 3.x for ppc+ppc64 on Leopard: No module named 'msvcrt',
'_posixsubprocess' errors, how to fix?
--------------------------------------------+------------------------------
Reporter: barracuda156 | Owner: jmroot
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords: powerpc,
Port: python38, python39, python310 | leopard, ppc64
--------------------------------------------+------------------------------
Comment (by barracuda156):
Replying to [comment:2 mascguy]:
So interestingly, all modules apparently get built correctly, if I just
run `sudo port -v build`, and get placed in:
`/opt/local/var/macports/build/_opt_PPCLeopardPorts_lang_python310/python310/work/Python-3.10.4/build/lib.macosx-10.5-powerpc-3.10`.
They have both archs:
{{{
/opt/local/var/macports/build/_opt_PPCLeopardPorts_lang_python310/python310/work/Python-3.10.4/build/lib.macosx-10.5-powerpc-3.10/_posixsubprocess.cpython-310-darwin.so:
Mach-O universal binary with 2 architectures
/opt/local/var/macports/build/_opt_PPCLeopardPorts_lang_python310/python310/work/Python-3.10.4/build/lib.macosx-10.5-powerpc-3.10/_posixsubprocess.cpython-310-darwin.so
(for architecture ppc7400): Mach-O bundle ppc
/opt/local/var/macports/build/_opt_PPCLeopardPorts_lang_python310/python310/work/Python-3.10.4/build/lib.macosx-10.5-powerpc-3.10/_posixsubprocess.cpython-310-darwin.so
(for architecture ppc64): Mach-O 64-bit bundle ppc64
}}}
However they get screwed at destroot, turning into "failed", i.e.:
`_posixsubprocess.cpython-310-darwin_failed.so`. These failed ones get
installed into framework, and surely fail to work. Failed ones only have
`ppc`.
''What's happening here?'' I had tried also using a patch identical to the
one used for `python27`, which works for it, but here I get the same
result.
Also strangely, build does not fail, that's why these error went unnoticed
for a while. And Python's binaries build normally, only these modules
failing.
--
Ticket URL: <https://trac.macports.org/ticket/64916#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list