linkedin / linkedin/python-avro-json-serializer

Unable to run the examples

未关闭
#15 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Python
星标
135
派生
43
PR 合并指标
30 天内没有已合并 PR

描述

@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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先在所报告的 Python 3.8.6 环境中运行 README 示例,并检查 imports 使用的 avro.schema API。将两个 README 示例与当前 API 进行比较,然后更新这些示例,使其能够在不出现所报告的 AttributeError 的情况下运行,并验证两条示例路径。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
documentation
Issue 类型
文档
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。