airflow: "cannot import make_kwargs_callable" occurs when using airflow.providers.http.operators.http in 1.10.14.

Apache Airflow version: 1.10.14

Kubernetes version (if you are using kubernetes) (use kubectl version): 1.19

Environment:

  • Cloud provider or hardware configuration: Openstack, 4 cores, 8GB RAM
  • OS (e.g. from /etc/os-release): /etc/centos-release CnetOS Linux release 7.9.2009
  • Kernel (e.g. uname -a): Linux
  • Install tools: Docker container (own build), Airflow is installed via
pip install apache-airflow[celery,hive,jdbc,mysql,redis,s3]==1.10.14
pip install hdfs,requests_kerberos,prometheus-client,apache-airflow-upgrade-check,sqlalchemy=1.3.23,apache-airflow-backport-providers-apache-hive,apache-airflow-backport-providers-http

What happened:

While preparing for the upgrade by following the steps in the documentation, I was faced with an error at the point where I implemented the following changes.

before : from airflow.operators.http_operator import SimpleHttpOperator
after  : from airflow.providers.http.operators.http import SimpleHttpOperator

error message

ERROR - cannot import name 'make_kwargs_callable' from 'airflow.utils.operators_helpers'

Anything else we need to know:

I suspect the following commit is required for 1.10.x version as well. https://github.com/apache/airflow/commit/badd890675d3cb3dfc088bff6a1d73dfdc275f31#diff-d2d9b3696f554c1d2aee440470[…]27dc193705e85b833b1f739271e81b14

There are other people who are encountering the same error. https://apache-airflow.slack.com/archives/CCQB40SQJ/p1616504379010200

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (10 by maintainers)

Commits related to this issue

Most upvoted comments

@potiuk Thank you for your support.

After installing apache-airflow-backport-providers-http==2021.4.10rc2 in my environment, SimpleHttpOperator worked fine and I did not have any problems.