[
https://issues.apache.org/jira/browse/THRIFT-5051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens Geyer resolved THRIFT-5051.
--------------------------------
Fix Version/s: 0.14.0
Resolution: Fixed
> 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
> Priority: Major
> Fix For: 0.14.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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)