You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Amey2400 (via GitHub)" <gi...@apache.org> on 2023/02/13 13:36:40 UTC

[GitHub] [airflow] Amey2400 opened a new issue, #29509: pyodbc 4.0.32 installation getting failed in airflow 2.4.0 base docker image

Amey2400 opened a new issue, #29509:
URL: https://github.com/apache/airflow/issues/29509

   ### Apache Airflow version
   
   Other Airflow 2 version (please specify below)
   
   ### What happened
   
   The pyodbc 4.0.32 package installation fails when we try to install it in apache/airflow:2.4.0-python3.9. Pyodbc package has dependency on unixodbc-dev package. 
   So recently after building the docker image with apache/airflow:2.4.0-python3.9 as base unixodbc-dev version got updated to 2.3.11. previous to this build the version of unixodbc-dev was 2.3.7. After this update of unixodbc-dev to 2.3.11 we are getting following error during installation of pyodbc 4.0.32 `package.
   `Building wheels for collected packages: pyodbc
     Building wheel for pyodbc (setup.py): started
     Building wheel for pyodbc (setup.py): finished with status 'error'
     error: subprocess-exited-with-error
     
     × python setup.py bdist_wheel did not run successfully.
     │ exit code: 1
     ╰─> [16 lines of output]
         running bdist_wheel
         running build
         running build_ext
         building 'pyodbc' extension
         creating build
         creating build/temp.linux-x86_64-3.9
         creating build/temp.linux-x86_64-3.9/src
         gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPYODBC_VERSION=4.0.32 -I/usr/local/include/python3.9 -c src/buffer.cpp -o build/temp.linux-x86_64-3.9/src/buffer.o -Wno-write-strings
         In file included from /usr/include/sql.h:19,
                          from src/pyodbc.h:56,
                          from src/buffer.cpp:12:
         /usr/include/sqltypes.h:56:10: fatal error: unixodbc.h: No such file or directory
            56 | #include "unixodbc.h"
               |          ^~~~~~~~~~~~
         compilation terminated.
         error: command '/usr/bin/gcc' failed with exit code 1
         [end of output]
     
     note: This error originates from a subprocess, and is likely not a problem with pip.
     ERROR: Failed building wheel for pyodbc
     Running setup.py clean for pyodbc
   Failed to build pyodbc`
   
   
   ### What you think should happen instead
   
   The pyodbc 4.0.32 package should be installed succesfully in docker image having airflow base image without any issue.
   
   ### How to reproduce
   
   Create any docker image with apache/airflow:2.4.0-python3.9 as base image and try to install pyodbc 4.0.32 in the same.
   
   ### Operating System
   
   Linux-debian
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Other Docker-based deployment
   
   ### Deployment details
   
   _No response_
   
   ### 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.apache.org

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


[GitHub] [airflow] potiuk closed issue #29509: pyodbc 4.0.32 installation getting failed in airflow 2.4.0 base docker image

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed issue #29509: pyodbc 4.0.32 installation getting failed in airflow 2.4.0 base docker image
URL: https://github.com/apache/airflow/issues/29509


-- 
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] Amey2400 commented on issue #29509: pyodbc 4.0.32 installation getting failed in airflow 2.4.0 base docker image

Posted by "Amey2400 (via GitHub)" <gi...@apache.org>.
Amey2400 commented on issue #29509:
URL: https://github.com/apache/airflow/issues/29509#issuecomment-1427957940

   Recently one issue in microsoft is raised for unixodbc-2.3.11 for the same issue missing unixodbc.h file. 
   https://github.com/microsoft/linux-package-repositories/issues/36


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