[New-bugs-announce] [issue43642] ctypes.util.find_library can't find the lib on Alpine
An1c0de
report at bugs.python.org
Sat Mar 27 11:54:09 EDT 2021
New submission from An1c0de <anvk.ddd1 at gmail.com>:
Hi!
ctypes.util.find_library can't find the lib on Alpine. I think this is because the logic is not cover the digital suffixes.
Docker example:
```
docker run --rm -it python:3.9-alpine sh
apk add libuuid build-base
ls /lib/libuuid*
# /lib/libuuid.so.1
# /lib/libuuid.so.1.3.0
python -c 'from ctypes.util import find_library; print(find_library("uuid"))'
# None
## Workaround:
cd /lib && ln -s libuuid.so.1 libuuid.so
python -c 'from ctypes.util import find_library; print(find_library("uuid"))'
# libuuid.so.1
```
Thanks!
----------
components: ctypes
messages: 389609
nosy: An1c0de
priority: normal
severity: normal
status: open
title: ctypes.util.find_library can't find the lib on Alpine
type: behavior
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43642>
_______________________________________
More information about the New-bugs-announce
mailing list