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

Unix port: ffilib.py: libc.so.6 is no longer the latest version #962

Open
hiway opened this issue Jan 11, 2025 · 0 comments
Open

Unix port: ffilib.py: libc.so.6 is no longer the latest version #962

hiway opened this issue Jan 11, 2025 · 0 comments

Comments

@hiway
Copy link

hiway commented Jan 11, 2025

While using os.popen() from unix-ffi libraries on FreeBSD 14.1-RELEASE-p5 amd64, I encountered this error:

...
  File "os/__init__.py", line 32, in <module>
  File "ffilib.py", line 43, in libc
  File "ffilib.py", line 39, in open
  File "ffilib.py", line 33, in open
OSError: [Errno 2] ENOENT

On further investigation, I found that libc major version has been upgraded to 7, and ffilib.py is only looking for versions up to 6.

$ ls /lib/libc.so*
/lib/libc.so.7

return open("libc", 6)

Changing the 6 to 7 fixed the issue.

Only making a note here since the readme for unix-ffi says: "This directory is unmaintained." and I would like to have a reference come up in searches when someone encounters the error.

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