Install & Compatibility
Where this runs
tested against v6.4.6 · 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 1.706s · 120.4MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 7.5s · import 1.094s · 119MB
122MB installed
● package 122MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
OTSClient
✓ from tablestore import OTSClient
✗ from ots import OTSClient
Old package name was 'ots'; renamed to 'tablestore' in v4.
Initialize OTSClient and list existing tables.
from tablestore import OTSClient
endpoint = os.environ.get('OTS_ENDPOINT', '')
access_key_id = os.environ.get('OTS_ACCESS_KEY_ID', '')
access_key_secret = os.environ.get('OTS_ACCESS_KEY_SECRET', '')
instance_name = os.environ.get('OTS_INSTANCE_NAME', '')
client = OTSClient(endpoint, access_key_id, access_key_secret, instance_name)
# List tables
tables = client.list_table()
print(tables)
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'ots'
The package was renamed from 'ots' to 'tablestore' in v4.
fixInstall with 'pip install tablestore' and update imports: 'from tablestore import ...'.
AttributeError: module 'tablestore' has no attribute 'OTSClient'
The symbol 'OTSClient' might have been imported incorrectly. In older docs it was 'ots.OTSClient'.
fixUse correct import: 'from tablestore import OTSClient'.
tablestore.error.OTSServiceError: RequestTimeTooSkewed
The client machine's clock is not synchronized with Alibaba Cloud servers.
fixRun NTP sync (e.g., 'sudo ntpdate ntp.aliyun.com') or set correct timezone.
Upgrade
Version history
6.4.6latest on PyPI · released Apr 28, 2026
Audit
Dependencies
crcmodoptionalRequired for CRC32 checksum computation in data integrity checks.
protobufoptionalUsed for serialization of request/response objects (version 3.x or 4.x).