mpzfm1 opened a new issue #15648:
URL: https://github.com/apache/airflow/issues/15648


   Im installing airflow like this:
   
   RUN useradd airflow
   
   ENV AIRFLOW_VERSION="2.0.1"
   ENV PYTHON_VERSION="3.8"
   ENV 
CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt";
   
   RUN pip3 install --upgrade pip
   RUN pip3 install --upgrade apache-airflow-providers-google
   RUN pip3 install wheel oauth2client "apache-airflow [google, gcp, 
postgres,celery,redis,ssh,sftp]==${AIRFLOW_VERSION}" --constraint 
"${CONSTRAINT_URL}"
   
   RUN mkdir -p /opt/airflow && chown -R airflow:airflow /opt
   USER airflow
   
   CMD ["airflow"]
   
   The "problem" is that im receiving every time WARNING like this: 
   
    {providers_manager.py:295} WARNING - Exception when importing 
'airflow.providers.google.cloud.hooks.cloud_sql.CloudSQLHook' from 
'apache-airflow-providers-google' package: No module named 
'airflow.providers.mysql'                            
   
    {providers_manager.py:295} WARNING - Exception when importing 
'airflow.providers.google.cloud.hooks.cloud_sql.CloudSQLDatabaseHook' from 
'apache-airflow-providers-google' package: No module named 
'airflow.providers.mysql'                    
   
   {providers_manager.py:295} WARNING - Exception when importing 
'airflow.providers.google.cloud.hooks.cloud_sql.CloudSQLHook' from 
'apache-airflow-providers-google' package: No module named 
'airflow.providers.mysql'                          
   
   {providers_manager.py:295} WARNING - Exception when importing 
'airflow.providers.google.cloud.hooks.cloud_sql.CloudSQLDatabaseHook' from 
'apache-airflow-providers-google' package: No module named 
'airflow.providers.mysql
   
   I dont know the reason becouse im using postgresql...
   
   Im trying to locate providers_manager.py in order to change the log level 
(as i have seen in other post) but the file doesnt exits in /opt/airflow.... 
   
   Any recomendations??
   
   thanks in advance.


-- 
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:
us...@infra.apache.org


Reply via email to