dataiku / dataiku/dataiku-api-client-python
*** ModuleNotFoundError: No module named 'dataiku.langchain'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 44
- Forks
- 29
- Avg merge
- 3h 34m
- Merged PRs (30d)
- 2
Description
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'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in dataikuapi.dss.langchain.tool, especially the import of dataiku.langchain.dku_tracer, and reproduce the failure with DSSAgentTool.as_langchain_structured_tool(). Trace whether the required module is packaged or imported from the wrong dependency; done means the method runs without ModuleNotFoundError for an installed dataiku and dataikuapi setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100