Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5051

Fix Python tutorials to address THRIFT-4002

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.14.0
    • Component/s: Tutorial
    • Labels:
      None

      Description

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

      $ 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
      
      $ make tutorialclient
      /usr/bin/python PythonClient.py
      ping()
      1+1=2
      Internal error
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sekikn Kengo Seki
                Reporter:
                sekikn Kengo Seki
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m