I am new to Mac and having issues trying to get pyodbc to work. I have installed:
- Teradata ODBC driver from https://downloads.teradata.com/download/connectivity/teradata-odbc-driver-for-mac-os-x
- unixodbc via brew
- pyodbc via pip install
when I try to create a connection using the following connection string:
pyodbc.connect('DRIVER={Teradata};DBCName=XXX;DATABASE=XXX;Authentication=TD2;UID=XXX;PWD=XXX')
I get this error:
Error: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'Teradata' : file not found (0) (SQLDriverConnect)")
I have no idea where to go from here. Also, I am not sure if it is relevant but I am using virtualenvwrapper to create my python environment.
I see this similar question (return error is different). Connect Python to Teradata in mac with pyodbc and ran the export statements but I am still getting the same error