[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 Mar 31 17:27:12 UTC 2022


#64916: Pythons 3.x for ppc+ppc64 on Leopard: No module named 'msvcrt',
'_posixsubprocess' errors, how to fix?
-------------------------------+-------------------------------------------
 Reporter:  barracuda156       |      Owner:  (none)
     Type:  defect             |     Status:  new
 Priority:  Normal             |  Milestone:
Component:  ports              |    Version:  2.7.2
 Keywords:  powerpc, leopard,  |       Port:  python38, python39, python310
  ppc64                        |
-------------------------------+-------------------------------------------
 I am back to efforts to fix Pythons 3.x for Leopard as ppc+ppc64. I have
 built now `python38` and `python39` as `+universal`:

 {{{
   python38 @3.8.13_0+universal (active) requested_variants='+universal'
 platform='darwin 9' archs='ppc ppc64' date='2022-04-01T01:06:28+0800'
   python39 @3.9.12_0+universal (active) requested_variants='+universal'
 platform='darwin 9' archs='ppc ppc64' date='2022-04-01T00:21:32+0800'
 }}}

 However installing modules fail. As an example:

 {{{
 --->  Building py38-setuptools
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 setuptools/py38-setuptools/work/setuptools-60.9.3" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
 -m build --wheel --no-isolation --outdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 setuptools/py38-setuptools/work --skip-dependency-check
 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py",
 line 64, in <module>
     import msvcrt
 ModuleNotFoundError: No module named 'msvcrt'

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py",
 line 185, in _run_module_as_main
     mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py",
 line 144, in _get_module_details
     return _get_module_details(pkg_main_name, error)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py",
 line 111, in _get_module_details
     __import__(pkg_name)
   File "/opt/local/share/py-bootstrap-modules/build/__init__.py", line 13,
 in <module>
     import subprocess
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py",
 line 69, in <module>
     import _posixsubprocess
 ModuleNotFoundError: No module named '_posixsubprocess'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 setuptools/py38-setuptools/work/setuptools-60.9.3" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
 -m build --wheel --no-isolation --outdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 setuptools/py38-setuptools/work --skip-dependency-check
 }}}

 It is unclear why this happens. Any advice will be greatly appreciated.

 P. S. With `python27` universal is working with no issues:

 {{{
 svacchanda$ port -v installed py27-curl
 The following ports are currently installed:
   py27-curl @7.43.0.3_2+universal (active) requested_variants='+universal'
 platform='darwin 9' archs='ppc ppc64' date='2022-04-01T01:24:12+0800'
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/64916>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list