Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2765

dump command in avro-python3 tool module fails

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.2
    • Fix Version/s: 1.10.0
    • Component/s: python, tools
    • Labels:
      None

      Description

      Trying to dump an Avro file with the python3 tool command:

      > python3 -m avro.tool dump test.avro

      fails on:

      NameError: name 'file' is not defined

      This needs fixing by changing line 105 of avro/tool.py from:

      return file(f)

      into:

      return open(f, 'rb')

      This affects (most recent) Python3 avro-python3 PyPI version 1.9.2.1. Didn't check whether older Python3 versions and Python2 avro PyPI version suffer from the same issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kojiromike Michael A. Smith
                Reporter:
                Dutcho Olaf
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: