Traceback (most recent call last): File "E:\pythonProject\gen-py\py.client.py", line 29, in <module> client.savePerson(newPerson) File "E:\pythonProject\gen-py\py\thrift\generated\PersonService.py", line 86, in savePerson self.send_savePerson(person) File "E:\pythonProject\gen-py\py\thrift\generated\PersonService.py", line 93, in send_savePerson args.write(self._oprot) File "E:\pythonProject\gen-py\py\thrift\generated\PersonService.py", line 373, in write self.person.write(oprot)TypeError: write() missing 1 required positional argument: 'oprot'
但
\generated\PersonService.py", line 373, in write
中是thrift自动生成的
if self.person is not None:
oprot.writeFieldBegin('person', TType.STRUCT, 1)
373 self.person.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
慕斯4360584
慕斯4360584
相关分类