Hey, I'm the guy that commented on your youtube video yesterday. I've
installed the switcher controller but it doesn't seem to want to
connect to the switcher itself. When I run it via the command line it
gives me this output:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/local/share/switcher/gtk_switcher/atemwindow.py", line 53, in run
self.mixer = AtemProtocol(usb="auto")
File "/usr/local/lib/python3.8/dist-packages/pyatem-0.7.0-py3.8-linux-x86_64.egg/pyatem/protocol.py",
line 22, in __init__
self.transport = UsbProtocol(usb)
File "/usr/local/lib/python3.8/dist-packages/pyatem-0.7.0-py3.8-linux-x86_64.egg/pyatem/transport.py",
line 387, in __init__
self._detach_kernel()
File "/usr/local/lib/python3.8/dist-packages/pyatem-0.7.0-py3.8-linux-x86_64.egg/pyatem/transport.py",
line 405, in _detach_kernel
if self.handle.is_kernel_driver_active(i):
File "/usr/local/lib/python3.8/dist-packages/usb/core.py", line
1107, in is_kernel_driver_active
self._ctx.managed_open()
File "/usr/local/lib/python3.8/dist-packages/usb/core.py", line 113,
in wrapper
return f(self, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/usb/core.py", line 131,
in managed_open
self.handle = self.backend.open_device(self.dev)
File "/usr/local/lib/python3.8/dist-packages/usb/backend/libusb1.py",
line 804, in open_device
return _DeviceHandle(dev)
File "/usr/local/lib/python3.8/dist-packages/usb/backend/libusb1.py",
line 652, in __init__
_check(_lib.libusb_open(self.devid, byref(self.handle)))
File "/usr/local/lib/python3.8/dist-packages/usb/backend/libusb1.py",
line 604, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 13] Access denied (insufficient permissions)
When I open preferences it shows the switcher is there but when I
press connect I get this:
Connection settings changed
Closing old connection...
Starting new connection to 0.0.0.0
Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/usr/local/share/switcher/gtk_switcher/atemwindow.py", line 53, in run
self.mixer = AtemProtocol(usb="auto")
File "/usr/local/lib/python3.8/dist-packages/pyatem-0.7.0-py3.8-linux-x86_64.egg/pyatem/protocol.py",
line 22, in __init__
self.transport = UsbProtocol(usb)
File "/usr/local/lib/python3.8/dist-packages/pyatem-0.7.0-py3.8-linux-x86_64.egg/pyatem/transport.py",
line 387, in __init__
self._detach_kernel()
File "/usr/local/lib/python3.8/dist-packages/pyatem-0.7.0-py3.8-linux-x86_64.egg/pyatem/transport.py",
line 405, in _detach_kernel
if self.handle.is_kernel_driver_active(i):
File "/usr/local/lib/python3.8/dist-packages/usb/core.py", line
1107, in is_kernel_driver_active
self._ctx.managed_open()
File "/usr/local/lib/python3.8/dist-packages/usb/core.py", line 113,
in wrapper
return f(self, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/usb/core.py", line 131,
in managed_open
self.handle = self.backend.open_device(self.dev)
File "/usr/local/lib/python3.8/dist-packages/usb/backend/libusb1.py",
line 804, in open_device
return _DeviceHandle(dev)
File "/usr/local/lib/python3.8/dist-packages/usb/backend/libusb1.py",
line 652, in __init__
_check(_lib.libusb_open(self.devid, byref(self.handle)))
File "/usr/local/lib/python3.8/dist-packages/usb/backend/libusb1.py",
line 604, in _check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 13] Access denied (insufficient permissions)
I'm using Ubuntu on a Dell Inspiron-5558 if that matters.
Thanks in advance for the help
Hello Ben,
It's fairly obvious that you have a permissions problem at the libusb
level. You'll probably be able to confirm this by sudo running this.
Mark
happy openswitcher user
Op ma 25 jul. 2022 om 20:35 schreef Ben Hawley <benboybb@gmail.com>:
>
> Hey, I'm the guy that commented on your youtube video yesterday. I've
> installed the switcher controller but it doesn't seem to want to
> connect to the switcher itself. When I run it via the command line it
> gives me this output:
>
> Exception in thread Thread-1:
> Traceback (most recent call last):
> File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
> self.run()
> File "/usr/local/share/switcher/gtk_switcher/atemwindow.py", line 53, in run
> self.mixer = AtemProtocol(usb="auto")
> File "/usr/local/lib/python3.8/dist-packages/pyatem-0.7.0-py3.8-linux-x86_64.egg/pyatem/protocol.py",
> line 22, in __init__
> self.transport = UsbProtocol(usb)
> File "/usr/local/lib/python3.8/dist-packages/pyatem-0.7.0-py3.8-linux-x86_64.egg/pyatem/transport.py",
> line 387, in __init__
> self._detach_kernel()
> File "/usr/local/lib/python3.8/dist-packages/pyatem-0.7.0-py3.8-linux-x86_64.egg/pyatem/transport.py",
> line 405, in _detach_kernel
> if self.handle.is_kernel_driver_active(i):
> File "/usr/local/lib/python3.8/dist-packages/usb/core.py", line
> 1107, in is_kernel_driver_active
> self._ctx.managed_open()
> File "/usr/local/lib/python3.8/dist-packages/usb/core.py", line 113,
> in wrapper
> return f(self, *args, **kwargs)
> File "/usr/local/lib/python3.8/dist-packages/usb/core.py", line 131,
> in managed_open
> self.handle = self.backend.open_device(self.dev)
> File "/usr/local/lib/python3.8/dist-packages/usb/backend/libusb1.py",
> line 804, in open_device
> return _DeviceHandle(dev)
> File "/usr/local/lib/python3.8/dist-packages/usb/backend/libusb1.py",
> line 652, in __init__
> _check(_lib.libusb_open(self.devid, byref(self.handle)))
> File "/usr/local/lib/python3.8/dist-packages/usb/backend/libusb1.py",
> line 604, in _check
> raise USBError(_strerror(ret), ret, _libusb_errno[ret])
> usb.core.USBError: [Errno 13] Access denied (insufficient permissions)
>
> When I open preferences it shows the switcher is there but when I
> press connect I get this:
>
> Connection settings changed
> Closing old connection...
> Starting new connection to 0.0.0.0
> Exception in thread Thread-4:
> Traceback (most recent call last):
> File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
> self.run()
> File "/usr/local/share/switcher/gtk_switcher/atemwindow.py", line 53, in run
> self.mixer = AtemProtocol(usb="auto")
> File "/usr/local/lib/python3.8/dist-packages/pyatem-0.7.0-py3.8-linux-x86_64.egg/pyatem/protocol.py",
> line 22, in __init__
> self.transport = UsbProtocol(usb)
> File "/usr/local/lib/python3.8/dist-packages/pyatem-0.7.0-py3.8-linux-x86_64.egg/pyatem/transport.py",
> line 387, in __init__
> self._detach_kernel()
> File "/usr/local/lib/python3.8/dist-packages/pyatem-0.7.0-py3.8-linux-x86_64.egg/pyatem/transport.py",
> line 405, in _detach_kernel
> if self.handle.is_kernel_driver_active(i):
> File "/usr/local/lib/python3.8/dist-packages/usb/core.py", line
> 1107, in is_kernel_driver_active
> self._ctx.managed_open()
> File "/usr/local/lib/python3.8/dist-packages/usb/core.py", line 113,
> in wrapper
> return f(self, *args, **kwargs)
> File "/usr/local/lib/python3.8/dist-packages/usb/core.py", line 131,
> in managed_open
> self.handle = self.backend.open_device(self.dev)
> File "/usr/local/lib/python3.8/dist-packages/usb/backend/libusb1.py",
> line 804, in open_device
> return _DeviceHandle(dev)
> File "/usr/local/lib/python3.8/dist-packages/usb/backend/libusb1.py",
> line 652, in __init__
> _check(_lib.libusb_open(self.devid, byref(self.handle)))
> File "/usr/local/lib/python3.8/dist-packages/usb/backend/libusb1.py",
> line 604, in _check
> raise USBError(_strerror(ret), ret, _libusb_errno[ret])
> usb.core.USBError: [Errno 13] Access denied (insufficient permissions)
>
> I'm using Ubuntu on a Dell Inspiron-5558 if that matters.
> Thanks in advance for the help
--
Mark Van den Borre
Hogestraat 16
3000 Leuven, Belgiƫ
+32 486 961726