Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libc.prctl not available #23

Open
alfredoivan opened this issue May 8, 2023 · 0 comments
Open

libc.prctl not available #23

alfredoivan opened this issue May 8, 2023 · 0 comments

Comments

@alfredoivan
Copy link

The following warning appears while launching x-tile:

libc.prctl not available, the process name will be python and not x-tile

i tried by manually issuing commands in python3, here is what i got:

>>> import ctypes.util
>>> ctypes.util.find_library("libc")
Traceback (most recent call last):
[...]
FileNotFoundError: [Errno 2] No such file or directory: b'liblibc.a'

also tried this with no success:
libc = ctypes.cdll.LoadLibrary(ctypes.util.find_library("libc.so.6"))

this is the line that fixes it and works properly:
libc = ctypes.cdll.LoadLibrary(ctypes.util.find_library("c"))

can the code be modified to the line above?
see similar issue: python/cpython#86746

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant