You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just updated to the dev version of {odbc} and the error persists but has some new information:
Error in `DBI::dbConnect()`:
! ODBC failed with error 00000 from [Simba][ODBC][Simba][Support].
✖ (11560) Unable to locate SQLGetPrivateProfileString function: (50483) Could not load shared library, all
attempted paths (<NULL>, "libodbcinst.dylib") failed
ℹ From [nanodbc/nanodbc.cpp:1150](vscode-file://vscode-app/Applications/Positron.app/Contents/Resources/app/out/vs/code/electron-sandbox/workbench/workbench.html#).
Finally managed to get this working. It seems the issue was that the Simba Spark driver couldn't find the system libodbcinst.dylib. To fix this, I had to locate the file on my machine and tell the spark driver where to find it. This meant adding the following line to /Library/simba/spark/lib/simba.sparkodbc.ini:
ODBCInstLib=/opt/homebrew/lib/libodbcinst.dylib
I can now connect as expected. For now I'll leave this open, as perhaps this configuration/setup is something that {odbc} could take care of for users in the future. If it feels out of scope for the package, please feel free to close this as complete :)
Hi,
I'm trying to connect to Databricks via the Simba Spark ODBC driver, but I'm getting this error:
I'm 99% sure odbc is picking up the correct path to the driver:
/Library/simba/spark/lib/libsparkodbc_sb64-universal.dylib
definitely exists.Apologies if this is an upstream issue - diagnosing these sorts of things is a bit beyond my current abilities. Thanks for your help!
devtools::session_info()
The text was updated successfully, but these errors were encountered: