目前共有19篇帖子。
字體大小:較小 - 100% (默認)▼  內容轉換:不轉換▼
 
點擊 回復
41 18
ModuleNotFoundError: No module named 'formatter'
巨大八爪鱼
武林盟主 二十一級
回復
1樓 發表於:2026-11-30 20:11
[oct1158@oct1158-fedora Luckfox_Lyra_SDK_250815]$ .repo/repo/repo sync -l
warning: Python 3 support is currently experimental. YMMV.
Please use Python 2.6 - 2.7 instead.
/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/.repo/repo/main.py:19: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses
  import imp
Traceback (most recent call last):
  File "/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/.repo/repo/main.py", line 46, in <module>
    from subcmds.version import Version
  File "/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/.repo/repo/subcmds/__init__.py", line 33, in <module>
    mod = __import__(__name__,
  File "/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/.repo/repo/subcmds/help.py", line 19, in <module>
    from formatter import AbstractFormatter, DumbWriter
ModuleNotFoundError: No module named 'formatter'
[oct1158@oct1158-fedora Luckfox_Lyra_SDK_250815]$
巨大八爪鱼
武林盟主 二十一級
回復
2樓 發表於:2026-12-1 09:06
【解决办法】
安装python2.7:sudo dnf install python2
修改.repo/repo/repo文件,将第一行的#!/usr/bin/env python改成#!/usr/bin/env python2。
然后再次运行.repo/repo/repo sync -l
巨大八爪鱼
武林盟主 二十一級
回復
3樓 發表於:2026-12-1 09:16
问题解决了。
[oct1158@oct1158-fedora Luckfox_Lyra_SDK_250815]$ .repo/repo/repo sync -l
Updating files: 100% (265/265), done.
Updating files: 100% (19895/19895), done.files:   4% (972/19895)
Updating files: 100% (1011/1011), done.g files:  19% (193/1011)
Updating files: 100% (255/255), done.ing files:   8% (22/255)
Updating files: 100% (105/105), done.ing files:  19% (20/105)
Updating files: 100% (193/193), done.ting files:  28% (55/193)
Updating files: 100% (32/32), done.dating files:  50% (16/32)
Updating files: 100% (5799/5799), done.ng files:  44% (2605/5799)
Updating files: 100% (33/33), done.dating files:  66% (22/33)
Updating files: 100% (62/62), done.dating files:  70% (44/62)
Updating files: 100% (1902/1902), done.ng files:  46% (884/1902)
Updating files: 100% (83052/83052), done. files:   7% (6641/83052)
Updating files: 100% (5722/5722), done.ng files:   0% (10/5722)
Updating files: 100% (6910/6910), done.ng files:  14% (1027/6910)
Updating files: 100% (551/551), done.ting files:  71% (392/551)
Updating files: 100% (38438/38438), done. files:   7% (2707/38438)
Updating files: 100% (260/260), done.ting files:   1% (4/260)
Updating files: 100% (13915/13915), done. files:  45% (6337/13915)
Updating files: 100% (6605/6605), done.ng files:  29% (1933/6605)
Updating files: 100% (5700/5700), done.ng files:  30% (1711/5700)
Syncing work tree: 100% (45/45), done.  

[oct1158@oct1158-fedora Luckfox_Lyra_SDK_250815]$

巨大八爪鱼
武林盟主 二十一級
回復
4樓 發表於:2026-12-1 09:18
[oct1158@oct1158-fedora Luckfox_Lyra_SDK_250815]$ ./build.sh lunch

############### Rockchip Linux SDK ###############

Manifest: luckfox_linux6.1_rk3506_release_v1.4_20250620.xml

Log colors: message notice warning error fatal

Log saved at /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/output/sessions/2026-12-01_09-17-26
You're building on Linux
  Lunch menu...pick the Luckfox Lyra hardware version:
  选择 Luckfox Lyra 硬件版本:
                [0] RK3506G_Luckfox_Lyra
                [1] RK3506G_Luckfox_Lyra_Plus
                [2] RK3506B_Luckfox_Lyra_Ultra
                [3] RK3506B_Luckfox_Lyra_Ultra_W
                [4] RK3506B_Luckfox_Lyra_Zero_W
                [5] RK3506B_Luckfox_Lyra_Pi
                [6] RK3506B_Luckfox_Lyra_Pi_W
                [7] custom
Which would you like? [0~7][default:0]: 5
  Lunch menu...pick the boot medium:
  选择启动媒介:
                [0] SD_CARD
                [1] EMMC
Which would you like? [0~1][default:0]: 1
  Lunch menu...pick the system version:
  选择系统版本:
                [0] Buildroot
Which would you like? [0~1][default:0]: 0
Switching to defconfig: /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/device/rockchip/.chip/luckfox_lyra_pi_buildroot_emmc_defconfig
mkdir -p /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/output/kconf/lxdialog
make CC="gcc" HOSTCC="gcc" \
    obj=/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/output/kconf -C /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/device/rockchip/common/kconfig -f Makefile.br conf
make[1]: Entering directory '/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/device/rockchip/common/kconfig'
gcc -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE  -I/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/output/kconf -DCONFIG_=\"\"  -MM *.c > /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/output/kconf/.depend 2>/dev/null || :
gcc -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE  -I/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/output/kconf -DCONFIG_=\"\"   -c conf.c -o /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/output/kconf/conf.o
gcc -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE  -I/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/output/kconf -DCONFIG_=\"\"  -I. -c /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/output/kconf/zconf.tab.c -o /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/output/kconf/zconf.tab.o
gcc -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600  -DCURSES_LOC="<ncurses.h>" -DNCURSES_WIDECHAR=1 -DLOCALE  -I/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/output/kconf -DCONFIG_=\"\"   /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/output/kconf/conf.o /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/output/kconf/zconf.tab.o  -o /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/output/kconf/conf
rm /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/output/kconf/zconf.tab.c
make[1]: Leaving directory '/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/device/rockchip/common/kconfig'
#
# configuration written to /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/output/.config
#
Using current kernel version(6.1)
[oct1158@oct1158-fedora Luckfox_Lyra_SDK_250815]$

巨大八爪鱼
武林盟主 二十一級
回復
5樓 發表於:2026-12-1 09:22
巨大八爪鱼
武林盟主 二十一級
回復
6樓 發表於:2026-12-1 09:23
 
巨大八爪鱼:解决办法:sudo dnf install bison flex
  2026-12-1 09:35 回復
巨大八爪鱼
武林盟主 二十一級
回復
7樓 發表於:2026-12-1 09:28
[oct1158@oct1158-fedora Luckfox_Lyra_SDK_250815]$ sudo dnf install bison flex
[sudo] password for oct1158:
Copr repo for PyCharm owned by phracek                                                                                                            2.5  B/s |  14  B     00:05    
Errors during downloading metadata for repository 'phracek-PyCharm':
  - Status code: 404 for https://packages.redhat.com/api/pulp-content/public-copr/phracek/PyCharm/fedora-36-x86_64/repodata/repomd.xml (IP: 23.211.14.224)
Error: Failed to download metadata for repo 'phracek-PyCharm': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Ignoring repositories: phracek-PyCharm
Last metadata expiration check: 2:24:07 ago on Tue 01 Dec 2026 07:00:01.
Dependencies resolved.
==================================================================================================================================================================================
 Package                                 Architecture                             Version                                          Repository                                Size
==================================================================================================================================================================================
Installing:
 bison                                   x86_64                                   3.8.2-2.fc36                                     fedora                                   986 k
 flex                                    x86_64                                   2.6.4-10.fc36                                    fedora                                   307 k
Installing dependencies:
 m4                                      x86_64                                   1.4.19-3.fc36                                    fedora                                   296 k

Transaction Summary
==================================================================================================================================================================================
Install  3 Packages

Total download size: 1.6 M
Installed size: 5.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): flex-2.6.4-10.fc36.x86_64.rpm                                                                                                              321 kB/s | 307 kB     00:00    
(2/3): m4-1.4.19-3.fc36.x86_64.rpm                                                                                                                306 kB/s | 296 kB     00:00    
(3/3): bison-3.8.2-2.fc36.x86_64.rpm                                                                                                              558 kB/s | 986 kB     00:01    
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                             681 kB/s | 1.6 MB     00:02     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                          1/1
  Installing       : m4-1.4.19-3.fc36.x86_64                                                                                                                                  1/3
  Installing       : bison-3.8.2-2.fc36.x86_64                                                                                                                                2/3
  Installing       : flex-2.6.4-10.fc36.x86_64                                                                                                                                3/3
  Running scriptlet: flex-2.6.4-10.fc36.x86_64                                                                                                                                3/3
  Verifying        : bison-3.8.2-2.fc36.x86_64                                                                                                                                1/3
  Verifying        : flex-2.6.4-10.fc36.x86_64                                                                                                                                2/3
  Verifying        : m4-1.4.19-3.fc36.x86_64                                                                                                                                  3/3

