Package Details: python-trezor-agent-git v0.14.7.r6.gba8a1ba-1

Git Clone URL: https://aur.archlinux.org/python-trezor-agent-git.git (read-only, click to copy)
Package Base: python-trezor-agent-git
Description: Hardware-based SSH/PGP agent (Trezor only)
Upstream URL: https://github.com/romanz/trezor-agent
Licenses: LGPL3
Conflicts: python-trezor-agent
Provides: python-trezor-agent
Submitter: digital_mystik
Maintainer: digital_mystik
Last Packager: digital_mystik
Votes: 2
Popularity: 0.000027
First Submitted: 2022-02-05 20:34 (UTC)
Last Updated: 2023-05-14 22:59 (UTC)

Latest Comments

redfish commented on 2024-06-24 06:55 (UTC) (edited on 2024-06-24 06:56 (UTC) by redfish)

@digital_mystik: suggesting patch to remove the dependency on that backported shutil.which module. That backport is not needed in Python 3 (it was a backport from Python 3 into Python 2). I sent a pull request upstream to remove the dependency from setup.py. Meanwhile, apply the same patch in prepare() and remove the package python-backports.shutil_which from AUR. Thank you. Patch to PKGBUILD repo: https://gist.githubusercontent.com/radfish/87a4a8b12817b29898d8ea87a7088d3f/raw/c2be694049867461d906f741355ec226f310ca5d/0001-patch-to-remove-backported-shutils.patch

@guitarist67: you might need to reinstall the python-bech32 package even if it is already installed, because when python package gets updated, the AUR packages need to be rebuilt. You might need to do it manually if your aur helper didn't trigger a rebuild or the process failed for some reason.

guitarist67 commented on 2023-06-20 20:16 (UTC) (edited on 2023-06-20 20:16 (UTC) by guitarist67)

I've installed:

Name            : python-trezor-agent-git
Version         : v0.14.7.r7.g2b49eac-1

Trying to run:

$ trezor-agent 
Traceback (most recent call last):
  File "/usr/bin/trezor-agent", line 33, in <module>
    sys.exit(load_entry_point('trezor-agent==0.12.0', 'console_scripts', 'trezor-agent')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/trezor-agent", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/bin/trezor_agent.py", line 1, in <module>
    from libagent import age, signify, gpg, ssh
  File "/usr/lib/python3.11/site-packages/libagent/age/__init__.py", line 17, in <module>
    import bech32
ModuleNotFoundError: No module named 'bech32'

I believe that bech32 is installed:

$ yay -Ss bech32
aur/python-bech32 1.2.0-1 (+1 0.00) (Installed)
    Pieter Wuille's reference implementation for Bech32 and segwit addresses

By the way, this command does not work:

$ trezor_agent.py 
/usr/bin/trezor_agent.py: line 1: from: command not found
/usr/bin/trezor_agent.py: line 2: from: command not found
/usr/bin/trezor_agent.py: line 4: syntax error near unexpected token `('
/usr/bin/trezor_agent.py: line 4: `age_tool = lambda: age.main(DeviceType)'

digital_mystik commented on 2023-02-21 02:10 (UTC)

hello Strykar, where are you seeing these two dependencies (not seeing them in the setup files)?

Strykar commented on 2023-02-20 20:54 (UTC)

Missing two python dependencies:

simple-rlp
construct-classes