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/03/03 04:29:21 UTC

[GitHub] [airflow] potiuk commented on issue #14561: Using apache-airflow-providers-snowflake on airflow (no module named Snowflake)

potiuk commented on issue #14561:
URL: https://github.com/apache/airflow/issues/14561#issuecomment-789419393


   This is how python behaved before python 3.0. As of python 3.0 you can easily have the same module name as package name because by default in python 3+ all imports are absolute (except those starting with .) https://www.python.org/dev/peps/pep-0328/ . We have many modules name smilarly as packages  and it is not a problem.
   You would have to have PYTHONPATH changed to point the snowflake operators/ folder.
   
   But the most probable reason is the installation of extra packages. If you are using the prod image, from Airflow you need to install the packages with --user flag, (`pip install --user PACKAGE`) as 'airflow' user. My guess is that you switched to root and installed the snowflake packages without the --user flag.
   
   In 2.0.2 the --user flag will be enabled by default in the image.
   
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org