[jira] [Commented] (AVRO-2765) dump command in avro-python3 tool module fails

2020-04-22 Thread Hudson (Jira)


[ 
https://issues.apache.org/jira/browse/AVRO-2765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17089990#comment-17089990
 ] 

Hudson commented on AVRO-2765:
--

SUCCESS: Integrated in Jenkins build AvroJava #845 (See 
[https://builds.apache.org/job/AvroJava/845/])
AVRO-2765: Py3 Support: Use open(), not file() (#836) (github: 
[https://github.com/apache/avro/commit/97c2aeb6ca5186524e8576febfe44b1a03a1b97e])
* (edit) lang/py/avro/tool.py
* (edit) lang/py3/avro/tool.py


> 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)


[jira] [Commented] (AVRO-2765) dump command in avro-python3 tool module fails

2020-04-22 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/AVRO-2765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17089943#comment-17089943
 ] 

ASF subversion and git services commented on AVRO-2765:
---

Commit 97c2aeb6ca5186524e8576febfe44b1a03a1b97e in avro's branch 
refs/heads/master from Michael A. Smith
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=97c2aeb ]

AVRO-2765: Py3 Support: Use open(), not file() (#836)



> 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
>Priority: Minor
>
> 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)


[jira] [Commented] (AVRO-2765) dump command in avro-python3 tool module fails

2020-03-01 Thread Michael A. Smith (Jira)


[ 
https://issues.apache.org/jira/browse/AVRO-2765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17048619#comment-17048619
 ] 

Michael A. Smith commented on AVRO-2765:


Thanks, I'll make a pr to convert all uses of {{file}} to {{open}}. You might 
want to know that the py3 library is getting closed out as of avro 1.10, and 
lang/py works with python3 in the master branch. So that's where most of our 
focus is now.

> 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
>Priority: Minor
>
> 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)