"cannot import make_kwargs_callable" occurs when using airflow.providers.http.operators.http in 1.10.14.
See original GitHub issueApache 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
Issue Analytics
- State:
- Created 2 years ago
- Comments:15 (10 by maintainers)
Top Results From Across the Web
airflow.providers.http.operators.http
Calls an endpoint on an HTTP system to execute an action ... For more information on how to use this operator, take a...
Read more >apache-airflow-providers-http Documentation
This is a provider package for http provider. All classes for this provider package are in airflow.providers.http python package.
Read more >HTTP Operators - Apache Airflow
The following code examples use the http_default connection which means the requests are sent against httpbin site to perform basic HTTP operations.
Read more >Backport Providers — Airflow Documentation
With backported providers package users can migrate their DAGs to the new providers package incrementally and once they convert to the new operators/sensors/ ......
Read more >Source code for airflow.providers.http.operators.http
[docs]class SimpleHttpOperator(BaseOperator): """ Calls an endpoint on an HTTP system to execute an action .. seealso:: For more information on how to use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub 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.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>