gpt4 book ai didi

python - Airflow stack webserver 无法解析 postgres 相关属性,无法启动

转载 作者:行者123 更新时间:2023-12-02 06:59:27 25 4
gpt4 key购买 nike

部署后 Airflow 无法启动,错误报告无法解析 postgres 属性AttributeError: module 'sqlalchemy.dialects.postgresql' has no attribute 'MONEY'

Dockerfile 将整个堆栈的耦合依赖项安装为 apache-airflow[async,postgres,celery,rabbitmq,crypto]==1.10

  File "/usr/local/bin/airflow", line 22, in <module>
from airflow.bin.cli import CLIFactory
File "/usr/local/lib/python3.6/site-packages/airflow/bin/cli.py", line 69, in <module>
from airflow.www_rbac.app import cached_app as cached_app_rbac
File "/usr/local/lib/python3.6/site-packages/airflow/www_rbac/app.py", line 24, in <module>
from flask_appbuilder import AppBuilder, SQLA
File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/__init__.py", line 5, in <module>
from .base import AppBuilder
File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/base.py", line 5, in <module>
from .api.manager import OpenApiManager
File "/usr/local/lib/python3.6/site-packages/flask_appbuilder/api/__init__.py", line 11, in <module>
from marshmallow_sqlalchemy.fields import Related, RelatedList
File "/usr/local/lib/python3.6/site-packages/marshmallow_sqlalchemy/__init__.py", line 1, in <module>
from .schema import TableSchemaOpts, ModelSchemaOpts, TableSchema, ModelSchema
File "/usr/local/lib/python3.6/site-packages/marshmallow_sqlalchemy/schema.py", line 3, in <module>
from .convert import ModelConverter
File "/usr/local/lib/python3.6/site-packages/marshmallow_sqlalchemy/convert.py", line 36, in <module>
class ModelConverter:
File "/usr/local/lib/python3.6/site-packages/marshmallow_sqlalchemy/convert.py", line 52, in ModelConverter
postgresql.MONEY: fields.Decimal,
AttributeError: module 'sqlalchemy.dialects.postgresql' has no attribute 'MONEY'```

最佳答案

允许airflow选择自己的最新依赖版本,apache-airflow[async,postgres,celery,rabbitmq,crypto]

关于python - Airflow stack webserver 无法解析 postgres 相关属性,无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58097818/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com