ModuleNotFoundError: No module named 'airflow.providers.slack' Airflow 2.0 (MWAA)
ModuleNotFoundError: No module named 'airflow.providers.slack' Airflow 2.0 (MWAA)
我正在使用 Airflow 2.0 并通过 requirements.txt 在 MWAA 中安装了 slack 模块。我已经安装了以下所有软件包,但仍然显示找不到软件包
ModuleNotFoundError: No module named 'airflow.providers.slack'.
但它仍然报错说找不到模块。应该怎么办?
请在此处查找要求:
alembic
anyio
apache-airflow-backport-providers-amazon
apache-airflow-providers-amazon
apache-airflow-providers-ftp
apache-airflow-providers-http
apache-airflow-providers-imap
apache-airflow-providers-slack
apache-airflow-providers-sqlite
apispec
argcomplete
asn1crypto
attrs
Babel
beautifulsoup4
blinker
boto3
botocore
cached-property
cachelib
cattrs
certifi
cffi
chardet
charset-normalizer
click
clickclick
colorama
colorlog
commonmark
configparser
connexion
croniter
cryptography
decorator
defusedxml
Deprecated
dill
dnspython
docutils
email-validator
Flask
Flask-Admin
Flask-AppBuilder
Flask-Babel
Flask-Caching
Flask-JWT-Extended
Flask-Login
Flask-OpenID
Flask-Session
Flask-SQLAlchemy
flask-swagger
Flask-WTF
funcsigs
future
graphviz
gunicorn
h11
httpcore
httpx
idna
importlib-metadata
importlib-resources
inflection
install
iso8601
itsdangerous
Jinja2
jmespath
json-merge-patch
jsonpath-ng
jsonschema
lazy-object-proxy
lockfile
lxml
Mako
Markdown
MarkupSafe
marshmallow
marshmallow-enum
marshmallow-oneofschema
marshmallow-sqlalchemy
mypy-boto3-rds
mypy-boto3-redshift-data
natsort
packaging
pandas
pendulum
ply
prison
psutil
pycparser
Pygments
PyJWT
pyparsing
pyrsistent
python-daemon
python-dateutil
python-nvd3
python-slugify
python3-openid
pytz
pytzdata
PyYAML
redshift-connector
requests
rfc3986
rich
s3transfer
scramp
setproctitle
six
slack-sdk
slackclient
sniffio
soupsieve
SQLAlchemy
SQLAlchemy-JSONField
sqlalchemy-redshift
SQLAlchemy-Utils
swagger-ui-bundle
tabulate
tenacity
termcolor
text-unidecode
thrift
typing_extensions
tzlocal
unicodecsv
urllib3
watchtower
websocket-client
Werkzeug
wrapt
WTForms
zipp
zope.Deprecation
感谢您的帮助。
谢谢,
习
默认情况下,MWAA 被限制为对包 apache-airflow-providers-slack
使用版本 3.0.0
。如果您在 requirements.txt
中指定版本 4.2.3
,它将不会被安装(错误日志应该在 CloudWatch 中可用)。您必须降级到版本 3.0.0
.
apache-airflow-providers-slack
(constraints.txt)
或
将约束文件添加到 requirements.txt
的顶部以使用 apache-airflow-providers-slack
的 4.2.3
版本。
Add the constraints file for your Apache Airflow v2 environment to the top of your requirements.txt file.
--constraint "https://raw.githubusercontent.com/apache/airflow/constraints-main/constraints-3.7.txt"
Installing Python dependencies using PyPi.org Requirements File Format (MWAA)
Constraints files (Airflow)
我正在使用 Airflow 2.0 并通过 requirements.txt 在 MWAA 中安装了 slack 模块。我已经安装了以下所有软件包,但仍然显示找不到软件包
ModuleNotFoundError: No module named 'airflow.providers.slack'.
但它仍然报错说找不到模块。应该怎么办?
请在此处查找要求:
alembic
anyio
apache-airflow-backport-providers-amazon
apache-airflow-providers-amazon
apache-airflow-providers-ftp
apache-airflow-providers-http
apache-airflow-providers-imap
apache-airflow-providers-slack
apache-airflow-providers-sqlite
apispec
argcomplete
asn1crypto
attrs
Babel
beautifulsoup4
blinker
boto3
botocore
cached-property
cachelib
cattrs
certifi
cffi
chardet
charset-normalizer
click
clickclick
colorama
colorlog
commonmark
configparser
connexion
croniter
cryptography
decorator
defusedxml
Deprecated
dill
dnspython
docutils
email-validator
Flask
Flask-Admin
Flask-AppBuilder
Flask-Babel
Flask-Caching
Flask-JWT-Extended
Flask-Login
Flask-OpenID
Flask-Session
Flask-SQLAlchemy
flask-swagger
Flask-WTF
funcsigs
future
graphviz
gunicorn
h11
httpcore
httpx
idna
importlib-metadata
importlib-resources
inflection
install
iso8601
itsdangerous
Jinja2
jmespath
json-merge-patch
jsonpath-ng
jsonschema
lazy-object-proxy
lockfile
lxml
Mako
Markdown
MarkupSafe
marshmallow
marshmallow-enum
marshmallow-oneofschema
marshmallow-sqlalchemy
mypy-boto3-rds
mypy-boto3-redshift-data
natsort
packaging
pandas
pendulum
ply
prison
psutil
pycparser
Pygments
PyJWT
pyparsing
pyrsistent
python-daemon
python-dateutil
python-nvd3
python-slugify
python3-openid
pytz
pytzdata
PyYAML
redshift-connector
requests
rfc3986
rich
s3transfer
scramp
setproctitle
six
slack-sdk
slackclient
sniffio
soupsieve
SQLAlchemy
SQLAlchemy-JSONField
sqlalchemy-redshift
SQLAlchemy-Utils
swagger-ui-bundle
tabulate
tenacity
termcolor
text-unidecode
thrift
typing_extensions
tzlocal
unicodecsv
urllib3
watchtower
websocket-client
Werkzeug
wrapt
WTForms
zipp
zope.Deprecation
感谢您的帮助。
谢谢, 习
默认情况下,MWAA 被限制为对包 apache-airflow-providers-slack
使用版本 3.0.0
。如果您在 requirements.txt
中指定版本 4.2.3
,它将不会被安装(错误日志应该在 CloudWatch 中可用)。您必须降级到版本 3.0.0
.
apache-airflow-providers-slack
(constraints.txt)
或
将约束文件添加到 requirements.txt
的顶部以使用 apache-airflow-providers-slack
的 4.2.3
版本。
Add the constraints file for your Apache Airflow v2 environment to the top of your requirements.txt file.
--constraint "https://raw.githubusercontent.com/apache/airflow/constraints-main/constraints-3.7.txt"
Installing Python dependencies using PyPi.org Requirements File Format (MWAA)
Constraints files (Airflow)