Closed nchammas closed 8 years ago
Could you please provide the OS you were using and the version of the Teradata Python Module?
Thanks, -Eric
OS X 10.11.3, teradata 15.10.0.14, and Python 3.5.1.
I was able to make several improvements on Mac and Linux when drivers are not installed or paths not setup correctly.
On Mac, the iODBC driver Manager wasn't returning the SQL_ERROR until the third time the SQLGetDiagRecW call was made, so I modified code to return the error data from the first to calls instead of reporting the SQL_ERROR from SQLGetDiagRecW.
On Linux, all the DataDirect driver manager returns when the driver is installed but the ODBCINI environment variable is not set is "[632] 523 630". I've added a check for all numbered error messages to check that the driver is installed and the ODBCINI environment variable is set correctly.
I was just getting started with PyTd, working through the Hello World example, when I hit my first problem:
This is a pretty intimidating way to say what the problem actually is: "Could not find ODBC driver." Once I installed it, things worked fine.
A clear, direct message about this problem would be helpful for newcomers.