[
https://issues.apache.org/jira/browse/AVRO-1382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13865971#comment-13865971
]
Doug Cutting commented on AVRO-1382:
------------------------------------
If I 'touch avro/tests/__init__.py then it actually tries to run run_tests.py
but fails with:
{code}
File "/home/cutting/src/avro/trunk/lang/py3/avro/tests/run_tests.py", line
51, in <module>
from avro.tests.test_datafile_interop import *
File
"/home/cutting/src/avro/trunk/lang/py3/avro/tests/test_datafile_interop.py",
line 39, in <module>
INTEROP_SCHEMA = GetInteropSchema()
File
"/home/cutting/src/avro/trunk/lang/py3/avro/tests/test_datafile_interop.py",
line 36, in GetInteropSchema
return schema.Parse(schema_json)
File "/home/cutting/src/avro/trunk/lang/py3/avro/schema.py", line 1277, in
Parse
% (json_string, exn))
avro.schema.SchemaParseException: Error parsing schema from JSON:
'../../../../share/test/schemas/interop.avsc'. Error message: ValueError('No
JSON object could be decoded',).
{code}
> Support for python3
> -------------------
>
> Key: AVRO-1382
> URL: https://issues.apache.org/jira/browse/AVRO-1382
> Project: Avro
> Issue Type: Bug
> Components: python
> Affects Versions: 1.7.5
> Reporter: Christophe Taton
> Attachments: AVRO-1382.20131203-001922.diff,
> AVRO-1382.20140101-123233-0800.diff, AVRO-1382.20140107-231626-0800.diff
>
>
> Hi,
> I'd need to use Avro from Python3, which would require essentially the
> following changes, which I am happy to contribute:
> - rewrite except statements according to new syntax
> - rewrite print statements according to new syntax
> - basestring becomes str
> - update some imports (StringIO becomes io.StringIO, httplib becomes
> http.client)
> This would apparently require branching the python code to maintain a version
> for python2 and a separate version for python3.
> Any thoughts on how to approach this?
> Thanks!
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)