From 6f87e25f26f08b0ca3b8be1402aa719ef6146b3c Mon Sep 17 00:00:00 2001 From: Pablo Curiel Date: Sat, 20 Feb 2021 14:27:49 -0400 Subject: [PATCH] Add comments about USB backend errors. --- nxdt_host.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nxdt_host.py b/nxdt_host.py index d99d477..02175e7 100644 --- a/nxdt_host.py +++ b/nxdt_host.py @@ -24,6 +24,11 @@ # This script depends on PyUSB and tqdm. # You can install both with `pip install pyusb tqdm`. +# libusb needs to be installed as well. PyUSB uses it as its USB backend. Otherwise, a NoBackend exception will be raised while calling PyUSB functions. +# Under Windows, the recommended way to do this is by installing the libusb driver with Zadig (https://zadig.akeo.ie). This is a common step in Switch modding guides. +# Under MacOS, use `brew install libusb` to install libusb via Homebrew. +# Under Linux, you should be good to go from the start. If not, just use the packet manager from your distro to install libusb. + import os import usb.core import usb.util