Install & Compatibility
Where this runs
tested against v15.10.0.21 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.164s · 19.5MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.7s · import 0.174s · 20MB
17MB installed
● package 17MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
udaExec
✓ import teradata
✗ from teradata import udaExec
udaExec is a module attribute, not a direct import; use 'import teradata' then 'teradata.UdaExec'
teradata.UdaExec
✓ udaExec = teradata.UdaExec(appName='test')
✗ import UdaExec
'UdaExec' is inside the teradata package; direct import does not work.
Connect using ODBC and run a simple query.
import teradata
udaExec = teradata.UdaExec(appName='test', version='1.0', logConsole=False)
session = udaExec.connect(method='odbc', system='your_td_host', username=os.environ.get('TD_USER', ''), password=os.environ.get('TD_PASS', ''))
query = "SELECT DATABASENAME FROM DBC.DATABASESV WHERE DATABASENAME = 'DBC'"
df = session.execute(query).fetchall()
print(df)
session.close()
Errors
Common errors & fixes
Error: ('HY000', '[HY000] [Teradata][ODBC Teradata Driver] Not enough memory')
Result set too large for ODBC driver buffer; default fetch size is unlimited.
fixUse `session.execute(query, fetch_size=1000)` to limit fetch size.
teradata.api.DatabaseError: (3707, '[Teradata Database] [3932] The user is not a privileged user.')
User lacks required privileges (e.g., creating tables, macros).
fixGrant necessary permissions via Teradata DBA.
AttributeError: module 'teradata' has no attribute 'UdaExec'
Incorrect import; user tried `from teradata import UdaExec`.
fixUse `import teradata` and reference `teradata.UdaExec`.
Upgrade
Version history
15.10.0.21latest on PyPI · released Apr 29, 2017
Audit
Dependencies
No dependency data recorded yet.