❦ 6 décembre 2020 11:59 +01, Matthias Klose:
>>>>> 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.
Thanks for the tips! I'll submit the workaround to upstreams.
--
October 12, the Discovery.
It was wonderful to find America, but it would have been more wonderful to miss
it.
-- Mark Twain, "Pudd'nhead Wilson's Calendar"