Reputation: 52810
I want to find a way to specify the path of a driver -- or otherwise resolve problem that Pyodbc cannot find a Vertica driver -- for the following Python 3 command with Pyodbc package
Pyodbc.connect(...)
but I keep getting the error that a Vertica driver 9.0.x cannot be found. I used the installer here and the installer here on macOS.
I currently use an alias Vertica in the command but unknown for the Pyodbc connect so apparently some driver file problem, now need to find a way to resolve this.
How can I specify the location of the driver for pyodbc? Or otherwise resolve why the driver unknown?
Updated comments on TaliTedi answer.
How to confirm that iODBC is up-to-date?
How to build pyodbc with links to iODBC?
The directory
~/Library/ODBC/odbcini
does not exist. How to configure the DNSs?
Older pyodbc threads
Upvotes: 0
Views: 1929
Reputation: 9434
iODBC Administrator.app
(/Applications/iODBC/
) to configure ODBC Data Source Names (DSNs), which will be saved to default files:
/Library/ODBC/odbc.ini
~/Library/ODBC/odbc.ini
$ODBCINI
environment variable or similar settings, point them to the file(s) noted above.Upvotes: 1