Install & Compatibility
Where this runs
tested against v2.68.0 · 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.724s · 49.5MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.2s · import 0.634s · 50MB
48MB installed
● package 48MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Client
✓ from cvat_sdk import Client
✗ from cvat_sdk.client import Client
Alias changed in 2.x; direct import from submodule deprecated.
Task
✓ from cvat_sdk.models import Task
✗ from cvat_sdk.core.models import Task
Core subpackage removed in 2.x.
Initialize client with URL and credentials from environment variables.
import os
from cvat_sdk import Client
client = Client(
url=os.environ.get('CVAT_URL', 'http://localhost:8080'),
auth=(os.environ.get('CVAT_USER', ''), os.environ.get('CVAT_PASS', ''))
)
print(f"Logged in as {client.user}")
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'cvat_sdk.core'
v2.x removed the core subpackage; imports from cvat_sdk.core.models fail.
fixChange import to `from cvat_sdk.models import Task`.
TypeError: Client.__init__() takes 1 positional argument but 3 were given
Passing url and auth as positional arguments in v2.x.
fixUse keyword arguments: `Client(url='http://...', auth=('user', 'pass'))`. AttributeError: 'Client' object has no attribute 'create_task'
Deprecated method removed or not available in current version.
fixUse `client.tasks.create(spec)`.
cvat_sdk.exceptions.ApiException: Not Found
Trying to access a task or project that doesn't exist or insufficient permissions.
fixVerify resource ID and user access rights.
Upgrade
Version history
2.68.0latest on PyPI · released Jun 10, 2026
Audit
Dependencies
requestsrequiredHTTP client for API calls
attrsrequiredData classes for models
PillowoptionalImage handling