Skip to content

Conversation

@bugraoz93
Copy link
Contributor

Fix my-py error in Apache Livy Provider in main


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@potiuk
Copy link
Member

potiuk commented Jan 28, 2025

I think I have a better fix : #46157

import requests
from aiohttp import ClientResponseError
from asgiref.sync import sync_to_async
from providers.http.src.airflow.providers.http.hooks.http import HttpAsyncHook, HttpHook
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is not going to work - you won't import it when it is installed "for real" this way.

@bugraoz93
Copy link
Contributor Author

I think I have a better fix : #46157

That's indeed better, thanks! :) Closing this in favor of yours.

@bugraoz93 bugraoz93 closed this Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants