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

2020-09-29 Thread Alexander Farber
Hello and thanks for your replies! I have to apologize - the avro file I was using did not contain any useful data. The reason for my confusion is that a colleague (in a screen sharing session) was using a different file with the same name while testing for me. Now I have tried both avro and

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

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