无法在Google Cloud Composer上安装气流雪花提供商软件包

发布于 2025-02-06 13:54:51 字数 504 浏览 1 评论 0原文

我正在尝试在Google Cloud Composer环境上安装Apache-Airflow-Snowflake。

Apache-airFlow-Providers-snowflake具有SQLalchemy> = 1.4.0的要求

,但是,Apache-airflow 2.2.5+Composer具有SQLalchemy< 1.4.0,> = 1.3.18。 特别是Sqlalchemy的作曲家的版本为1.3.24。

我尝试了升级SQLalchemy软件包,但依赖性矛盾。

我已经尝试了作曲家上的其他版本的气流,并且依赖性也相互冲突。

这是否意味着到目前为止,无法在Google Cloud Composer上使用Apache-Airflow-Snowflake?

我收到的错误的屏幕截图 错误屏幕快照

I am trying to install apache-airflow-providers-snowflake on a Google Cloud Composer environment.

apache-airflow-providers-snowflake has a requirement sqlalchemy >= 1.4.0

However,apache-airflow 2.2.5+composer has requirement sqlalchemy <1.4.0,>=1.3.18.
Specifically the version Composer has of sqlalchemy is 1.3.24.

I have tried upgrading sqlalchemy package but got conflicting dependencies.

I have tried the other versions of airflow on composer and had same conflicting dependencies as well.

Does that mean as of now, there is no way to work with apache-airflow-providers-snowflake on Google Cloud Composer ??

Attached screenshot of the error I get
Error Screenshot

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

踏雪无痕 2025-02-13 13:54:52

在Daniel T的答案之后,我手动安装了Snowflake-Sqlalchemy == 1.2.5作为PYPI软件包,然后安装了Apache-AirFlow-Providers-snowflake,

但是,由于“ ModulenotfoundError:no Module:no Modele no Module no Mode no Sqlalchemy,我都损坏了DAG。 SQL.Roles的“”。
这是由已知的问题 空气流动。

另一个问题建议将降级到1.2.4,这有助于解决我的所有错误。

因此,最终解决方案是手动安装snowflake-sqlalchemy == 1.2.4作为PYPI软件包,然后安装Apache-Airflow-Providers-snowflake。

Following the answer by Daniel T , I manually installed snowflake-sqlalchemy==1.2.5 as a PyPi package, and then installed apache-airflow-providers-snowflake

However, I got broken DAGs due to "ModuleNotFoundError: No module named 'sqlalchemy.sql.roles'".
This is caused by a known issue while using sqlalchemy==1.2.5 with airflow.

Another issue suggested downgrading to 1.2.4 which helped resolve all my errors.

So the final solution is to manually install snowflake-sqlalchemy==1.2.4 as a PyPi package, and then install apache-airflow-providers-snowflake.

○愚か者の日 2025-02-13 13:54:52

这是在云作曲家

该线程的建议是:

您可以手动安装Snowflake-sqlalchemy == 1.2.5作为PYPI软件包,然后安装Apache-Airflow-Providers-snowflake。

困难的要求来自snowflake-sqlalchemy,您可以看到在这里

1.2.5是最后一个版本,没有&gt; = 1.4.0的最低sqlalchemy,您可以看到在这里

这是安全的(如果这是您唯一安装的提供者来依赖snowflake-sqlalchemy)安装snowflake-sqlalchemy == 1.2.5作为提供商需要 &gt; = 1.1.0

This is raised as a bug on Cloud Composer here.

A suggestion on that thread is:

you can manually install snowflake-sqlalchemy==1.2.5 as a PyPi package, and then install apache-airflow-providers-snowflake.

The hard requirement comes from snowflake-sqlalchemy which you can see here.

1.2.5 was the last version to not have a minimum sqlalchemy of >=1.4.0 which you can see here

It's safe (if this is the only provider you have installed to depend on snowflake-sqlalchemy) to install snowflake-sqlalchemy==1.2.5 as the provider requires >=1.1.0

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文