Re: How to use avro-python3 on Windows 10 to parse files?

2020-09-28 Thread Michael A. Smith
Where did you find that avro-python3 is recommended? I would like to update that. avro-python3 is deprecated. Your should use the avro library instead. If the avro library for python doesn't work, please let me know. On Mon, Sep 28, 2020 at 12:43 Alexander Farber wrote: > Hello and good

How to use avro-python3 on Windows 10 to parse files?

2020-09-28 Thread Alexander Farber
Hello and good evening! With python 3.8.5 and avro 1.10.0 installed via pip I have tried running the following script: import os, avro from avro.datafile import DataFileReader, DataFileWriter from avro.io import DatumReader, DatumWriter reader = DataFileReader(open("48.avro", "rb"),

Re: How to use avro-python3 on Windows 10 to parse files?

2020-09-28 Thread Alexander Farber
Hi Michael - On Mon, Sep 28, 2020 at 8:19 PM Michael A. Smith wrote: > Where did you find that avro-python3 is recommended? I would like to > update that. > here: https://stackoverflow.com/a/43606979/165071 > avro-python3 is deprecated. Your should use the avro library instead. > > If the

Re: How to use avro-python3 on Windows 10 to parse files?

2020-09-28 Thread Michael A. Smith
On Mon, Sep 28, 2020 at 14:24 Alexander Farber wrote: > Hi Michael - > > On Mon, Sep 28, 2020 at 8:19 PM Michael A. Smith > wrote: > >> Where did you find that avro-python3 is recommended? I would like to >> update that. >> > > here: https://stackoverflow.com/a/43606979/165071 > > >>

RE: How to use avro-python3 on Windows 10 to parse files?

2020-09-28 Thread David Beswick
Hello all, I think Alexander is reading a binary AVRO file -- just that there is a serialised JSON string in one of the fields. I actually have read this exact kind of data from Azure Event Hub using the Python libraries before, so it should work. Your code looks fine to me Alexander -- maybe