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

NameError: global name 'TProtocol' is not defined

    XMLWordPrintableJSON

Details

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

            nsuke Nobuaki Sukegawa
            cjmay Chandler May
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: