익명 15:13

Trouble with HWI

Trouble with HWI

I have downloaded and installed hardware wallet interface, here is the output that I'm getting from ./hwi.py enumerate:

Traceback (most recent call last):
  File "/home/eoin/HWI/./hwi.py", line 7, in <module>
    main()
  File "/home/eoin/HWI/hwilib/_cli.py", line 304, in main
    result = process_commands(sys.argv[1:])
  File "/home/eoin/HWI/hwilib/_cli.py", line 270, in process_commands
    return args.func(args)
  File "/home/eoin/HWI/hwilib/_cli.py", line 63, in enumerate_handler
    return enumerate(password=args.password, expert=args.expert, chain=args.chain)
  File "/home/eoin/HWI/hwilib/commands.py", line 117, in enumerate
    result.extend(imported_dev.enumerate(password, expert, chain))
  File "/home/eoin/HWI/hwilib/devices/trezor.py", line 857, in enumerate
    devs.extend(webusb.WebUsbTransport.enumerate())
  File "/home/eoin/HWI/hwilib/devices/trezorlib/transport/webusb.py", line 130, in enumerate
    dev.getProduct()
  File "/home/eoin/.local/lib/python3.10/site-packages/usb1/__init__.py", line 2003, in getProduct
    return self.open().getProduct()
  File "/home/eoin/.local/lib/python3.10/site-packages/usb1/__init__.py", line 2055, in open
    mayRaiseUSBError(libusb1.libusb_open(self.device_p, byref(handle)))
  File "/home/eoin/.local/lib/python3.10/site-packages/usb1/__init__.py", line 127, in mayRaiseUSBError
    __raiseUSBError(value)
  File "/home/eoin/.local/lib/python3.10/site-packages/usb1/__init__.py", line 119, in raiseUSBError
    raise __STATUS_TO_EXCEPTION_DICT.get(value, __USBError)(value)
usb1.USBErrorAccess: LIBUSB_ERROR_ACCESS [-3]

What is the problem here? It is supposed to tell me the device type and device path, but instead this is what I am getting.



Top Answer/Comment:

That error means that don't have permission to access the USB device associated with your hardware wallet (which is why using the sudo prefix "works").

Assuming you're running on linux (and subscribe to the principle of least privilege), you'll want to follow the instructions in hwilib/udev/README.md to instruct udev to grant your user ID access.

상단 광고의 [X] 버튼을 누르면 내용이 보입니다