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 2020/05/04 23:29:36 UTC
[GitHub] [airflow] ishioni opened a new issue #8712: docker image does not include 'pymssql'
ishioni opened a new issue #8712:
URL: https://github.com/apache/airflow/issues/8712
<!--
Welcome to Apache Airflow! For a smooth issue process, try to answer the following questions.
Don't worry if they're not all applicable; just try to include what you can :-)
If you need to include code snippets or logs, please put them in fenced code
blocks. If they're super-long, please use the details tag like
<details><summary>super-long log</summary> lots of stuff </details>
Please delete these comment blocks before submitting the issue.
-->
<!--
IMPORTANT!!!
PLEASE CHECK "SIMILAR TO X EXISTING ISSUES" OPTION IF VISIBLE
NEXT TO "SUBMIT NEW ISSUE" BUTTON!!!
PLEASE CHECK IF THIS ISSUE HAS BEEN REPORTED PREVIOUSLY USING SEARCH!!!
Please complete the next sections or the issue will be closed.
This questions are the first thing we need to know to understand the context.
-->
**Apache Airflow version**: 1.10.10
**Kubernetes version (if you are using kubernetes)** (use `kubectl version`): 1.15.11
**Environment**: dockerhub image apache/airflow:1.10.10
**What happened**:
When importing from airflow.hooks.mssql_hook import MsSqlHook, airflow gives an error No module named 'pymssql'
<!-- (please include exact error messages if you can) -->
**What you expected to happen**:
It should work :)
<!-- What do you think went wrong? -->
The docker image does not include pymssql from pip
----------------------------------------------------------------
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
[GitHub] [airflow] alexbegg commented on issue #8712: docker image does not include 'pymssql'
Posted by GitBox <gi...@apache.org>.
alexbegg commented on issue #8712:
URL: https://github.com/apache/airflow/issues/8712#issuecomment-634841172
pymssql is installed with the airflow extra "mssql". It is not pre-installed with the docker image apache/airflow:1.10.10. I am currently installing it as a separate pip install of `apache-airflow[mssql]==1.10.10` in my helm chart and I have no issue using the MsSqlHook.
----------------------------------------------------------------
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
[GitHub] [airflow] potiuk commented on issue #8712: docker image does not include 'pymssql'
Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #8712:
URL: https://github.com/apache/airflow/issues/8712#issuecomment-634864391
Yep. We want to minimise the prod image size to get the most frequently used packages (and core ones). We've added a new feature today to the prod image - you can add additional extras or python deps and b build your own version of the image. https://github.com/apache/airflow/blob/master/IMAGES.rst#production-images
Breeze supports building they production image and it wil even help you to add the extras in. For example:
```
./breeze build-image --production-image --additional-extras mssql
```
So I consider this solved with this feature via #8866
----------------------------------------------------------------
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
[GitHub] [airflow] potiuk closed issue #8712: docker image does not include 'pymssql'
Posted by GitBox <gi...@apache.org>.
potiuk closed issue #8712:
URL: https://github.com/apache/airflow/issues/8712
----------------------------------------------------------------
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
[GitHub] [airflow] boring-cyborg[bot] commented on issue #8712: docker image does not include 'pymssql'
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #8712:
URL: https://github.com/apache/airflow/issues/8712#issuecomment-623761225
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] potiuk commented on issue #8712: docker image does not include 'pymssql'
Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #8712:
URL: https://github.com/apache/airflow/issues/8712#issuecomment-623931430
Thanks! Will take a look!
----------------------------------------------------------------
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