Project

General

Profile

Building Root Filesystem 18.1 - Python Issue

Added by Jose Berlioz over 1 year ago

Hello,
I am trying to follow the guide for Building the Root Filesystem but I keep getting this error after trying to use bitbake:

Traceback (most recent call last):
File "/work/bitbake/bin/bitbake", line 31, in <module>
import bb
File "/work/bitbake/lib/bb/__init__.py", line 77, in <module>
import bb.msg
File "/work/bitbake/lib/bb/msg.py", line 32, in <module>
import bb.event
File "/work/bitbake/lib/bb/event.py", line 35, in <module>
import bb.compat
File "/work/bitbake/lib/bb/compat.py", line 3, in <module>
from collections import MutableMapping, KeysView, ValuesView, ItemsView, OrderedDict
ImportError: cannot import name 'MutableMapping' from 'collections' (/opt/poky/4.1/sysroots/x86_64-pokysdk-linux/usr/lib/python3.10/collections/__init__.py)

I think they might have updated the docker container and this is causing the issues. Can somebody take a look at this (and maybe tell me what I could be doing wrong)?

Thanks!
-Jose


Replies (1)

RE: Building Root Filesystem 18.1 - Python Issue - Added by Mike Fiorenza over 1 year ago

Jose,

You're correct, this is an issue with poky-crops updating their docker to contain the new 4.1 toolchain for poky which therefore breaks using it on older versions.

The workaround I have for the moment is to launch the docker and have it mount an empty tmpfs over the new toolchain so it doesn't try to use it.

Add the following flag to the docker command when starting the docker:

--tmpfs /opt/poky

- Mike Fiorenza

    (1-1/1)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)