[Bug]: missing build dep python3-pygments

Description

  1.  

    1.  

      1. What happened?

```

Wrote 194 lines to /home/jfliu/dev/armbian/build/cache/sources/linux-kernel-worktree/6.12_rockchip64_arm64/arch/arm64/boot/dts/rockchip/Makefile
Summary: kernel patching: 187 total patches; 187 applied; 25 with problems; 24 needs_rebase; 1 not_mbox; 1 invalid_diff
Traceback (most recent call last):
File "/home/jfliu/dev/armbian/build/lib/tools/patching.py", line 444, in <module>
from rich.syntax import Syntax
File "/home/jfliu/dev/armbian/build/cache/pip/base/lib/python3.12/site-packages/rich/syntax.py", line 21, in <module>
from pygments.lexer import Lexer
ModuleNotFoundError: No module named 'pygments'
--> (167) ERROR: Error 1 occurred in main shell [ at /home/jfliu/dev/armbian/build/lib/functions/logging/runners.sh:211
run_host_command_logged_raw() --> lib/functions/logging/runners.sh:211
run_host_command_logged() --> lib/functions/logging/runners.sh:193
kernel_main_patching_python() --> lib/functions/compilation/kernel-patching.sh:64
do_with_hooks() --> lib/functions/general/extensions.sh:567
do_with_logging() --> lib/functions/logging/section-logging.sh:81
kernel_main_patching() --> lib/functions/compilation/kernel-patching.sh:79
compile_kernel() --> lib/functions/compilation/kernel.sh:54
artifact_kernel_build_from_sources() --> lib/functions/artifacts/artifact-kernel.sh:240
artifact_build_from_sources() --> lib/functions/artifacts/artifacts-obtain.sh:34
obtain_complete_artifact() --> lib/functions/artifacts/artifacts-obtain.sh:280
do_with_default_build() --> lib/functions/main/default-build.sh:42
cli_artifact_run() --> lib/functions/cli/cli-artifact.sh:70
armbian_cli_run_command() --> lib/functions/cli/utils-cli.sh:136
cli_entrypoint() --> lib/functions/cli/entrypoint.sh:176
main() --> compile.sh:50
]
-->--> command failed with error code 1 after 7 seconds
```

  1.  

    1.  

      1. How to reproduce?

`PREFER_DOCKER=no ./compile.sh kernel-dtb BOARD=rock-5b BRANCH=current`

  1.  

    1.  

      1. Branch

main (main development branch)

  1.  

    1.  

      1. On which host OS are you running the build script and observing this problem?

Ubuntu 24.04 Noble

  1.  

    1.  

      1. Are you building on Windows WSL2?

  • [ ] Yes, my Ubuntu/Debian/OtherOS is running on WSL2

  1.  

    1.  

      1. Relevant log URL

https://paste.armbian.eu/ifusuxucid

  1.  

    1.  

      1. Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

Raised by: https://github.com/amazingfate

https://github.com/armbian/build/issues/7920

Checklist

hide

Activity

Show:

Details

Assignee

Reporter

Priority

Created March 7, 2025 at 9:42 AM
Updated March 7, 2025 at 9:42 AM