I have trouble getting pyodbc work. I have unixodbc , unixodbc-dev, odbc-postgresql, pyodbc packages install
pyodbc
unixodbc
unixodbc-dev
odbc-postgresql
I have the same problem. It turns out that the data source file missed: /etc/ODBCDataSources. Just touch that file and it works.
/etc/ODBCDataSources