Python’s ioctl function returns FileNotFoundError: [Errno 2] No such file or directory while the C function with the same args succeeds
I am creating a driver for an existing python library with a device that communicates via ioctl. The vendor of the device provided some sample C code that I have been using for reference but I am stuck on the most basic client connect call for the device. When I make the ioctl call it returns the error FileNotFoundError: [Errno 2] No such file or directory even though the file does exist and I have permission to access it since I have the permissions in the C code which runs fine.