Hi Dhanya,

The Toaster UI received an event from Bitbake (in  “buildinfohelper.py”) for a 
Target_File it did not recognize, hence the lookup error. Normally Target_File 
definitions get imported from the LayerIndex (hence the long startup when you 
first start Toaster).

I am not familiar with starting the bitbake and/or Toaster environment via repo 
and distro-setup-env.

1. You may try to start the Toaster GUI, and see via your browser if your 
expected layers and image recipe targets are indeed present. That will give you 
a clue as to perhaps missing context information for this BSP and image recipe.

    $ source toaster start webport=0.0.0.0:8000

2. You may want to also check out the Layer Index to see if this BSP layer is 
registered.

    
http://layers.openembedded.org/layerindex/branch/mickledore/recipes/?q=ls-image-main

I looked for “ls-image-main” but nothing appeared. If your expected layers are 
not present, you can use the Toaster GUI to register them as “Custom Layers”.

David


From: [email protected] <[email protected]> On Behalf 
Of dhanyalakshmi.k via lists.yoctoproject.org
Sent: Thursday, May 16, 2024 11:43 PM
To: [email protected]
Subject: [Toaster] Getting error when i build an image after starting the 
toaster

Hello,
I'm Dhanya,currently working to build an image using toaster. But the image is 
getting build successfully but at the last in toaster message i'm getting the 
error as "ERROR: Target_File matching query does not exist."
The steps i followed is:
$ sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential 
chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils 
iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev 
python3-subunit mesa-common-dev zstd liblz4-tool file locales

$ sudo locale-gen en_US.UTF-8

$ mkdir distro
$ cd distro
$ repo init -u https://github.com/nxp-qoriq/yocto-sdk.git -b mickledore -m 
ls-6.1.55-2.2.0_distro.xml
$ repo sync

$ source  distro-setup-env -m ls1012afrwy
$ source toaster start
$ bitbake ls-image-main

This above steps i followed because it for my layerscape board.But i tried to 
build core-image-minimal from poky directory as well but still i got the same 
error.

Error is:
ERROR: Target_File matching query does not exist.
Traceback (most recent call last):
  File 
"/home/dhanyalakshmi/distro/sources/poky/bitbake/lib/bb/ui/toasterui.py", line 
408, in main
    buildinfohelper.store_target_package_data(event)
  File 
"/home/dhanyalakshmi/distro/sources/poky/bitbake/lib/bb/ui/buildinfohelper.py", 
line 1364, in store_target_package_data
    self.orm_wrapper.save_target_file_information(self.internal_state['build'], 
target, filedata)
  File 
"/home/dhanyalakshmi/distro/sources/poky/bitbake/lib/bb/ui/buildinfohelper.py", 
line 562, in save_target_file_information
    parent_obj = Target_File.objects.get(target = target_obj, path = 
parent_path, inodetype = Target_File.ITYPE_DIRECTORY)
  File 
"/home/dhanyalakshmi/.local/lib/python3.10/site-packages/django/db/models/manager.py",
 line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File 
"/home/dhanyalakshmi/.local/lib/python3.10/site-packages/django/db/models/query.py",
 line 435, in get
    raise self.model.DoesNotExist(
orm.models.Target_File.DoesNotExist: Target_File matching query does not exist.

ERROR: expected string or bytes-like object
Traceback (most recent call last):
  File 
"/home/dhanyalakshmi/distro/sources/poky/bitbake/lib/bb/ui/toasterui.py", line 
362, in main
    buildinfohelper.scan_image_artifacts()
  File 
"/home/dhanyalakshmi/distro/sources/poky/bitbake/lib/bb/ui/buildinfohelper.py", 
line 1782, in scan_image_artifacts
    real_image_name = re.sub(r'^defaultpkgname', image_target.target,
  File "/usr/lib/python3.10/re.py", line 209, in sub
    return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object

WARNING: Return value is 2

I'm unable to understand this,like is a problem with toaster itself? Is their 
anything that i could do to resolve this issue. Does this relates to image not 
getting build successfully?
Please help me to resolve this
Hoping for the reply.
Thank You.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#6154): https://lists.yoctoproject.org/g/toaster/message/6154
Mute This Topic: https://lists.yoctoproject.org/mt/106149357/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/toaster/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to