I am trying to connect to an access .mdb file in a linux environment. Until now, I have done this in windows like this:
import pyodbc
DRIVER="{Microsoft Access Driver (*.mdb, *.accdb)}"
def connect():
PATH = '...file.mdb'
con = pyodbc.connect('DRIVER={};DBQ={}'.format(DRIVER,PATH))
return con
Now trying this in Ubuntu 18, this won't work because the Microsoft access driver is not available. I have been all over trying to solve this, mainly with MDBTools. After installing MDBTools and changing the driver to MDBTools
I get this error:
pyodbc.Error: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'libmdbodbc.so' : file not found (0) (SQLDriverConnect)")
I no idea how to resolve this, sources say download a libmdbodbc package, but it seems this package no longer exists.