问题
When I try to connect to my DSN using pyodbc I am getting following error:
python3: Relink
/lib/x86_64-linux-gnu/libudev.so.1' with
/lib/x86_64-linux-gnu/librt.so.1' for IFUNC symbol `clock_gettime' Segmentation fault (core dumped)
I have tried different solution like reinstalling libudev1 etc. but nothing is working.
I tried to connect to using 16.04 VM and I am getting
could not connect to server: Connection timed out Is the server running on host xxxxxx and accepting TCP/IP connections on port 5439?
pyodbc works fine on 16.04 but not connecting.
PS: I am using VPN tunnel for redshift connections
回答1:
Problem with odbc is that Amazon Redshift driver is compiled using different version of GCC than in 18.04. It works on 16.04 and below but not on 18.04.
来源:https://stackoverflow.com/questions/55166840/configure-aws-redshift-on-ubuntu-18-04-and-use-it-with-pyodbc