Comment 7 for bug 1025381

Revision history for this message
Jeff Lane  (bladernr) wrote :

Forget comment 6's traceback. I forgot to reset the shebang to python3. Here is the correct error after adding .decode() to get_results():

2012-07-17 12:05:04,303 INFO Setting log level to DEBUG for verbosity
2012-07-17 12:05:04,304 INFO The debug log can be found at /home/bladernr/Downloads/x3550/checbox/jeff1.log
2012-07-17 12:05:04,306 INFO NOTE: The debug log is very large. You can skip large sections of text by searching the log for the keyword: ADDING
2012-07-17 12:05:04,306 INFO Preparing to submit results using Hardware ID: a00D000000LU9Jd
2012-07-17 12:05:04,307 INFO Getting messages
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/checkbox/lib/transport.py", line 247, in _encode_body
    raise TypeError
TypeError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./checkbox-certification-submit", line 266, in <module>
    sys.exit(main())
  File "./checkbox-certification-submit", line 236, in main
    response = transport.exchange(request, headers)
  File "/usr/lib/python3/dist-packages/checkbox/lib/transport.py", line 276, in exchange
    (content_type, body) = self._encode_body(body)
  File "/usr/lib/python3/dist-packages/checkbox/lib/transport.py", line 250, in _encode_body
    raise TypeError("Invalid non-string sequence or mapping").with_traceback(tb)
  File "/usr/lib/python3/dist-packages/checkbox/lib/transport.py", line 247, in _encode_body
    raise TypeError
TypeError: Invalid non-string sequence or mapping