Fresh install doesn't work (incompatible versions of tensorflow and tensorflow_privacy)
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- python, tensorflow
调研方向
首先,使用 pip install tensorflow-privacy 在全新环境中复现安装过程,然后测试 import tensorflow_privacy 并检查 package dependency 声明。完成的标准是:使用兼容的 TensorFlow 和 TensorFlow Probability 版本时,全新安装能够成功 import,并且包含对未来版本不匹配情况的覆盖。
由索引模型根据 Issue 内容生成。
描述
Problem: Fresh install of tensorflow_privacy doesn't work
Steps to recreate: Create a new environment, run
pip install tensorflow-privacy
Now from within python, run
import tensorflow_privacy
I get this horrendous-looking error
ValueError: Arg specs do not match: original=FullArgSpec(args=['input', 'dtype', 'name', 'layout'], varargs=None, varkw=None, defaults=(None, None, None), kwonlyargs=[], kwonlydefaults=None, annotations={}), new=FullArgSpec(args=['input', 'dtype', 'name'], varargs=None, varkw=None, defaults=(None, None), kwonlyargs=[], kwonlydefaults=None, annotations={}), fn=<function ones_like_v2 at 0x16fe7a200>
Quick fix:
pip install tfp-nightly
Root of the problem:
This issue in tfp shows that the problem is that the current version of tfp was built using tf 2.13, however the latest version of tf is now 2.14 and they are incompatible. This is fixed in the nightly version of tfp but not yet in the main release.
SO, the error is not your fault (the privacy team) but in terms of the user experience I installed privacy and it didn't work. Is this something you could fix by specifying version numbers? I think if you do nothing the problem will fix itself when a new version of tfp is released, but then it might reappear when a new version of tensorflow is released
- 主要语言
- Python
- 星标
- 2k
- 派生
- 477
- 平均合并
- 17 小时 24 分钟
- 30 天内合并 PR
- 4
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tensorflow/privacy 的其他 Issue
-
难度 5/5 一周以上 新手友好度 1/100
tensorflow/privacy#633 · 1 条评论 ·
-
HUSSIENALI0780未关闭
难度 5/5 一周以上 新手友好度 1/100
tensorflow/privacy#626 · 1 条评论 ·
-
٦٦٧٧未关闭
难度 5/5 一周以上 新手友好度 1/100
tensorflow/privacy#625 ·
-
Bug Report未关闭
难度 5/5 一周以上 新手友好度 10/100
tensorflow/privacy#624 ·
-
Secure未关闭
难度 5/5 一周以上 新手友好度 10/100
tensorflow/privacy#623 ·
查看 tensorflow/privacy 的全部 Issue
相似的 Issue
-
enhancement good first issue help wanted
难度 2/5 1-3 小时 新手友好度 88/100
-
Community
难度 2/5 1-3 小时 新手友好度 82/100
kedro-org/kedro-plugins#1575 ·
维护者通常 1 天内回复
-
hive size:simple
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
Significant-Gravitas/AutoGPT#16733 ·
维护者通常 1 天内回复
-
changelog investigate
难度 1/5 1 小时以内 新手友好度 74/100
ramnes/notion-sdk-py#444 ·