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
- Fix make_kwargs_callable import for http provider (out of bands) Fixes failing import problem of the http backport provider with Airflow 1.10.* series. A problem was introduced in #11922 which cause... — committed to potiuk/airflow by potiuk 3 years ago
- Fix make_kwargs_callable import for http provider (out of bands) Fixes failing import problem of the http backport provider with Airflow 1.10.* series. A problem was introduced in #11922 which cause... — committed to apache/airflow by potiuk 3 years ago
@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.Please also add a non-binding vote if that works for you in https://lists.apache.org/thread.html/r5e870c593ca558c5e05417dc20b9dc55a48bbcb485483b63cd9b416c%40<dev.airflow.apache.org>