Parallel packages (kafka-python & kafka) can cause unexpected behavior
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- kafka, python
- 领域
- build-system
调研方向
阅读 issue #82 并检查 setup.py 中的软件包元数据,然后在一个干净的 virtualenv 中重新执行此处显示的两种 pip install 顺序。完整的修改应定义并行的软件包 kafka 和 kafka-python 如何共存而不会相互覆盖,并验证由此产生的导入和版本行为。
由索引模型根据 Issue 内容生成。
描述
I know this stems from #82, but the solution with having parallel copies of the same package can lead to unexpected behavior. Whichever package is installed later overwrites the one installed previously.
$ mkvirtualenv kafka-versions
$ pip install kafka-python==1.3.5
$ pip install kafka==1.0.0 # this emulates some 3rd party package requiring it
$ python -c 'import kafka; print(kafka.__version__)'
1.0.0
$ virtualenv --clear
$ pip install kafka==1.0.0 # this emulates some 3rd party package requiring it
$ pip install kafka-python==1.3.5
$ python -c 'import kafka; print(kafka.__version__)'
1.3.5
$ pip freeze
kafka==1.0.0
kafka-python==1.3.5
six==1.11.0
Maybe a solution would be to convert kafka package into a shim package with no code, only setup.py with kafka-python in the install_requires?
- 主要语言
- Python
- 星标
- 5.9k
- 派生
- 1.5k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
dpkp/kafka-python 的其他 Issue
-
Transactional producer's sender loops on AttributeError after a fatal error (2.2 and 2.3 branches)未关闭
难度 2/5 1-3 小时 新手友好度 78/100
dpkp/kafka-python#3161 ·
-
StickyPartitionAssignor.assign() loops forever when members subscribe to different topics可能已有人在做 @mstojcevich 于 12 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 15/100
dpkp/kafka-python#3163 ·
-
难度 1/5 1 小时以内 新手友好度 12/100
dpkp/kafka-python#3162 ·
-
Sender: KeyError from muted.remove() while expiring batches orphans the rest; flush() hangs forever可能已有人在做 @zhechen-cs 于 10 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 76/100
dpkp/kafka-python#3159 ·
-
难度 4/5 3-5 天 新手友好度 35/100
dpkp/kafka-python#3122 · 13 条评论 ·
查看 dpkp/kafka-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
zach-blumenfeld/aip#13 ·
-
难度 2/5 1-3 小时 新手友好度 80/100
nathanmarlor/foxess_modbus#1287 ·
维护者通常 4 天内回复
-
bug good first issue help wanted
难度 2/5 1-3 小时 新手友好度 84/100
OpenLakeForge/openlakeforge#498 ·
维护者通常 1 天内回复
-
good first issue hacktoberfest help wanted python
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 69/100
pollen-robotics/reachy_mini#1493 ·
维护者通常 1 天内回复