-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Closed
Labels
affected_version:3.0Issues Reported for 3.0Issues Reported for 3.0area:providerskind:bugThis is a clearly a bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yetlabel for new issues that we didn't triage yetprovider:apprise
Description
Apache Airflow Provider(s)
apprise
Versions of Apache Airflow Providers
apache-airflow-providers-docker==4.3.1
apache-airflow-providers-apprise[common.compat]==2.0.2
apache-airflow-providers-amazon[s3fs]==9.6.1
apache-airflow-providers-standard==1.0.0
Tried without the compat - got same results
Apache Airflow version
3.0.0
Operating System
Ubuntu 22.04.5 LTS
Deployment
Docker-Compose
Deployment details
Docker version 28.1.1
apache/airflow:3.0.0-python3.12
What happened
When i tried to use apprise provider the UI showed DAG import error with this traceback:
Traceback (most recent call last):
File "/home/airflow/.local/lib/python3.12/site-packages/airflow/providers/apprise/notifications/apprise.py", line 26, in <module>
from airflow.providers.common.compat.notifier import BaseNotifier
File "/home/airflow/.local/lib/python3.12/site-packages/airflow/providers/common/compat/notifier/__init__.py", line 27, in <module>
from airflow.sdk.definitions.notifier import BaseNotifier
ModuleNotFoundError: No module named 'airflow.sdk.definitions.notifier'
What you think should happen instead
It should work correctly without erroring out
How to reproduce
- Set up a docker container with installed requirements
- Create a dag with minimal test config
import pendulum
from airflow.decorators import dag, task
from airflow.providers.apprise.notifications.apprise import AppriseNotifier
@task()
def check_apprise():
notifier = AppriseNotifier()
notifier.notify(
body="Hello, world!",
title="Test",
)
@dag(
schedule=None,
start_date=pendulum.datetime(2024, 1, 1),
catchup=False,
max_active_runs=1
)
def apprise_check():
check_apprise()
apprise_check_dag = apprise_check()
- Get error
Anything else
It happens every time
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
affected_version:3.0Issues Reported for 3.0Issues Reported for 3.0area:providerskind:bugThis is a clearly a bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yetlabel for new issues that we didn't triage yetprovider:apprise