From 8cff9b5a3922a0787798190c59ae5ef9e71635c6 Mon Sep 17 00:00:00 2001 From: balloonalpha <196304794+balloonalpha@users.noreply.github.com> Date: Sun, 16 Feb 2025 18:36:20 +0800 Subject: [PATCH 1/2] Add `logs` directory. --- .gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .gitkeep diff --git a/.gitkeep b/.gitkeep new file mode 100644 index 0000000..e69de29 From 06ca428f185456265e348c7b49947c3ce05e3691 Mon Sep 17 00:00:00 2001 From: balloonalpha <196304794+balloonalpha@users.noreply.github.com> Date: Sun, 16 Feb 2025 18:25:36 +0800 Subject: [PATCH 2/2] Add hint for permission denying. Provide potential fix to permission issues. --- edlclient/Library/Connection/usblib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/edlclient/Library/Connection/usblib.py b/edlclient/Library/Connection/usblib.py index 6b3296e..fb059ea 100755 --- a/edlclient/Library/Connection/usblib.py +++ b/edlclient/Library/Connection/usblib.py @@ -244,6 +244,8 @@ class usb_class(DeviceClass): self.device.set_configuration() self.configuration = self.device.get_active_configuration() if e.errno == 13: + self.error("Permission denied accessing {:04x}:{:04x}.".format(self.vid,self.pid)) + self.info("Potential fix (update udev rules): sudo echo 'SUBSYSTEM==\"usb\",ATTRS{{idVendor}}==\"{:04x}\",ATTRS{{idProduct}}==\"{:04x}\",MODE=\"0666\"' >> /etc/udev/rules.d/99-edl.rules".format(self.vid,self.pid)) self.backend = usb.backend.libusb0.get_backend() self.device = usb.core.find(idVendor=self.vid, idProduct=self.pid, backend=self.backend) if self.configuration is None: