b4 cannot be built without tui extra?

Maxime Ripard <[email protected]>
Newsgroups org.kernel.linux.tools
Message-ID <20260515-uber-pigeon-of-opportunity-c3bb74@houat>
Hi Konstantin,

I've been trying to update the b4 fedora package to 0.15.* and all
releases so far seem to error out when building without the tui extra:

+ /usr/bin/python3 -sP /usr/lib/rpm/redhat/import_all_modules.py -f /builddir/build/BUILD/python-b4-0.15.2-build/python-b4-0.15.2-1.fc45.x86_64-pyproject-modules
Check import: b4
Check import: b4.command
Check import: b4.diff
Check import: b4.dig
Check import: b4.ez
Check import: b4.kr
Check import: b4.mbox
Check import: b4.pr
Check import: b4.review
Check import: b4.review.checks
Check import: b4.review.messages
Check import: b4.review.tracking
Check import: b4.review_tui
Traceback (most recent call last):
  File "/usr/lib/rpm/redhat/import_all_modules.py", line 106, in import_modules
    importlib.import_module(module)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/usr/lib64/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 1342, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 759, in exec_module
  File "<frozen importlib._bootstrap>", line 491, in _call_with_frames_removed
  File "/builddir/build/BUILD/python-b4-0.15.2-build/BUILDROOT/usr/lib/python3.14/site-packages/b4/review_tui/__init__.py", line 1, in <module>
    from b4.review_tui._common import (
    ...<4 lines>...
    )
  File "/builddir/build/BUILD/python-b4-0.15.2-build/BUILDROOT/usr/lib/python3.14/site-packages/b4/review_tui/_common.py", line 27, in <module>
    from textual.app import ComposeResult
ModuleNotFoundError: No module named 'textual'
Check import: b4.ty
Failed to import: b4.review_tui
error: Bad exit status from /var/tmp/rpm-tmp.rHqgoF (%check)
    Bad exit status from /var/tmp/rpm-tmp.rHqgoF (%check)

it looks like b4/review_tui is included even if the extra isn't
selected, which would not install textual?

Maxime
signature.asc (application/pgp-signature, 273 B)
-----BEGIN PGP SIGNATURE-----

iJUEABMJAB0WIQTkHFbLp4ejekA/qfgnX84Zoj2+dgUCagbXzwAKCRAnX84Zoj2+
dn62AX91QC45+wBcSuOejYX0DkNvQhOe+dfRWIFeihGCm+xp6EeYpSCcu6y/zCGh
LVvz4OwBf3W20ezwxr2ruzisfZjfM78Uvyfy3LW1PHMzpp6GaLhsdFObM7amLxT2
YkbVLqyCeA==
=GwXb
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.