Thank you for taking the time to report this bug and helping to make Ubuntu better. This is probably related to string encoding, and seems to be a problem in run_templates.
Actual result:
Traceback (most recent call last):
File "/usr/share/checkbox/scripts/run_templates", line 142, in <module>
sys.exit(main(sys.argv[1:]))
File "/usr/share/checkbox/scripts/run_templates", line 137, in main
runner.process(args, options.shell)
File "/usr/share/checkbox/scripts/run_templates", line 39, in process
records = self.process_output(process.stdout)
File "/usr/share/checkbox/scripts/run_templates", line 88, in process_output
return template.load_file(output)
File "/usr/lib/python3/dist-packages/checkbox/lib/template.py", line 73, in load_file
for string in self._reader(file):
File "/usr/lib/python3/dist-packages/checkbox/lib/template.py", line 35, in _reader
lines = re.split(delimiter, buffer_old + buffer_new)
TypeError: Can't convert 'bytes' object to str implicitly
I'll set to triaged, importance: high as this is potentially affecting everyone. Thanks!
Thank you for taking the time to report this bug and helping to make Ubuntu better. This is probably related to string encoding, and seems to be a problem in run_templates.
Steps to reproduce:
echo "hello" | /usr/share/ checkbox/ scripts/ run_templates -t -s 'cat /etc/passwd'
Expected result:
hello
Actual result: checkbox/ scripts/ run_templates" , line 142, in <module> exit(main( sys.argv[ 1:])) checkbox/ scripts/ run_templates" , line 137, in main process( args, options.shell) checkbox/ scripts/ run_templates" , line 39, in process output( process. stdout) checkbox/ scripts/ run_templates" , line 88, in process_output load_file( output) python3/ dist-packages/ checkbox/ lib/template. py", line 73, in load_file python3/ dist-packages/ checkbox/ lib/template. py", line 35, in _reader
Traceback (most recent call last):
File "/usr/share/
sys.
File "/usr/share/
runner.
File "/usr/share/
records = self.process_
File "/usr/share/
return template.
File "/usr/lib/
for string in self._reader(file):
File "/usr/lib/
lines = re.split(delimiter, buffer_old + buffer_new)
TypeError: Can't convert 'bytes' object to str implicitly
I'll set to triaged, importance: high as this is potentially affecting everyone. Thanks!