Installed:
  bison-3.8.2-2.fc36.x86_64                                  flex-2.6.4-10.fc36.x86_64                                  m4-1.4.19-3.fc36.x86_64                                 

Complete!
[oct1158@oct1158-fedora Luckfox_Lyra_SDK_250815]$

巨大八爪鱼
武林盟主 二十一級
回復
8樓 發表於:2026-12-1 09:35
/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/device/rockchip/common/scripts/check-kernel.sh: line 93: lz4: command not found
Your lz4 is too old for kernel:
Please update it:
git clone https://github.com/lz4/lz4.git --depth 1 -b v1.9.4
cd lz4
sudo make install -j8
解决办法:sudo dnf install lz4
巨大八爪鱼
武林盟主 二十一級
回復
9樓 發表於:2026-12-1 09:41
Your openssl header is missing
Please install it:
sudo apt-get install libssl-dev
解决办法:sudo dnf install openssl-devel
巨大八爪鱼
武林盟主 二十一級
回復
10樓 發表於:2026-12-1 09:46
Your gmp header is missing
Please install it:
sudo apt-get install libgmp-dev
解决办法:sudo dnf install gmp-devel
巨大八爪鱼
武林盟主 二十一級
回復
11樓 發表於:2026-12-1 09:49
Your mpc header is missing
Please install it:
sudo apt-get install libmpc-dev
解决办法:sudo dnf install libmpc-devel
巨大八爪鱼
武林盟主 二十一級
回復
12樓 發表於:2026-12-1 10:11
Your unbuffer is missing
Please install it:
sudo apt-get install expect expect-dev
解决办法:sudo dnf install expect-devel
巨大八爪鱼
武林盟主 二十一級
回復
13樓 發表於:2026-12-1 10:16
2026-12-01T10:14:53
2026-12-01T10:14:53 You must install GNU patch
2026-12-01T10:14:53 make: *** [support/dependencies/dependencies.mk:27: dependencies] Error 1
解决办法:sudo dnf install patch
巨大八爪鱼
武林盟主 二十一級
回復
14樓 發表於:2026-12-1 10:23
2026-12-01T10:17:46 Your Perl installation is not complete enough; at least the following
2026-12-01T10:17:46 modules are missing:
2026-12-01T10:17:46
2026-12-01T10:17:46 English
2026-12-01T10:17:46 ExtUtils::MakeMaker
2026-12-01T10:17:46 Thread::Queue
2026-12-01T10:17:46 FindBin
2026-12-01T10:17:46 IPC::Cmd
2026-12-01T10:17:46
2026-12-01T10:17:46 make: *** [support/dependencies/dependencies.mk:27: dependencies] Error 1
2026-12-01T10:17:46 make: Leaving directory '/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot'
解决办法:
sudo dnf install perl-English
sudo dnf install perl-ExtUtils-MakeMaker
sudo dnf install perl-Thread-Queue
sudo dnf install perl-FindBin
sudo dnf install perl-IPC-Cmd
巨大八爪鱼
武林盟主 二十一級
回復
16樓 發表於:2026-12-1 10:50
make[1]: Leaving directory '/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot/support/kconfig'
  GEN     /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot/output/rockchip_rk3506_luckfox/Makefile
