Error while running bitbake
Sriram Chadalavada
When I try to: /poky/build$ bitbake core-image-minimal, bitbake fails with the following error: Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized ModuleNotFoundError: No module named 'encodings' On StackOverflow, I found suggestion to set PYTHONPATH and PYTHONHOME environment variables but that caused other errors. I'm attaching the bitbake log. Please suggest what I'm missing and need to change. Thank you! |
|
Hi, please provide more details like the messages printed by bitbake at the top of the log showing your Host distro. Whis Yocto version are you using? Did you properly install the required packages? Are you using a Yocto compatible distro ? -- |
|
Sriram Chadalavada
Hi Marco, Here is the top of the log: Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] Python path configuration: PYTHONHOME = (not set) PYTHONPATH = (not set) program name = 'bitbake-server' isolated = 0 environment = 1 user site = 1 import site = 1 sys._base_executable = '/home/popossri/poky/bitbake/bin/bitbake-server' sys.base_prefix = '/tmp/build/80754af9/python_1593706424329/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho' sys.base_exec_prefix = '/tmp/build/80754af9/python_1593706424329/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho' sys.executable = '/home/popossri/poky/bitbake/bin/bitbake-server' sys.prefix = '/tmp/build/80754af9/python_1593706424329/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho' sys.exec_prefix = '/tmp/build/80754af9/python_1593706424329/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho' sys.path = [ '/tmp/build/80754af9/python_1593706424329/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python38.zip', '/tmp/build/80754af9/python_1593706424329/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.8', '/tmp/build/80754af9/python_1593706424329/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/lib-dynload', ] Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized ModuleNotFoundError: No module named 'encodings' Yocto version: /poky$ git status On branch kirkstoneYour branch is up to date with 'origin/kirkstone'. I just followed steps from the Yocto Quick build (https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html) About using a Yocto compatible distro, here are the details: Operating System: Pop!_OS 22.04 LTS ( derived from Ubuntu 22.04 LTS, so I assumed would be compatible with Yocto, but is it possible I'm wrong?) Kernel: Linux 5.18.10-76051810-generic I'll repeat this in Ubuntu 22.04 docker container and let you know how it goes. On Sun, Nov 13, 2022 at 4:32 AM Marco Cavallini <koansoftware@...> wrote:
|
|
Sriram Chadalavada
So, I was able to build successfully using Ubuntu 22.04 docker container. It looks something in my host OS environment didn't quite agree with Yocto. On Sun, Nov 13, 2022 at 12:34 PM Sriram Chadalavada via lists.yoctoproject.org <chsriram=gmail.com@...> wrote:
|
|