Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add mssql provider #356

Open
josborne-book4time opened this issue Feb 14, 2024 · 0 comments
Open

Cannot add mssql provider #356

josborne-book4time opened this issue Feb 14, 2024 · 0 comments

Comments

@josborne-book4time
Copy link

When adding the provider for MSSQL to the requirements.txt:

apache-airflow-providers-microsoft-mssql

The module does not install and this error is present in the console output:

aws-mwaa-local-runner-2_7-local-runner-1 | Compiling src/pymssql/_mssql.pyx because it changed.
aws-mwaa-local-runner-2_7-local-runner-1 | [1/1] Cythonizing src/pymssql/_mssql.pyx
aws-mwaa-local-runner-2_7-local-runner-1 | building 'pymssql._mssql' extension
aws-mwaa-local-runner-2_7-local-runner-1 | creating build/temp.linux-aarch64-cpython-311
aws-mwaa-local-runner-2_7-local-runner-1 | creating build/temp.linux-aarch64-cpython-311/src
aws-mwaa-local-runner-2_7-local-runner-1 | creating build/temp.linux-aarch64-cpython-311/src/pymssql
aws-mwaa-local-runner-2_7-local-runner-1 | gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.11 -c src/pymssql/_mssql.c -o build/temp.linux-aarch64-cpython-311/src/pymssql/_mssql.o -DMSDBLIB
aws-mwaa-local-runner-2_7-local-runner-1 | src/pymssql/_mssql.c:1236:10: fatal error: sqlfront.h: No such file or directory
aws-mwaa-local-runner-2_7-local-runner-1 | 1236 | #include "sqlfront.h"
aws-mwaa-local-runner-2_7-local-runner-1 | | ^~~~~~~~~~~~
aws-mwaa-local-runner-2_7-local-runner-1 | compilation terminated.
aws-mwaa-local-runner-2_7-local-runner-1 | error: command '/usr/bin/gcc' failed with exit code 1
aws-mwaa-local-runner-2_7-local-runner-1 | [end of output]
aws-mwaa-local-runner-2_7-local-runner-1 |
aws-mwaa-local-runner-2_7-local-runner-1 | note: This error originates from a subprocess, and is likely not a problem with pip.
aws-mwaa-local-runner-2_7-local-runner-1 | ERROR: Failed building wheel for pymssql
aws-mwaa-local-runner-2_7-local-runner-1 | Failed to build pymssql
aws-mwaa-local-runner-2_7-local-runner-1 | ERROR: Could not build wheels for pymssql, which is required to install pyproject.toml-based projects

This is running on an M2 Macbook Pro. Not sure if it's architecture related.

Full start up log attached.

airflow startup.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant