[MacPorts] #63782: python3{8, 9, 10} +universal: ImportError: dynamic module does not define module export function (PyInit__posixsubprocess)

MacPorts noreply at macports.org
Sun Dec 19 02:44:01 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 jmroot):

 Some more findings: Looking at the binary, it's not just _posixsubprocess
 that is affected, every single extension module in lib-dynload appears to
 have no symbol table in the x86_64 slice. For example:
 {{{
 % xcrun llvm-objdump --macho --arch=arm64 -t
 python39-3.9.9_0+lto+optimizations+universal.darwin_21.arm64-x86_64/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /lib-dynload/_uuid.cpython-39-darwin.so
 python39-3.9.9_0+lto+optimizations+universal.darwin_21.arm64-x86_64/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /lib-dynload/_uuid.cpython-39-darwin.so:
 SYMBOL TABLE:
 0000000000003e94 l     F __TEXT,__text _uuid_exec
 0000000000003eb8 l     F __TEXT,__text _py_uuid_generate_time_safe
 0000000000008000 l     O __DATA,__data _uuidmodule
 0000000000008068 l     O __DATA,__data _uuid_methods
 00000000000080a8 l     O __DATA,__data _uuid_slots
 0000000000000000      d  *UND*
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_python39/python39/work/Python-3.9.9/Modules/
 0000000000000000      d  *UND* _uuidmodule.c
 0000000000000000      d  *UND* /tmp/lto.o
 0000000000003e88      d  *UND*
 0000000000003e88      d  *UND* _PyInit__uuid
 000000000000000c      d  *UND*
 000000000000000c      d  *UND*
 0000000000003e94      d  *UND*
 0000000000003e94      d  *UND* _uuid_exec
 0000000000000024      d  *UND*
 0000000000000024      d  *UND*
 0000000000003eb8      d  *UND*
 0000000000003eb8      d  *UND* _py_uuid_generate_time_safe
 0000000000000078      d  *UND*
 0000000000000078      d  *UND*
 0000000000008000      d  *UND* _uuidmodule
 0000000000008068      d  *UND* _uuid_methods
 00000000000080a8      d  *UND* _uuid_slots
 0000000000000000      d  *UND*
 0000000000003e88 g     F __TEXT,__text _PyInit__uuid
 0000000000000000         *UND* _PyModuleDef_Init
 0000000000000000         *UND* _PyModule_AddIntConstant
 0000000000000000         *UND* __Py_BuildValue_SizeT
 0000000000000000         *UND* __Py_NoneStruct
 0000000000000000         *UND* ___stack_chk_fail
 0000000000000000         *UND* ___stack_chk_guard
 0000000000000000         *UND* _uuid_generate_time
 % xcrun llvm-objdump --macho --arch=x86_64 -t
 python39-3.9.9_0+lto+optimizations+universal.darwin_21.arm64-x86_64/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /lib-dynload/_uuid.cpython-39-darwin.so
 /python39-3.9.9_0+lto+optimizations+universal.darwin_21.arm64-x86_64/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /lib-dynload/_uuid.cpython-39-darwin.so:
 SYMBOL TABLE:
 }}}
 The python interpreter and framework appear to be fine in both slices
 though.

-- 
Ticket URL: <https://trac.macports.org/ticket/63782#comment:19>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list