Solved! Go to Solution.
Is the odbc driver installed on the target machine? pyodbc requires the odbc driver to be present on the OS.
Make sure that you run build plugin with Python 3.8 64 bit (if you are on OA/AG 1.231+, otherwise 3.6) on the same OS architecture as the AG.
Thanks Mike.