Install & Compatibility
Where this runs
tested against v4.10.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 1.226s · 104.1MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 9.2s · import 1.110s · 106MB
112MB installed
● package 112MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
client
✓ from watcherclient import client
✗ from python_watcherclient import client
Hyphen in package name, underscore in module.
Authenticate and list audits.
from watcherclient import client
from keystoneauth1 import session
from keystoneauth1.identity import v3
auth = v3.Password(auth_url=os.environ.get('OS_AUTH_URL', 'http://localhost:5000/v3'),
username=os.environ.get('OS_USERNAME', 'admin'),
password=os.environ.get('OS_PASSWORD', 'password'),
project_name=os.environ.get('OS_PROJECT_NAME', 'admin'),
user_domain_name=os.environ.get('OS_USER_DOMAIN_NAME', 'Default'))
sess = session.Session(auth=auth)
wc = client.Client(1, session=sess)
print(list(wc.audit.list()))
watcher --version
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'watcherclient'
Package not installed or wrong import name.
fixInstall with 'pip install python-watcherclient' and import as 'from watcherclient import client'.
watcherclient.exceptions.Unauthorized: Unauthorized
Invalid or missing authentication credentials.
fixVerify environment variables OS_AUTH_URL, OS_USERNAME, OS_PASSWORD are set correctly.
TypeError: Client() missing 1 required positional argument: 'version'
API version argument omitted.
fixCall client.Client(1, session=sess) (API version is the first argument).
ValueError: API version x is not supported
Using unsupported API version.
fixUse version 1 (the only stable version).
Upgrade
Version history
4.10.0latest on PyPI · released Feb 27, 2026
Audit
Dependencies
openstacksdkrequiredUnderlying SDK for OpenStack API communication
keystoneauth1requiredAuthentication
osc-librequiredOpenStack client support