[MacPorts] #63088: python39 @3.9.5_0: failed lib-dynload
MacPorts
noreply at macports.org
Sun Jun 13 09:53:30 UTC 2021
#63088: python39 @3.9.5_0: failed lib-dynload
--------------------------+----------------------
Reporter: RobertAdesam | Owner: (none)
Type: defect | Status: new
Priority: High | Milestone:
Component: ports | Version: 2.7.1
Keywords: | Port: python39
--------------------------+----------------------
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
}}}
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
}}}
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? Also had the the -Wimplicit-function-
declaration warning on several other ports but seem to work fine, eg
libiconv and xz.
--
Ticket URL: <https://trac.macports.org/ticket/63088>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list