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

NameError: global name 'TApplicationException' is not defined

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9
    • Fix Version/s: 0.9
    • Component/s: Python - Compiler
    • Labels:
      None

      Description

      The Python Thrift generator does not include imports for all the exception types it uses, namely, "TApplicationException".

      To reproduce:
      Create two Thrift services (A and B) and start them.
      Using the Python client for B, connect to A and call one of the methods from the service.

      Expected result:

      thrift.Thrift.TApplicationException: Invalid method name: 'someMethod'

      Actual Result:

      NameError: global name 'TApplicationException' is not defined

        Attachments

          Activity

            People

            • Assignee:
              jfarrell Jake Farrell
              Reporter:
              sirbrialliance Jon Stephens
            • Votes:
              6 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.25h
                0.25h
                Remaining:
                Remaining Estimate - 0.25h
                0.25h
                Logged:
                Time Spent - Not Specified
                Not Specified