pack_rootfs build failed: : AssertionError: SRE module mismatch #117

Open
opened 2026-01-15 05:02:58 -05:00 by elliott10 · 0 comments
elliott10 commented 2026-01-15 05:02:58 -05:00 (Migrated from github.com)

When build rootfs using command: pack_rootfs

This error will be encountered:

pack_rootfs

Traceback (most recent call last):
  File "/home/os/.local/bin/cmake", line 3, in <module>
    import re
  File "/home/os/riscv/sg2002/LicheeRV-Nano-Build/buildroot/output/per-package/opencv4/host/riscv64-buildroot-linux-musl/sysroot/usr/lib/python3.11/re/__init__.py", line 125, in <module>
    from . import _compiler, _parser
  File "/home/os/riscv/sg2002/LicheeRV-Nano-Build/buildroot/output/per-package/opencv4/host/riscv64-buildroot-linux-musl/sysroot/usr/lib/python3.11/re/_compiler.py", line 18, in <module>
    assert _sre.MAGIC == MAGIC, "SRE module mismatch"
AssertionError: SRE module mismatch
make[2]: *** [package/pkg-generic.mk:273: /home/os/riscv/sg2002/LicheeRV-Nano-Build/buildroot/output/build/opencv4-4.9.0/.stamp_configured] Error 1
When build rootfs using command: `pack_rootfs` This error will be encountered: ``` pack_rootfs Traceback (most recent call last): File "/home/os/.local/bin/cmake", line 3, in <module> import re File "/home/os/riscv/sg2002/LicheeRV-Nano-Build/buildroot/output/per-package/opencv4/host/riscv64-buildroot-linux-musl/sysroot/usr/lib/python3.11/re/__init__.py", line 125, in <module> from . import _compiler, _parser File "/home/os/riscv/sg2002/LicheeRV-Nano-Build/buildroot/output/per-package/opencv4/host/riscv64-buildroot-linux-musl/sysroot/usr/lib/python3.11/re/_compiler.py", line 18, in <module> assert _sre.MAGIC == MAGIC, "SRE module mismatch" AssertionError: SRE module mismatch make[2]: *** [package/pkg-generic.mk:273: /home/os/riscv/sg2002/LicheeRV-Nano-Build/buildroot/output/build/opencv4-4.9.0/.stamp_configured] Error 1 ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
maxpeterkaya/LicheeRV-Nano-Build#117
No description provided.