Skip to content

rig_remote doesn't start due to hamlib problem on arch #108

@Marzona

Description

@Marzona

OS: Arch Linux, kernel is 6.19.12-arch1-

error message:

ImportError: The Hamlib Python module is required for the HamLib backend. Install it with: pip install Hamlib  (also needs libhamlib4 system package)

This is the whole backtrace:

rig-remote on  master is 📦 v3.1 via 🐍 v3.14.4 (rig-remote) took 2s 
❯ rig_remote 
Traceback (most recent call last):
  File "/home/mic/build/rig-remote/src/rig_remote/rig_backends/hamlib_rigctl.py", line 37, in _hamlib
    return importlib.import_module("Hamlib")
           ~~~~~~~~~^^^^^^^^^^
  File "/usr/lib/python3.14/importlib/_init_.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1335, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'Hamlib'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/mic/build/rig-remote/src/rig_remote/ui_renderer.py", line 212, in <lambda>
    self.params[btn_connect].clicked.connect(lambda: self.cb_connect_rig(rig_number))
                                                     ~~~~~~~^^^^^^^^^^^^
  File "/home/mic/build/rig-remote/src/rig_remote/ui_handlers.py", line 388, in cb_connect_rig
    rig.connect()
    ~~~~~^^
  File "/home/mic/build/rig-remote/src/rig_remote/rig_backends/hamlib_rigctl.py", line 68, in connect
    hl = _hamlib()
  File "/home/mic/build/rig-remote/src/rig_remote/rig_backends/hamlib_rigctl.py", line 39, in _hamlib
    raise ImportError(
    ...<2 lines>...
    ) from exc
ImportError: The Hamlib Python module is required for the HamLib backend. Install it with: pip install Hamlib  (also needs libhamlib4 system package)

executing

python -m venv --system-site-packages .venv

seems to help

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions