cgru
cgru copied to clipboard
taskInfo bytecode string incompatibility in py3
Hi @timurhai ,
We have updated our renders/servers to run with Python 3.10 instead of Python 2.7. Since this update, we've encountered an issue in the taskInfo within events/services/parsers where certain strings are being parsed as byte strings (e.g., b"hello world") instead of standard strings. This discrepancy is causing several issues in the system.
Could you modify these entries upstream to ensure they are correctly interpreted as regular strings?
Here are examples of entries that are currently being parsed as byte objects:
{
"wdir":"/tmp",
"parser":"b""nuke",
"command_block":"b""nuke -F @#@-@#@/1 -V 2.nk\"",
"command_task":"b""",
"capacity":4,
"files_block":[
"b""/.@####@.exr"
],
"files_task":[
],
"file_size_min":-1,
"file_size_max":-1,
"hosts":[
],
"parsed_files":[
],
"environment":{
"MAINC000",
"MAI"scenes",
"PROJECT":"abcd"
},
"tickets":{
"dfa":1,
"iod":1,
"df":5,
"nauke":1,
"renyferder_usage":5,
"fddt":4
},
"frame_start":1009,
"frame_finish":1013,
"frame_inc":1,
"frames_num":5,
"task_id":0,
"task_name":"b""frame 1009-1013",
"task_custom_data":"b"",
"block_id":0,
"block_name":"b""07dfadfeoer",
"block_flags":33,
"block_custom_data":"b""",
"job_id":84,
"job_name":"b""071aeerrlihoh",
"job_flags":3471202581171300206,
"job_custom_data":"b""{\"aere"}",
"user_name":"b""dafd",
"user_flags":7431513519383457836,
"user_custom_data":"b""",
"render_flags":8245929725132764528,
"render_custom_data":"b""",
"store_dir":"b""/vadfeeawre_1",
"command":"nuke -F 1009-1013.nk\"",
"files":[
"/madfanticSeg-car/071adfadfadf9.exr",
]
}
Thanks a lot!
Jan