[MacPorts] #63088: python39 @3.9.5_0: failed lib-dynload

MacPorts noreply at macports.org
Sun Jun 13 10:22:49 UTC 2021


#63088: python39 @3.9.5_0: failed lib-dynload
---------------------------+----------------------
  Reporter:  RobertAdesam  |      Owner:  jmroot
      Type:  defect        |     Status:  assigned
  Priority:  High          |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:
      Port:  python39      |
---------------------------+----------------------
Changes (by ryandesign):

 * owner:  (none) => jmroot
 * status:  new => assigned


Comment:

 Replying to [ticket:63088 RobertAdesam]:
 > Installing python39 on MacOSX 10.15.7 (build 19H1217) with xcode 12.4 or
 11.7, results in multiple failed so-files in lib-dynload:
 >
 > {{{
 > $ cd
 /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9
 /lib-dynload/ && ls -1 *failed.so
 > _bz2.cpython-39-darwin_failed.so
 > _ctypes.cpython-39-darwin_failed.so
 > _curses.cpython-39-darwin_failed.so
 > _curses_panel.cpython-39-darwin_failed.so
 > _elementtree.cpython-39-darwin_failed.so
 > _lzma.cpython-39-darwin_failed.so
 > _sqlite3.cpython-39-darwin_failed.so
 > pyexpat.cpython-39-darwin_failed.so
 > readline.cpython-39-darwin_failed.so
 > }}}

 This is either a new problem or something specific to your computer,
 because we've been using python39 successfully for months without hearing
 of such issues.

 > Configure step gives warning:
 >
 > {{{
 > Warning: Configuration logfiles contain indications of -Wimplicit-
 function-declaration; check that features were not accidentally disabled:
 >   getrandom: found in Python-3.9.5/config.log
 >   le64toh: found in Python-3.9.5/config.log
 > }}}

 As far as I know, these two functions do not exist on any version of macOS
 so it is safe to ignore these messages and we should add those two
 functions to the [browser:macports-
 ports/_resources/port1.0/checks/implicit_function_declaration global
 whitelist files].

 > Also python complains the module msvcrt does not exist when importing
 subprocess (e.g. py39-setuptools fails to install):
 >
 > {{{
 > $ python3.9
 > Python 3.9.5 (default, Jun 13 2021, 11:15:41)
 > [Clang 12.0.0 (clang-1200.0.32.29)] on darwin
 > Type "help", "copyright", "credits" or "license" for more information.
 > >>> import subprocess
 > Traceback (most recent call last):
 >   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py",
 line 73, in <module>
 >     import msvcrt
 > ModuleNotFoundError: No module named 'msvcrt'
 >
 > During handling of the above exception, another exception occurred:
 >
 > Traceback (most recent call last):
 >   File "<stdin>", line 1, in <module>
 >   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py",
 line 78, in <module>
 >     import _posixsubprocess
 > ImportError: dynamic module does not define module export function
 (PyInit__posixsubprocess)
 > >>>
 > }}}
 >
 > Might be related to ticket #61282?

 It does seem like a similar symptom to the one reported in that ticket,
 but that ticket has been resolved so perhaps there is a different cause
 here.

 > Also had the the -Wimplicit-function-declaration warning on several
 other ports but seem to work fine, eg libiconv and xz.

 I guess separate tickets should be filed about those. The implicit
 function declaration checks are new as of MacPorts 2.7.0 so you may
 encounter many ports in which this has not yet been researched, so please
 file individual tickets so that the research can be done and the
 appropriate fix can be applied, whatever that may be for each individual
 situation.

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


More information about the macports-tickets mailing list