linkedin / linkedin/python-avro-json-serializer
Unable to run the examples
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 135
- Forks
- 43
- PR merge metrics
- No merged PRs in 30d
Description
@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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the README sample with the reported Python 3.8.6 environment and checking the avro.schema API used by the imports. Compare both README examples with the current API, then update the examples so they run without the reported AttributeError and verify both sample paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100