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

NameError: global name 'TApplicationException' is not defined

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9
    • 0.9
    • Python - Compiler
    • 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

        1. thrift_1515.patch
          0.5 kB
          Atul S Vasu

        Activity

          People

            jfarrell Jake Farrell
            sirbrialliance Jon Stephens
            Votes:
            6 Vote for this issue
            Watchers:
            4 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