07-15-2020, 05:58 PM
I have been busy porting all my tools to py3.
Tests with upload checkin failed on latest python client api. Does it tested or something wrong with my python?
(I tried to use BytesIO, but no luck)
Tests with upload checkin failed on latest python client api. Does it tested or something wrong with my python?
Code:
Traceback (most recent call last):
File "<string>", line 5, in <module>
File "\client\tactic_client_lib\tactic_server_stub.py", line 2017, in simple_checkin
self.upload_file(file_path)
File "\client\tactic_client_lib\tactic_server_stub.py", line 1862, in upload_file
upload.execute(path)
File "\client\tactic_client_lib\common\upload_multipart.py", line 105, in execute
(status, reason, content) = self.upload(self.server_url, fields, files)
File "\client\tactic_client_lib\common\upload_multipart.py", line 120, in upload
ret_value = self.posturl(url, fields, files)
File "\client\tactic_client_lib\common\upload_multipart.py", line 145, in posturl
return self.post_multipart(urlparts[1], urlparts[2], fields,files, protocol)
File "\client\tactic_client_lib\common\upload_multipart.py", line 155, in post_multipart
content_type, body = self.encode_multipart_formdata(fields, files)
File "\client\tactic_client_lib\common\upload_multipart.py", line 233, in encode_multipart_formdata
buf.writelines(M)
TypeError: string argument expected, got 'bytes'
(I tried to use BytesIO, but no luck)