khadas / fenix

One-stop script set to build Ubuntu/Debian images
GNU General Public License v2.0
208 stars 135 forks source link

RuntimeError: Bad magic number in .pyc file #207

Closed WilsonChang closed 1 year ago

WilsonChang commented 1 year ago

I keep on got following error, ask for help:

make[1]: Leaving directory '/home/shikong/project/khadas/fenix/build/u-boot-mainline-v2021.04' [i] inject dtb logo 2172+0 records in 2172+0 records out 2172 bytes (2.2 kB, 2.1 KiB) copied, 0.00155014 s, 1.4 MB/s 3180+0 records in 3180+0 records out 3180 bytes (3.2 kB, 3.1 KiB) copied, 0.00226436 s, 1.4 MB/s RuntimeError: Bad magic number in .pyc file make: *** [Makefile:2: all] Error 1

my system: Distributor ID: Ubuntu Description: Ubuntu 20.04.5 LTS Release: 20.04 Codename: focal

Python 3.8.10 (default, Jun 22 2022, 20:18:18) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.

thanks!

WilsonChang commented 1 year ago

ln python to python2 is ok.