Area: Ingestion Issues
Sub-Area: CLI / Package Installation
Applies to: OSS + Cloud
Issue
You install acryl-datahub with a connector extra, for example acryl-datahub[dbt], pinned to a version from 1.5.0 through 1.5.0.9. The install fails during dependency resolution. This happens with both pip and uv, in any environment: Airflow PythonVirtualenvOperator tasks, CI/CD jobs, Docker builds and local virtual environments.
The release candidates in that range fail too, including 1.5.0rc1, 1.5.0.9rc1, 1.5.0.9rc2 and 1.5.0.10rc1.
acryl-datahub 1.4.0.8 and 1.4.0.9 fail the same way, with sqlglotc==29.0.1 in place of 30.0.3.
Error Messages
With uv:
No solution found when resolving dependencies:Because there is no version of sqlglotc==30.0.3 and sqlglot[c]==30.0.3 depends on sqlglotc==30.0.3, we can conclude that sqlglot[c]==30.0.3 cannot be used.
With pip:
No matching distribution found for sqlglotc==30.0.3
In Airflow, the task then fails with a CalledProcessError from the uv pip install or pip install command that builds the virtual environment.
You Might Be Asking
- Why did my dbt ingestion pipeline stop installing when I didn't change anything?
- Does switching from
uvtopipfix it? - Does this affect final releases as well as release candidates?
- Can I fix it without upgrading the CLI?
Cause
acryl-datahub 1.5.0 through 1.5.0.9 pin sqlglot[c]==30.0.3 for the dbt extra and most other connector extras (snowflake, bigquery, looker, tableau, postgres, and others). The c extra of sqlglot 30.0.3 requires sqlglotc==30.0.3. PyPI has no sqlglotc 30.0.3 release, neither a wheel nor a source package. The oldest sqlglotc release on PyPI is 30.7.0.
Because the package is not on PyPI at all, the installer you use makes no difference. pip has no source package to build, so it fails just like uv. Your environment did not change; the package index did. A fresh install of an affected version fails every time.
The core package with no extras (pip install acryl-datahub==1.5.0.9) does not depend on sqlglot, so it installs. Any connector extra that pulls in sqlglot fails.
Solution
-
Upgrade to the latest final release of
acryl-datahub. Find it in the acryl-datahub release history on PyPI and pin it explicitly. Newer releases pin asqlglotversion whosesqlglotcpackage is on PyPI. For example,1.7.0.20pinssqlglot[c]==30.22.0, and PyPI hassqlglotc30.22.0.pip install 'acryl-datahub[dbt]==<latest-final-release>'In an Airflow
PythonVirtualenvOperator, change the version in therequirementslist the same way:requirements=[ "acryl-datahub[dbt]==<latest-final-release>", ],If you must stay on the 1.5.0 line,
1.5.0.10is the first final release in that line that installs. It drops the[c]extra and pins plainsqlglot==30.0.3. Don't use1.5.0.10rc1; it still pinssqlglot[c]==30.0.3.Current releases need Python 3.10 or later. See Installation and Installing Plugins in the CLI docs.
-
Pin final releases, not release candidates (versions ending in
rcN). In this case the fix landed in the final1.5.0.10release but not in1.5.0.10rc1. -
Run the pipeline once in a test environment. Confirm the virtual environment builds and the packages install before you promote the change.
Switching Airflow from uv to pip does not fix this. Neither installer can find sqlglotc 30.0.3, and you can't install it by hand for the same reason.