*** ModuleNotFoundError: No module named 'dataiku.langchain'
还没有人认领这个 Issue。
评估
调研方向
从 dataikuapi.dss.langchain.tool 开始,重点检查 dataiku.langchain.dku_tracer 的导入,并使用 DSSAgentTool.as_langchain_structured_tool() 重现该故障。跟踪所需模块是否已打包,或是否从错误的依赖项导入;完成标准是:在已安装 dataiku 和 dataikuapi 的环境中,该方法运行时不出现 ModuleNotFoundError。
由索引模型根据 Issue 内容生成。
描述
dataikuapi.dss.langchain.tool tries to import dataiku
from dataiku.langchain.dku_tracer import dku_span_builder_for_callbacks
I have both dataiku and datikuapi installed and calling tool.as_langchain_structured_tool() doesn't work with either
(Pdb) tool
<dataikuapi.dss.agent_tool.DSSAgentTool object at 0x7f25f62f58e0>
(Pdb) t = tool.as_langchain_structured_tool()
*** ModuleNotFoundError: No module named 'dataiku.langchain'
(Pdb) from dataiku import langchain
*** ImportError: cannot import name 'langchain' from 'dataiku' (.venv/lib/python3.12/site-packages/dataiku/__init__.py)
(Pdb) tool
<dataikuapi.dss.agent_tool.DSSAgentTool object at 0x7f25f62f58e0>
(Pdb) tool.as_langchain_structured_tool()
*** ModuleNotFoundError: No module named 'dataiku.langchain'
- 主要语言
- Python
- 星标
- 44
- 派生
- 29
- 平均合并
- 3 小时 34 分钟
- 30 天内合并 PR
- 2
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
dataiku/dataiku-api-client-python 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 55/100
-
难度 4/5 3-5 天 新手友好度 30/100
dataiku/dataiku-api-client-python#335 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 2/5 1-3 小时 新手友好度 48/100
查看 dataiku/dataiku-api-client-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
qgis/QGIS-Documentation#11275 ·
-
bug priority:normal ready-for-dev
难度 2/5 1-3 小时 新手友好度 88/100
OpenHands/extensions#626 · 1 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
CSCfi/sd-search-api#39 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 68/100
StevenBlack/hosts#3255 ·