Skip to content

DivePythonOperator AirflowException('python_callable param must be callable' #15

Description

@wongwill86

Hello,
I was trying out the tutorial to learn more about fileflow and airflow and received this error when running the tutorial code:

Traceback (most recent call last):
  File "<stdin>", line 7, in <module>
  File "/usr/local/lib/python2.7/dist-packages/fileflow/operators/dive_python_operator.py", line 25, in __init__
    super(DivePythonOperator, self).__init__(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/fileflow/operators/dive_operator.py", line 23, in __init__
    super(DiveOperator, self).__init__(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/airflow/utils/decorators.py", line 86, in wrapper
    result = func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/airflow/operators/python_operator.py", line 68, in __init__
    raise AirflowException('`python_callable` param must be callable')

Looks like this line was added 3 months ago into airflow :

+        if not callable(python_callable):
 +            raise AirflowException('`python_callable` param must be callable')

Which seems to conflict with the DivePythonOperator
https://github.com/industrydive/fileflow/blob/master/fileflow/operators/dive_python_operator.py#L23

Would love to suggest an edit but i'm not familiar enough with both libraries yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions