Vitaly Saversky
02/28/2025, 8:29 PMPrefectDbtRunner
dbt class with dbt-trino
and received package incompatibility issue.
A conflict is between prefect-dbt and dbt-trino packages. Tried to use dbt-trino from 1.8.0 to 1.9.0 but the results are the same.
Prefect version is 3.2.7.
What would be a solution to resolve it?
+uv pip install prefect[dbt]==0.7.0 prefect[github] dbt-trino==1.9.0 dbt-sqlserver==1.8.2 dbt-postgres==1.8.2 chardet==5.2.0 minio==7.2.15
Using Python 3.11.11 environment at: /usr/local
× No solution found when resolving dependencies:
╰─▶ Because dbt-common>=1.14.0 depends on typing-extensions>=4.4 and only
the following versions of dbt-common are available:
dbt-common<=1.14.0
dbt-common==1.15.0
we can conclude that dbt-common>=1.14.0 depends on
typing-extensions>=4.4.
And because dbt-trino==1.9.0 depends on dbt-common>=1.14.0 and
prefect==0.7.0 depends on typing-extensions<4.0, we can conclude that
dbt-trino==1.9.0 and prefect[dbt]==0.7.0 are incompatible.
And because you require prefect[dbt]==0.7.0 and dbt-trino==1.9.0, we can
conclude that your requirements are unsatisfiable.
Nate
02/28/2025, 8:36 PMprefect[dbt]==0.7.0
Nate
02/28/2025, 8:36 PMprefect 0.7.0
with the dbt extra"Nate
02/28/2025, 8:37 PM+uv pip install prefect[dbt]>=3.2.7 prefect[github] dbt-trino==1.9.0 dbt-sqlserver==1.8.2 dbt-postgres==1.8.2 chardet==5.2.0
this looks like it might be coming from EXTRA_PIP_PACKAGES, so id guess you have the wrong version specified in that env var somewhereNate
02/28/2025, 8:42 PMNate
02/28/2025, 8:43 PMprefect-dbt==0.7.0
where you'd have to allow pre-releasesVitaly Saversky
02/28/2025, 8:43 PMNate
02/28/2025, 8:43 PMVitaly Saversky
02/28/2025, 8:44 PMVitaly Saversky
02/28/2025, 8:47 PM+uv pip install prefect_dbt==0.7.0 prefect[github] dbt-trino==1.8.2 dbt-sqlserver==1.8.2 dbt-postgres==1.8.2 chardet==5.2.0 minio==7.2.15
Using Python 3.11.11 environment at: /usr/local
× No solution found when resolving dependencies:
╰─▶ Because there is no version of prefect-dbt==0.7.0 and you require
prefect-dbt==0.7.0, we can conclude that your requirements are
unsatisfiable.
Nate
02/28/2025, 8:47 PMVitaly Saversky
02/28/2025, 8:48 PMVitaly Saversky
02/28/2025, 8:49 PMNate
02/28/2025, 8:53 PM--prerelease allow
at the end of your string value for thatNate
02/28/2025, 8:53 PMVitaly Saversky
02/28/2025, 8:57 PMNate
02/28/2025, 8:58 PMNate
02/28/2025, 8:59 PMuv pip install
Vitaly Saversky
02/28/2025, 9:03 PMChinh Dinh Minh
03/15/2025, 11:13 AM