This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author doko
Recipients doko
Date 2020-12-06.10:50:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1607251833.68.0.530621101082.issue42580@roundup.psfhosted.org>
In-reply-to
Content
regression compared to 3.8:

$ python3.9
Python 3.9.1rc1 (default, Nov 27 2020, 19:38:39) 
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> ctypes.util.find_library("libc")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'ctypes' is not defined
>>> import ctypes.util
>>> ctypes.util.find_library("libc")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.9/ctypes/util.py", line 341, in find_library
    _get_soname(_findLib_gcc(name)) or _get_soname(_findLib_ld(name))
  File "/usr/lib/python3.9/ctypes/util.py", line 147, in _findLib_gcc
    if not _is_elf(file):
  File "/usr/lib/python3.9/ctypes/util.py", line 99, in _is_elf
    with open(filename, 'br') as thefile:
FileNotFoundError: [Errno 2] No such file or directory: b'liblibc.a'

also note that the shared library is installed.
History
Date User Action Args
2020-12-06 10:50:33dokosetrecipients: + doko
2020-12-06 10:50:33dokosetmessageid: <1607251833.68.0.530621101082.issue42580@roundup.psfhosted.org>
2020-12-06 10:50:33dokolinkissue42580 messages
2020-12-06 10:50:32dokocreate