I'm trying to connect to a Microsoft Access database with pyodbc
on Mac OS 10.12.6 with python version 3.6.4.
My code is the following:
conn_str = ('DRIVER={Microsoft Access Driver (*.mdb, *.accdb)};'\
'DBQ=test.accdb;')
cnxn = pyodbc.connect(conn_str)
I receive an error while running the last line -
pyodbc.Error: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'Microsoft Access Driver (*.mdb, *.accdb)' : file not found (0) (SQLDriverConnect)")
I've double checked that my database is in the correct directory, and I've tried reinstalling pyodbc to make sure all of the libraries exist. I'm not sure what's going on.