On 12/6/20 11:29 AM, Vincent Bernat wrote:
> Package: libpython3.9-stdlib
> Version: 3.9.1~rc1-2
> Severity: normal
>
> Hey!
> 
>>>> 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'
> 
> This breaks scapy and dhcpcanon and I suppose anything relying on ctypes.

you should use ctypes.util.find_library("c"), which works both in 3.8 and 3.9.

It's a regression, now forwarded.

Reply via email to