Describe the bug
The package complains about mssql-auth.dll, same thing happens if I run it in a venv.
Exception message: RuntimeError: mssql-auth.dll not found. If you are using Entra ID, please ensure it is present.
Stack trace:
Traceback (most recent call last):
File "C:\Users\MattiasThalén\Repositories\enqore\test.py", line 21, in <module>
conn = mssql_python.connect(connection_string)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\MattiasThalén\Repositories\enqore\.venv\Lib\site-packages\mssql_python\db_connection.py", line 46, in connect
conn = Connection(
^^^^^^^^^^^
File "C:\Users\MattiasThalén\Repositories\enqore\.venv\Lib\site-packages\mssql_python\connection.py", line 239, in __init__
self._conn = ddbc_bindings.Connection(
To reproduce
import mssql_python
import os
host = os.getenv("DESTINATION__CREDENTIALS__HOST")
database = os.getenv("DESTINATION__CREDENTIALS__DATABASE")
connection_string = f"""
Server={host};
Database={database};
Authentication=ActiveDirectoryInteractive;
Encrypt=yes;
"""
conn = mssql_python.connect(connection_string)
Expected behavior
Connection successful.
Further technical details
Python version: 3.11.11
SQL Server version: Fabric Warehouse
Operating system: Windows 11
Describe the bug
The package complains about mssql-auth.dll, same thing happens if I run it in a venv.
To reproduce
Expected behavior
Connection successful.
Further technical details
Python version: 3.11.11
SQL Server version: Fabric Warehouse
Operating system: Windows 11