Skip to content

Add unitycatalog to core dependencies for Blog - 2026-04-processing-unstructured-data-in-volumes-with-UC-open-APIs#83

Open
kchandan wants to merge 1 commit into
databricks-solutions:mainfrom
kchandan:main
Open

Add unitycatalog to core dependencies for Blog - 2026-04-processing-unstructured-data-in-volumes-with-UC-open-APIs#83
kchandan wants to merge 1 commit into
databricks-solutions:mainfrom
kchandan:main

Conversation

@kchandan
Copy link
Copy Markdown

@kchandan kchandan commented May 2, 2026

While following the documentation for the blog article - 2026-04-processing-unstructured-data-in-volumes-with-UC-open-APIs , I encountered following error

 python run_download_and_process.py
============================================================
STEP 1: Download images from Unity Catalog (Daft)
============================================================
Traceback (most recent call last):
  File "/Users/kchandan/workspace/databricks-blogposts/2026-04-processing-unstructured-data-in-volumes-with-UC-open-APIs/query_engines/daft_download.py", line 17, in <module>
    from daft.unity_catalog import UnityCatalog
  File "/Users/kchandan/workspace/venv/lib/python3.9/site-packages/daft/unity_catalog/__init__.py", line 3, in <module>
    from .unity_catalog import UnityCatalog, UnityCatalogTable  # noqa: TID253
  File "/Users/kchandan/workspace/venv/lib/python3.9/site-packages/daft/unity_catalog/unity_catalog.py", line 8, in <module>
    import unitycatalog
ModuleNotFoundError: No module named 'unitycatalog'

Download failed with exit code 1

After installing the unitycatalog Python repo, issue was fixed

@matthewmoorcroft
Copy link
Copy Markdown
Member

@dipankarkush-db this is your project right? Can you review

dipankarkush-db added a commit to dipankarkush-db/databricks-blogposts that referenced this pull request May 14, 2026
Daft's `from daft.unity_catalog import UnityCatalog` transitively imports
the `unitycatalog` package, which is not pulled in by `daft`/`getdaft`.
Without it, users following the blog hit `ModuleNotFoundError: No module
named 'unitycatalog'` on the first download step. Mirrors the fix in
upstream PR databricks-solutions#83.

Co-authored-by: Isaac
@dipankarkush-db
Copy link
Copy Markdown
Contributor

Yes, pushed a new PR - #88

@dipankarkush-db
Copy link
Copy Markdown
Contributor

This PR can be closed as the fix is pushed through #88

matthewmoorcroft pushed a commit that referenced this pull request May 14, 2026
Daft's `from daft.unity_catalog import UnityCatalog` transitively imports
the `unitycatalog` package, which is not pulled in by `daft`/`getdaft`.
Without it, users following the blog hit `ModuleNotFoundError: No module
named 'unitycatalog'` on the first download step. Mirrors the fix in
upstream PR #83.

Co-authored-by: Isaac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants