You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/10/11 20:37:41 UTC
[GitHub] [airflow] januszg01 opened a new issue #18895: ModuleNotFoundError: No module named 'airflow.providers.snowflake'
januszg01 opened a new issue #18895:
URL: https://github.com/apache/airflow/issues/18895
### Apache Airflow Provider(s)
snowflake
### Versions of Apache Airflow Providers
apache-airflow-providers-amazon==2.1.0
apache-airflow-providers-celery==2.0.0
apache-airflow-providers-cncf-kubernetes==2.0.2
apache-airflow-providers-docker==2.1.0
apache-airflow-providers-elasticsearch==2.0.2
apache-airflow-providers-ftp==2.0.0
apache-airflow-providers-google==5.0.0
apache-airflow-providers-grpc==2.0.0
apache-airflow-providers-hashicorp==2.0.0
apache-airflow-providers-http==2.0.0
apache-airflow-providers-imap==2.0.0
apache-airflow-providers-microsoft-azure==3.1.0
apache-airflow-providers-mysql==2.1.0
apache-airflow-providers-postgres==2.0.0
apache-airflow-providers-redis==2.0.0
apache-airflow-providers-sendgrid==2.0.0
apache-airflow-providers-sftp==2.1.0
apache-airflow-providers-slack==4.0.0
apache-airflow-providers-snowflake==2.2.0
apache-airflow-providers-sqlite==2.0.0
apache-airflow-providers-ssh==2.1.0
### Apache Airflow version
2.1.3
### Operating System
PRETTY_NAME="Debian GNU/Linux 10 (buster)" NAME="Debian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=debian
### Deployment
Docker-Compose
### Deployment details
_No response_
### What happened
I have following imports statements in the DAG:
from datetime import datetime
from airflow import DAG
from airflow.providers.snowflake.operators.snowflake import SnowflakeOperator
from airflow.providers.snowflake.transfers.s3_to_snowflake import S3ToSnowflakeOperator
from airflow.providers.snowflake.transfers.snowflake_to_slack import SnowflakeToSlackOperator
* This code is from the Airflow snowflake Git repository:
* https://github.com/apache/airflow/blob/main/airflow/providers/snowflake/example_dags/example_snowflake.py
During DAG Import process, I am getting following error:
Broken DAG: [/opt/airflow/dags/example_snowflake.py] Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/opt/airflow/dags/example_snowflake.py", line 24, in <module>
from airflow.providers.snowflake.hooks.snowflake import SnowflakeHook
ModuleNotFoundError: No module named 'airflow.providers.snowflake'
### What you expected to happen
_No response_
### How to reproduce
Install snowflake provider:
pip install apache-airflow-providers-snowflake
After installation is finished, you should see:
_Installing collected packages: apache-airflow-providers-snowflake
Successfully installed apache-airflow-providers-snowflake-2.2.0_
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on issue #18895: ModuleNotFoundError: No module named 'airflow.providers.snowflake'
Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #18895:
URL: https://github.com/apache/airflow/issues/18895#issuecomment-940427080
You need to use custom image if you want docker-compose to contain snowllake provder. You need to build your own image and add the provider in there as explained in https://airflow.apache.org/docs/docker-stack/build.html#example-of-upgrading-airflow-provider-packages and then use that image in your docker-compose.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] boring-cyborg[bot] commented on issue #18895: ModuleNotFoundError: No module named 'airflow.providers.snowflake'
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #18895:
URL: https://github.com/apache/airflow/issues/18895#issuecomment-940423104
Thanks for opening your first issue here! Be sure to follow the issue template!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk closed issue #18895: ModuleNotFoundError: No module named 'airflow.providers.snowflake'
Posted by GitBox <gi...@apache.org>.
potiuk closed issue #18895:
URL: https://github.com/apache/airflow/issues/18895
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org