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

MacPorts noreply at macports.org
Tue Dec 28 11:53:20 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 casr):

 This seems to work for me on python39 which I was testing on:

 {{{
 diff --git a/lang/python39/Portfile b/lang/python39/Portfile
 index 1f2689f3ab2..4bb3d914d02 100644
 --- a/lang/python39/Portfile
 +++ b/lang/python39/Portfile
 @@ -124,10 +124,6 @@ platform darwin {
          reinplace -E s|${lfs_pattern}|${lfs_replacement}| \
              ${buildlibdir}/_sysconfigdata__darwin_darwin.py

 -        # remove -arch flags from the config
 -        reinplace -E {s|-arch [a-z0-9_]+||g} \
 -            ${buildlibdir}/_sysconfigdata__darwin_darwin.py
 -
          # also remove gettext overlinking
          reinplace "s|-lintl||" \
              ${buildlibdir}/_sysconfigdata__darwin_darwin.py
 }}}

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


More information about the macports-tickets mailing list