question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
odajuncommented, Apr 8, 2021

@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.

1reaction
kaxilcommented, Apr 6, 2021
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found