New submission from An1c0de <[email protected]>:
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 <[email protected]>
<https://bugs.python.org/issue43642>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com