[ https://issues.apache.org/jira/browse/AVRO-2765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fokko Driesprong resolved AVRO-2765. ------------------------------------ Fix Version/s: 1.10.0 Assignee: Michael A. Smith Resolution: Fixed > dump command in avro-python3 tool module fails > ---------------------------------------------- > > Key: AVRO-2765 > URL: https://issues.apache.org/jira/browse/AVRO-2765 > Project: Apache Avro > Issue Type: Bug > Components: python, tools > Affects Versions: 1.9.2 > Reporter: Olaf > Assignee: Michael A. Smith > Priority: Minor > Fix For: 1.10.0 > > > Trying to dump an Avro file with the python3 tool command: > {quote}{{> python3 -m *avro.tool* dump test.avro}} > {quote} > fails on: > {quote}{{NameError: name 'file' is not defined}} > {quote} > This needs fixing by changing line 105 of avro/tool.py from: > {quote}{{return *file*(f)}} > {quote} > into: > {quote}{{return *open*(f, 'rb')}} > {quote} > 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. -- This message was sent by Atlassian Jira (v8.3.4#803005)