Parsing defconfig: /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot/configs/rockchip_rk3506_luckfox_defconfig
: No such file or directorykchip/base/base.config
: No such file or directorykchip/fs/vfat.config
' does not exist.  Exit.ockchip/base/base.config
***
*** Can't find default configuration "/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot/output/rockchip_rk3506_luckfox/.config.in"!
***
make: *** [Makefile:1060: rockchip_rk3506_luckfox_defconfig] Error 1
make: Leaving directory '/home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/buildroot'
 
巨大八爪鱼:整个文件夹全部删了推倒重来。
  2026-12-2 09:42 回復
巨大八爪鱼
武林盟主 二十一級
回復
17樓 發表於:2026-12-2 09:36
Linking /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/output/firmware/parameter.txt from /home/oct1158/Documents/Code/C/Luckfox_Lyra_SDK_250815/device/rockchip/.chip/parameter-lyra-emmc.txt...
/usr/bin/which: no fakeroot in (/home/oct1158/.local/bin:/home/oct1158/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin)

Your fakeroot is missing
Please install it:
sudo apt-get install fakeroot
解决办法:sudo dnf install fakeroot
巨大八爪鱼
武林盟主 二十一級
回復
18樓 發表於:2026-12-2 10:00
恭喜编译成功!
回覆帖子
內容:
用戶名: 您目前是匿名發表。
驗證碼:
看不清?換一張
(快捷鍵:Ctrl+Enter)
本帖信息
點擊數:41 回複數:18
作者:巨大八爪鱼
最後回覆:巨大八爪鱼
最後回復時間:2026-12-2 10:00
本吧熱門帖子
公告板