You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Kengo Seki (Jira)" <ji...@apache.org> on 2019/12/26 22:52:00 UTC

[jira] [Created] (THRIFT-5051) Fix Python tutorials to address THRIFT-4002

Kengo Seki created THRIFT-5051:
----------------------------------

             Summary: Fix Python tutorials to address THRIFT-4002
                 Key: THRIFT-5051
                 URL: https://issues.apache.org/jira/browse/THRIFT-5051
             Project: Thrift
          Issue Type: Bug
          Components: Tutorial
            Reporter: Kengo Seki
            Assignee: Kengo Seki


After merging THRIFT-4002, Python tutorials fail as follows:

{code}
$ make tutorialserver
/usr/bin/python PythonServer.py
Starting the server...
ping()
add(1,1)
calculate(1, Work(comment=None, num1=1, num2=0, op=4))
ERROR:root:Unexpected exception in handler
Traceback (most recent call last):
  File "gen-py/tutorial/Calculator.py", line 274, in process_calculate
    result.success = self._handler.calculate(args.logid, args.w)
  File "PythonServer.py", line 61, in calculate
    x.whatOp = work.op
  File "gen-py/tutorial/ttypes.py", line 160, in __setattr__
    raise TypeError("can't modify immutable instance")
TypeError: can't modify immutable instance
{code}

{code}
$ make tutorialclient
/usr/bin/python PythonClient.py
ping()
1+1=2
Internal error
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)