Package Details: python-hwilib 3.0.0-1

Git Clone URL: https://aur.archlinux.org/python-hwilib.git (read-only, click to copy)
Package Base: python-hwilib
Description: The Bitcoin Hardware Wallet Interface is a Python library and command line tool for interacting with hardware wallets.
Upstream URL: https://github.com/bitcoin-core/HWI
Licenses: MIT
Submitter: bitcoinlizard
Maintainer: bitcoinlizard
Last Packager: bitcoinlizard
Votes: 1
Popularity: 0.000000
First Submitted: 2021-05-15 03:58 (UTC)
Last Updated: 2024-04-12 01:46 (UTC)

Latest Comments

1 2 Next › Last »

hossbeast commented on 2023-04-02 17:53 (UTC)

@bitcoinlizard - thank you. I get a build-error with python-cbor - shared here https://aur.archlinux.org/packages/python-cbor

I filed a request with upstream regarding the bitbox dep - https://github.com/bitcoin-core/HWI/issues/675

bitcoinlizard commented on 2023-04-01 22:44 (UTC)

@hossbeast - Thank you for pointing out this issue. python-protobuf was a missing dependency in this PKGBUILD. I have pushed a new revision with python-protobuf and a couple of other missing dependencies. This should resolve your issue.

Indeed, python-bitbox02 seems like an odd required dependency but this is listed as a dependency by upstream:

https://github.com/bitcoin-core/HWI/blob/master/pyproject.toml

hossbeast commented on 2023-04-01 18:26 (UTC) (edited on 2023-04-01 19:52 (UTC) by hossbeast)

I don't know what the problem is, but I can see with strace, that error is printed after opening a file that's part of bitbox

/usr/lib/python3.10/site-packages/bitbox02/communication/generated/hww_pb2.py

I can rebuild and re-install the package with python-bitbox02 removed from depends, then remove python-bitbox2 from the system, and then I can then use hwi to interact with my device, though I need to ignore this warning,

WARNING:root:No module named 'bitbox02', required for bitbox02. Ignore if you do not want this device.

It seems like bitbox is actually an optional dependency, and it kind of stands out in the dependency list as the only one pertaining to one particular vendor.

Also, even with that done, hwi-qt fails to run without the bitbox02 dependency installed.

hossbeast commented on 2023-04-01 18:07 (UTC)

Is the build missing a step to generate some python protobuf code?

% hwi enumerate
Run `make py` to generate the protobuf messages

% which hwi
/usr/bin/hwi

% pacman -Qo /usr/bin/hwi
/usr/bin/hwi is owned by python-hwilib 2.2.1-1

% pacman -Qi python-hwilib
Name            : python-hwilib
Version         : 2.2.1-1
Build Date      : Sat 01 Apr 2023 10:46:23 AM PDT
Install Date    : Sat 01 Apr 2023 10:46:27 AM PDT

I used yay --rebuildtree to clean build python-hwilib and all dependencies

bitcoinlizard commented on 2022-05-10 02:49 (UTC)

@RealOrRandom - Sorry about that. Pacaur doesn't seem to mind or I would have fixed it sooner. You should be all set. Thanks for letting me know.

RealOrRandom commented on 2022-05-09 18:19 (UTC)

Hi, I saw you first pushed (erroneously) pkgrel=3 and then reverted to pkgrel=1. But this confuses a few tools, e.g., the web interface here lists the package as 2.1.0-3 and that's why my local AUR helper (pikaur) always believes that there's an update available and tries to reinstall the package everytime. Can I ask you to switch to pkgrel=3? (It's not a big deal in the end but I think it's cleaner to avoid decreasing the rel in all cases. I can imagine others have a similar issue.)

hossbeast commented on 2022-02-03 02:42 (UTC)

@bitcoinlizard thank you. I was able to resolve with yay -S --rebuildtree python-hwilib

bitcoinlizard commented on 2022-01-18 22:56 (UTC)

@hossbeast - This should be satisfied by python-bitbox02 which is a listed dependency.

I'm guessing that perhaps the issue is that Python just revved to 3.10. I would recommend rebuilding python-bitbox02 and then try running hwi-qt again. Very likely you will get an error for another package following rebuilding python-bitbox02. Really all of your AUR python packages need to be rebuilt following a version bump.

hossbeast commented on 2022-01-18 21:44 (UTC)

Is there an undocumented dependency?

0 % hwi-qt
ModuleNotFoundError: No module named 'bitbox02'

1 % pacman -Qi python-hwilib
Name            : python-hwilib
Version         : 2.0.2-3
Build Date      : Sat 15 Jan 2022 09:37:00 AM PST
Install Date    : Sat 15 Jan 2022 09:37:04 AM PST

RealOrRandom commented on 2021-06-13 07:56 (UTC)

Thanks, it works now.