New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run the examples #15
Comments
was it in examples?
you should do
without |
Still unable to run. #########Code################ import avro.io need to serialize this datadata = { according to this schema:schema_dict = { avro_schema = make_avsc_object(schema_dict, avro.schema.Names()) serializer = AvroJsonSerializer(avro_schema) print (json_str) ################## ERROR ################## PS C:\a\Python\ven\ven1\w\json> python jdumps1.py |
@0x26res thank you for your guidance.
I am trying to run the sample code in the read me . Not able to. both code. (simple or "another"
import avro.io
from avro import schema
from avro.schema import SchemaFromJSONData as make_avsc_object
from avro_json_serializer import AvroJsonSerializer
PS C:\a\Python\W\CSV> python dumpsa.py
Traceback (most recent call last):
File "dumpsa.py", line 44, in
avro_schema = avro.schema.make_avsc_object(schema_dict, avro.schema.Names())
AttributeError: module 'avro.schema' has no attribute 'make_avsc_object'
PS C:\a\Python\W\CSV> python --version
Python 3.8.6
The text was updated successfully, but these errors were encountered: