You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems the ffi.verify() call wants write access to neighbouring files, and so importing wlroots.ffi_build raises a PermissionError when a user does not havewrite permissions to /usr/lib. This is the stack trace:
>>> import wlroots.ffi_build
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.10/site-packages/wlroots/ffi_build.py", line 2408, in <module>
check_version()
File "/usr/lib/python3.10/site-packages/wlroots/ffi_build.py", line 44, in check_version
wlroots_version = load_wlroots_version()
File "/usr/lib/python3.10/site-packages/wlroots/ffi_build.py", line 36, in load_wlroots_version
lib = ffi.verify("#include <wlr/version.h>")
File "/usr/lib/python3.10/site-packages/cffi/api.py", line 468, in verify
lib = self.verifier.load_library()
File "/usr/lib/python3.10/site-packages/cffi/verifier.py", line 104, in load_library
self._write_source()
File "/usr/lib/python3.10/site-packages/cffi/verifier.py", line 193, in _write_source
with open(self.sourcefilename, "w") as fp:
PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.10/site-packages/wlroots/__pycache__/_cffi__x58fcf130xd9c61baf.c'
This is coming from the check_version(). Perhaps we can have some kind of flag to disable the check? The use-case here is not building pywlroots per se, but building another CFFI module that depends on it.
The text was updated successfully, but these errors were encountered:
It seems the
ffi.verify()
call wants write access to neighbouring files, and so importingwlroots.ffi_build
raises aPermissionError
when a user does not havewrite permissions to /usr/lib. This is the stack trace:This is coming from the
check_version()
. Perhaps we can have some kind of flag to disable the check? The use-case here is not building pywlroots per se, but building another CFFI module that depends on it.The text was updated successfully, but these errors were encountered: