elk-audio / elkpi-yocto-layers

Repo manifest for organizing all the needed Yocto/Openembedded layers for building an Elk Audio OS image.
MIT License
2 stars 4 forks source link

error when bitbake elkpi-audio-os-image #2

Open cuanyu opened 2 years ago

cuanyu commented 2 years ago

I am trying to build the image for rpi4 and I got this error while bitbake elkpi-audio-os-image:

tom@ubuntuYJY:~/elkpi/build$ bitbake elkpi-audio-os-image Traceback (most recent call last): File "/home/tom/elkpi/layers/bitbake/bin/bitbake", line 19, in import bb File "/home/tom/elkpi/layers/bitbake/lib/bb/init.py", line 128, in from bb import fetch2 as fetch File "/home/tom/elkpi/layers/bitbake/lib/bb/fetch2/init.py", line 26, in import bb.persist_data, bb.utils File "/home/tom/elkpi/layers/bitbake/lib/bb/persist_data.py", line 22, in from collections import Mapping ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/init.py)

I have other Yocto projects build on this same machine and they seem to be working fine. What should I check for this?

shdrmr commented 2 years ago

Hey, this seems to be due to the fact that you are using a distro that is not supported for yocto builds especially for the hardknott version. I faced this issue when I upgraded my build machine to Ubuntu 22.10.

It is trying to use python3.10 which causes a lot of issues in hardknott.

My suggestion is do one of these two:

  1. Wait for a few days as we are going to release the latest version for Elk Audio OS (kitkstone).
  2. Install a docker image with Ubuntu 18 or 20 and then build the layers. You should be able to do so without any problems.

Sharan

On Mon, 14 Nov 2022, 07:52 cuanyu, @.***> wrote:

I am trying to build the image for rpi4 and I got this error while bitbake elkpi-audio-os-image:

@.**:~/elkpi/build$ bitbake elkpi-audio-os-image Traceback (most recent call last): File "/home/tom/elkpi/layers/bitbake/bin/bitbake", line 19, in import bb File "/home/tom/elkpi/layers/bitbake/lib/bb/init.py", line 128, in from bb import fetch2 as fetch File "/home/tom/elkpi/layers/bitbake/lib/bb/fetch2/init.py", line 26, in import bb.persist_data, bb.utils File "/home/tom/elkpi/layers/bitbake/lib/bb/persist_data.py", line 22, in from collections import Mapping ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/init*.py)

I have other Yocto projects build on this same machine and they seem to be working fine. What should I check for this?

— Reply to this email directly, view it on GitHub https://github.com/elk-audio/elkpi-yocto-layers/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADG3PC2W3IY6ASDR4UE4IJTWIHOSRANCNFSM6AAAAAAR7PKEPM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

cuanyu commented 2 years ago

Hi Sharan. Yes I am running 22.04 and yocto does warn me that it is not tested for this version of Ubuntu. I am curious about why the difference in Ubuntu version would impact Yocto so much. For simple projects it seems to be fine. But for complex ones all sorts of errors surface. I will wait for a few days for the new Kirkstone release. After that if the problem is still there I go with the docker way. Thanks

shdrmr commented 2 years ago

That's usually because of upgrades to the host systems packages such as python3,glibc etc. Yocto uses these to parse and build the "native" packages and then using those out builds the target packages. When the distro packages are incompatible, a lot of things break with either parsing the recipes or building the native packages

Sharan

On Mon, 14 Nov 2022, 09:43 cuanyu, @.***> wrote:

Hi Sharan. Yes I am running 22.04 and yocto does warn me that it is not tested for this version of Ubuntu. I am curious about why the difference in Ubuntu version would impact Yocto so much. For simple projects it seems to be fine. But for complex ones all sorts of errors surface. I will wait for a few days for the new Kirkstone release. After that if the problem is still there I go with the docker way. Thanks

— Reply to this email directly, view it on GitHub https://github.com/elk-audio/elkpi-yocto-layers/issues/2#issuecomment-1313291462, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADG3PCYERWKMM4LTTIK2C4TWIH3RZANCNFSM6AAAAAAR7PKEPM . You are receiving this because you commented.Message ID: @.***>