Teradata / PyTd

A Python Module to make it easy to script powerful interactions with Teradata Database in a DevOps friendly way.
MIT License
108 stars 43 forks source link

Not working with Python 3.6 #83

Closed brot closed 7 years ago

brot commented 7 years ago

Module is not working with Python3.6

import teradata

udaExec = teradata.UdaExec(appName="MyApp", version="1.0", logConsole=True)
session = udaExec.connect(method="odbc", system="db", username="user", password="pass")

After the driver was loaded successfully (Available drivers: ODBC DRIVERS, Teradata), the following error occurs in udaExec.connect

teradata.api.DatabaseError: (0, '[I] [. Check that the ODBC driver is installed and the ODBCINI or ODBCINST environment variables are correctly set.')

With Python3.5 everything seems fine

brot commented 7 years ago

Ok, the problem was an my side. I used the latest version of Anaconda and with this installation there are a lot of packages preinstalled. Also pyodbc and unixodbc. After uninstalling both modules the teradata module works fine with python3.6 (from Anaconda)