dataiku / dataiku/dataiku-api-client-python

*** ModuleNotFoundError: No module named 'dataiku.langchain'

未關閉
#336 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
Python
星號
44
分支
29
平均合併
3 小時 34 分鐘
30 天內合併 PR
2

描述

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'

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 dataikuapi.dss.langchain.tool 開始,尤其檢查 dataiku.langchain.dku_tracer 的匯入,並使用 DSSAgentTool.as_langchain_structured_tool() 重現此失敗。追蹤必要的模組是否已封裝,或是否從錯誤的相依性匯入;完成條件是:在已安裝 dataiku 和 dataikuapi 的環境中,該方法執行時不會出現 ModuleNotFoundError。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
api
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。