Configure AWS Redshift on Ubuntu 18.04 and use it with pyodbc

佐手、 提交于 2019-12-13 21:23:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!