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

NameError: global name 'TProtocol' is not defined

    XMLWordPrintableJSON

    Details

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

      Description

      In the generated ttypes.py file a TProtocol.TProtocolException is raised from the validate method but TProtocol has not been imported. This results in a NameError when the validate method is invoked.

        Attachments

          Activity

            People

            • Assignee:
              nsuke Aki Sukegawa
              Reporter:
              cjmay Chandler May
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: