ch3njust1n / smpl

Simultaneous Multi-Party Learning Framework
0 stars 0 forks source link

pc.send() type conversion bug #14

Closed ch3njust1n closed 6 years ago

ch3njust1n commented 6 years ago

pc.send() invalid literal for int() with base 10: ''

ch3njust1n commented 6 years ago

Persistent error

Error: pc.send() invalid literal for int() with base 10: ''
Traceback (most recent call last):
  File "/home/ubuntu/smpl/distributed/parameter_channel.py", line 103, in send
    expected = int(resp[0])
ValueError: invalid literal for int() with base 10: ''
ch3njust1n commented 6 years ago

can't parse this shit which is causing the issue above ERROR:root:empty reply: [''] for api:2::{"api":"share_grad","args":["sess124527201654584249815087630444368622859403571272078998","smpl",[[[0,0,0],7.0],[[0,0,1],7.0],[[1,0,0],7.0]],0]}

ch3njust1n commented 6 years ago

Fixed by checking if len(resp)>0