Checkbox-camera plainbox-provider-checkbox



/dev/video4: OK
name : Microsoft® LifeCam HD-5000: Mi
driver : uvcvideo
version: 4.14.15
flags : 0x84200001 [ CAPTURE STREAMING ]
Format: YUYV (YUYV 4:2:2) Resolutions: 640x480,1280x720,960x544,800x448,640x360,424x240,352x288,320x240,800x600,176x144,160x120,1280x800 For

when i run the python script in the target, i get no errors, but when i run as a job with checkbox camera/detect , i get the below error

checkbox-snappy.checkbox-cli run com.canonical.certification::camera/detect

/dev/video4: OK
Exception in thread queue_worker:
Traceback (most recent call last):
File “/snap/checkbox-snappy/x4/usr/lib/python3.5/”, line 914, in _bootstrap_inner
File “/snap/checkbox-snappy/x4/usr/lib/python3.5/”, line 862, in run
self._target(*self._args, **self._kwargs)
File “/snap/checkbox-snappy/x4/lib/python3.5/site-packages/plainbox/vendor/extcmd/”, line 625, in _drain_queue
File “/snap/checkbox-snappy/x4/lib/python3.5/site-packages/plainbox/vendor/extcmd/”, line 663, in on_line
delegate.on_line(stream_name, line)
File “/snap/checkbox-snappy/x4/lib/python3.5/site-packages/plainbox/impl/”, line 252, in on_line
self.ui.got_program_output(stream_name, line)
File “/snap/checkbox-snappy/x4/lib/python3.5/site-packages/plainbox/impl/commands/”, line 205, in got_program_output
end=’’, file=stream)
UnicodeEncodeError: ‘ascii’ codec can’t encode character ‘\xae’ in position 31: ordinal not in range(128)

i had created a job

command: camera_test_legacy display --highest

if i execute this python script , it works fine in the target, but if i run as a job by checkbox , i get below error, please suggest.

Traceback (most recent call last):
File “”, line 890, in _find_spec

AttributeError: ‘DynamicImporter’ object has no attribute ‘find_spec’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/tmp/nest-p03powc_.109c7b910c720ba36429a1277f32cba2fd10baeb01f50fa8fc859
673d03a8395/camera_test_legacy”, line 566, in

from gi.repository import Gst                            

File “/snap/checkbox-snappy/x4/usr/lib/python3/dist-packages/gi/”,
line 127, in find_module
‘introspection typelib not found’ % namespace)
ImportError: cannot import name Gst, introspection typelib not found