Skip to content

SalesforceToGcsOperator requires additional packages #15977

@hprzegendza

Description

@hprzegendza

Apache Airflow version: 1.10.15
Environment: GCP composer - image: composer-1.16.0-airflow-1.10.15

What happened:
When trying to import the SalesforceToGcsOperator in a DAG:

from airflow.providers.google.cloud.transfers.salesforce_to_gcs import SalesforceToGcsOperator

A Broken DAG error is reported by the composer:No module names 'airflow.providers.salesforce'

What you expected to happen:
SalesforceToGcsOperator being available.

What do you think went wrong?:
apache-airflow-backport-providers-salesforce package not being listed as required by apache-airflow-backport-providers-google

How to reproduce it:

  • Import SalesforceToGcsOperator:
from airflow.providers.google.cloud.transfers.salesforce_to_gcs import SalesforceToGcsOperator
  • Try using it.
  • Get an error.
  • Install apache-airflow-backport-providers-salesforce(2021.3.3).
  • Try again.

Anything else we need to know:
The line importing the missing package:

from airflow.providers.salesforce.hooks.salesforce import SalesforceHook

EDIT: corrected the composer image's version

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugThis is a clearly a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions