FAQ and Troubleshooting¶
mermaid
flowchart TD
A[Connection/query issue] --> B{What failed?}
B -->|Import| C[Check pyodbc installation]
B -->|ODBC setup| D[Check Altibase ODBC driver or DSN]
B -->|Network| E[Check host/port and server status]
B -->|Text encoding| F[Adjust NLS_USE]
B -->|LOB behavior| G[Toggle LongDataCompat]
C --> H[Retry]
D --> H
E --> H
F --> H
G --> H
pyodbc not found
Symptom
InterfaceError: pyodbc is required to use pyaltibase...
Fix
- Install
pyodbcin the active environment. - Ensure system ODBC manager/libraries are installed.
- Re-run your script in the same Python environment.
Altibase ODBC driver not found
Symptom
- Backend connection error indicating driver or DSN is missing.
Fix
- Verify installed driver name matches
driverargument exactly. - If using DSN, verify DSN exists and is readable by runtime user.
- Check ODBC manager configuration files and architecture (32/64-bit).
Connection refused (default port 20300)
Symptom
- Connection attempt fails with network/refused error.
Fix
- Confirm Altibase server is running.
- Confirm target host and
port=20300(or your custom port). - Check firewall/security-group/network-policy rules.
- Validate service bind address from database host.
NLS_USE encoding issues
Symptom
- Non-ASCII text appears corrupted or decoding behaves unexpectedly.
Fix
- Set explicit
nls_useinconnect(). - Align setting with server-side expectations.
- Re-test with representative multilingual data.
LONG_DATA_COMPAT errors
Symptom
- Errors or unexpected behavior when reading/writing large text or binary payloads.
Fix
- Toggle
long_data_compatand retry. - Validate behavior with real LOB sizes in your environment.
Still stuck?
Capture the exact exception class and message (type(exc).__name__, str(exc)), plus your connection mode (DSN vs driver) and ODBC driver name before escalating.