Checkbox-camera plainbox-provider-checkbox

hi,

bin/camera_test_legacy

/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/threading.py”, line 914, in _bootstrap_inner
self.run()
File “/snap/checkbox-snappy/x4/usr/lib/python3.5/threading.py”, line 862, in run
self._target(*self._args, **self._kwargs)
File “/snap/checkbox-snappy/x4/lib/python3.5/site-packages/plainbox/vendor/extcmd/init.py”, line 625, in _drain_queue
self._delegate.on_line(*args)
File “/snap/checkbox-snappy/x4/lib/python3.5/site-packages/plainbox/vendor/extcmd/init.py”, line 663, in on_line
delegate.on_line(stream_name, line)
File “/snap/checkbox-snappy/x4/lib/python3.5/site-packages/plainbox/impl/runner.py”, 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/inv_run.py”, 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 https://git.launchpad.net/ifc6309/commit/?id=fe0856908116ee63f343667e144cf2c9e723d2d6

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/importer.py”,
line 127, in find_module
‘introspection typelib not found’ % namespace)
ImportError: cannot import name Gst, introspection typelib not found