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

dump command in avro-python3 tool module fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.2
    • 1.10.0
    • python, tools
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: