致命的Python错误:Ubuntum16.04上的分段错误

时间:2019-08-07 11:23:01

标签: python ubuntu teradata

致命的Python错误:Ubuntu 16.06上的分段错误

我正在尝试在ubuntu上通过python连接到teradata,但遇到分段错误错误。 安装了最新的python3.7.4,Ubuntu 16.04 VM,已安装Ubuntu的teradata ODBC驱动程序。

import datetime
import teradata
import pandas as pd

udaExec = teradata.UdaExec(appName = 'Test',version='1.0',logConsole=False)
    with udaExec.connect(method=method,system=host,username=username,password=password,driver=driver) as connect:
        query_str = "select * from table;"
        sql_vfid_df = pd.read_sql(query_str,connect)
        return sql_vfid_df

Fatal Python error: Segmentation fault

Current thread 0x00007f92ff5c9700 (most recent call first):
  File "/home/srinivt/.local/lib/python3.7/site-packages/teradata/tdodbc.py", line 450 in __init__
  File "/home/srinivt/.local/lib/python3.7/site-packages/teradata/udaexec.py", line 183 in connect
  File "./tokenization/tok-tr.py", line 51 in query_df_csv
  File "./tokenization/tok-tr.py", line 76 in <module>
Segmentation fault

0 个答案:

没有答案