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/05/04 08:47:09 UTC

[GitHub] [airflow] potiuk commented on issue #15648: Error "No module named 'airflow.providers.mysql"

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


   You can install mysql extra and the warning will disappear.  It will install (small) mysql provider and additional mysql libraries.
   
   ```
   RUN pip3 install wheel oauth2client "apache-airflow [google, mysql, postgres,celery,redis,ssh,sftp]==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"
   ```
   
   The problem is that mysql provider is used by google one (optional dependency).  I will make some changes in a future version of Airfow/provider's manager to remove the warnings coming from optional providers if those are not installed.
   
   BTW. Few fixes to your setup:
   1) remove gcp extra - it is deprecated version of `google`
   2) you do not need to install the google provider separately. The 'google` extra will install it automatically.
   


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