Error Importing Provider with Custom Provider #33873
Replies: 3 comments 6 replies
-
What does your "get_provider_info" entrypoint returns ? can you post the dictionary it returns? Does it validate correctly with "provider_info.schema.json" ? |
Beta Was this translation helpful? Give feedback.
-
Thanks, Apologies but may I know how do I validate my return of get_provider_info with provider info schema?
Also Importing hook in that file which contains get_provider_info() with I've followed the guide you described. Just that I'm using pyproject.toml but I'm providing entry point as mentioned. |
Beta Was this translation helpful? Give feedback.
-
Your problem is different. Why Are you doing `from airflow.providers import custom`` ? Your provider is apparently in "custom" package, not in "airflow.providers.custom". Your import should simply be Providers are just regular packages you can just import. The |
Beta Was this translation helpful? Give feedback.
-
Python: 3.10
Apache Airflow: 2.7
I'm creating a custom provider. I have followed the advice of having an entry point and mentioned the required fields along with a connection-types array with connection-type and hook-class-name. I've provided.yml with hooks and connection details as mentioned. But when I install the package locally It shows under
airflow providers
but when I doairflow providers hooks
it says Error When importing hook. And I'm also not able to use `airflow.providers.customprovider.*Am I missing something? I tried running the Astronomers sample repo directly but there too same issue.
I guess the package is not working with the provider manager but don't know what to do about it.
Beta Was this translation helpful? Give feedback.
All reactions