-
Notifications
You must be signed in to change notification settings - Fork 31
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
MSodbcSQL18 is not supported on Macos 14 #98
Comments
Tried running odbcinst -j
*{USERNAME} is my local username Als ran the following python code :
The output : |
Similar issues : |
Can you try running |
What I have observed is the following: import pyodbc |
isql -v -k 'DRIVER={ODBC Driver 18 for SQL Server};SERVER=MYSERVER;PORT=1443;DATABASE=MY_DATABASE;UID=USER;PWD=PASSWOR’D [S1T00][Microsoft][ODBC Driver 18 for SQL Server]Login timeout expired |
|
Sorry for the late reply @v-chojas here's the result of the query :
Connection string format that I can use in windows with ODBC Driver : "mssql+pyodbc://{USERNAME}:{PASSWORD}@{URL},{PORT}/{DBNAME}?driver=ODBC Driver 18 for SQL Server" |
Thanks for this. I gave up and resorted to metabase instead. Importantly, and maybe this could help others,I created a docker network, mounted the two containers (metabase and mssql) on it, and used the mssql container as the host name in the connection string (a little different and much easier in netabase)Regards,------------------------YoelOn 27 Dec 2023, at 8:14, Çağrı Münyas ***@***.***> wrote:
Can you try running isql -v -k '<your connection string here>' and see if it gives the same error?
Sorry for the late reply @v-chojas here's the result of the query :
[IM002][unixODBC][Driver Manager]Data source name not found and no default driver specified
[ISQL]ERROR: Could not SQLDriverConnect
Connection string format that I can use in windows with ODBC Driver :
"mssql+pyodbc://{USERNAME}:{PASSWORD}@{URL},{PORT}/{DBNAME}?driver=ODBC Driver 18 for SQL Server"
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Hi @v-chojas |
Tried deleting my old python environment recreated new one with python 3.12.1 |
AS of today pyodbc supports Mac ARM directly https://github.com/mkleehammer/pyodbc/releases/tag/5.1.0 |
Following the installation guide on https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/install-microsoft-odbc-driver-sql-server-macos?view=sql-server-ver16
MacOs Version : macOS Sonoma 14.1
Python version : 3.11.4
ODBC Driver : Microsoft ODBC 18
pyodbc version : 5.0.1
-->Installed pyodbc using
pip install --no-binary :all: --no-cache-dir --force-reinstall pyodbc
Even though the note on the page says it now supports Mac silicon natively, upon installation there is always the following error:
('01000', "[01000] [unixODBC][Driver Manager]Can't open lib '/opt/homebrew/lib/libmsodbcsql.18.dylib' : file not found (0) (SQLDriverConnect)")
otool -L "/opt/homebrew/lib/libmsodbcsql.18.dylib" returns :
Also tried https://learn.microsoft.com/en-us/sql/connect/odbc/linux-mac/install-microsoft-odbc-driver-sql-server-macos?view=sql-server-ver16#troubleshooting as I have the exact error. But the recommended solution seems to be a workaround rather than a fix as it didn't work for me.
The text was updated successfully, but these errors were encountered: