Toaster is not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Toaster is not working

561 Views
Dhanyalakshmi
Contributor III

Hi,

I'm using yocto to build an image("ls-image-main") for ls1012afrwy board, normally without using toaster web interface i'm able to build this image successfully.

But i want to use toaster web interface in order to build this image which i'm not able to achieve.I'm facing issues as below.

I'll tell the steps that i follwed to build image using toaster:

1. first i installed toaster using following command: 

              $sudo apt-get install python3-pip
              $ pip3 install --user -r /opt/yocto/poky/bitbake/toaster-requirements.txt

2. Started the toaster:

             $ source distro-setup-env -m ls1012afrwy

             $ source toaster start

3. Used below command to build the image for "ls101frwy board":

            $ bitbake ls-image-main

 

I got error as below:

ERROR: Target_File matching query does not exist.
Traceback (most recent call last):
File "/home/user1/distro/sources/poky/bitbake/lib/bb/ui/toasterui.py", line 408, in main
buildinfohelper.store_target_package_data(event)
File "/home/user1/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/user1/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/user1/.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/user1/.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.

NOTE: Writing buildhistory
NOTE: Writing buildhistory took: 4 seconds
ERROR: expected string or bytes-like object
Traceback (most recent call last):
File "/home/user1/distro/sources/poky/bitbake/lib/bb/ui/toasterui.py", line 362, in main
buildinfohelper.scan_image_artifacts()
File "/home/user1/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 have executed this steps from terminal.Please do help me to resolve this issue

Thank You

0 Kudos
Reply
1 Reply

497 Views
Oswalag
NXP TechSupport
NXP TechSupport

Hello, 

It looks like there is something missing in the configuration to use toaster for local development, more information is available in:

3 Setting Up and Using Toaster

0 Kudos
Reply