Skip to content

Pendulum not importing correctly with certain lib #36741

@teraearlywine

Description

@teraearlywine

Apache Airflow version

2.8.0

If "Other Airflow 2 version" selected, which one?

No response

What happened?

When importing airflow, breaking change with pendulum 3.0. Fixed the issue by from pendulum import tz etc..
pendulum 3.0 was released last month

The tz argument is keyword-only, unlike in version 1.x
https://pendulum.eustace.io/docs/

What you think should happen instead?

from pendulum import tz

How to reproduce

install airflow locally and try running script with date used

from airflow import DAG 
schedule = "@once"

...
dag = DAG(
    dag_id=dag_id,
    default_args=default_args,
    schedule_interval=schedule,
    catchup=False,
)

Operating System

macOS

Versions of Apache Airflow Providers

No response

Deployment

Docker-Compose

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreduplicateIssue that is duplicatedkind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions