New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pyodbc failing to connect to Redshift with 4.0.34 version #1079
Comments
What does your |
Hey Scott. Here is the dump of the odbcinst.ini file.
|
Hey @gordthompson , Unfortunately, I disagree. As you can see above, the only thing changing from an unsuccessful connection to a successful one is driver version. I still did some testing with the latest redshift driver available on the AWS website and it didn't resolve the issue. The environment hasn't changed at all so the only solution for time being is uninstalling 4.0.34 and moving to 4.0.32 until the issue is identified in the library and fixed. However, this needs to be marked as a BUG instead of the "Environment or Driver issue" Thank you! |
@Hshamnani Interesting. This could be (and probably is) a red herring, but does the position of your Redshift driver matter? That is, if you move the |
@Hshamnani - What version of unixODBC are you using? If unsure, you can check with |
@gordthompson we experienced this with the latest version of |
The lack of a |
Try to compare the ODBC trace of a successful vs unsuccessful connection. |
|
@barberscott - Lines 33 to 34 in b7e944a
|
|
@barberscott - Just tried this. Same result. |
I just did. Didn't understand a lot of it since I am just a pesky data engineer. :) But I can attach a full version of it here if it helps. Seems like SQLDriverConnect.c is where the failure occurs. One difference I see is encoding changed from ISO8859-1 to UTF-8 but I am not sure how that could impact connectivity. With Pyodbc version 4.0.34 -
With Pyodbc version 4.0.32 -
|
What else did you change besides pyODBC version? That message is emitted by the driver manager (unixODBC) and it should not have changed if you say that you only changed the pyODBC version. For both versions, print out the value of |
Based on the revelations in #1081 I think the fact that pyODBC is including a very old unixODBC lib, as well as libltdl (related to dynamic linker) , is the cause. |
Issue submitted as #1082 . In the meantime, either pin pyodbc at 4.0.32 or use pip install pyodbc --no-binary pyodbc to install the latest version from source. Build tools, |
Please first make sure you have looked at:
Environment
To diagnose, we usually need to know the following, including version numbers. On Windows, be
sure to specify 32-bit Python or 64-bit:
Issue
Observed Behavior when using 4.0.34 version -
Observed behavior when using 4.0.32 version -
Seems like an update broke the connection to AWS Redshift. Please suggest.
The text was updated successfully, but these errors were encountered: