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

Fix Python tutorials to address THRIFT-4002

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.14.0
    • Tutorial
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            sekikn Kengo Seki
            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

                Slack

                  Issue deployment