Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
LiveClient
✓ from huaweicloudsdklive.v1 import LiveClient
✗ from huaweicloudsdklive import LiveClient
LiveClient is under the v1 subpackage.
CreateDomainRequest
✓ from huaweicloudsdklive.v1 import CreateDomainRequest
Initialize the Live client and list transcoding templates for a domain.
import os
from huaweicloudsdkcore.auth.credentials import BasicCredentials
from huaweicloudsdkcore.http.http_config import HttpConfig
from huaweicloudsdklive.v1 import LiveClient, ListTranscodingsTemplateRequest
ak = os.environ.get('HUAWEICLOUD_AK', '')
sk = os.environ.get('HUAWEICLOUD_SK', '')
region = os.environ.get('HUAWEICLOUD_REGION', 'cn-north-4')
credentials = BasicCredentials(ak, sk)
http_config = HttpConfig.get_default_config()
client = LiveClient.new_builder() \
.with_credentials(credentials) \
.with_region(region) \
.with_http_config(http_config) \
.build()
request = ListTranscodingsTemplateRequest(domain='play.example.com')
try:
response = client.list_transcodings_template(request)
print(response)
except Exception as e:
print(e)
Errors
Common errors & fixes
huaweicloudsdkcore.exceptions.exceptions.ServiceResponseException: status_code: 401, error_code: LIVE.100011001, ...
Invalid or expired AK/SK credentials.
fixVerify your Access Key and Secret Key are correct and have not expired. Generate new ones from the Huawei Cloud console if needed.
AttributeError: module 'huaweicloudsdklive' has no attribute 'v1'
Old SDK structure used 'huaweicloudsdklive' as the import path without the 'v1' subpackage. After the breaking change, the correct import path is 'huaweicloudsdklive.v1'.
fixChange import to 'from huaweicloudsdklive.v1 import ...'.
huaweicloudsdkcore.exceptions.exceptions.SdkException: region id 'cn-north' is invalid
The region ID provided is incomplete or incorrect.
fixUse a valid region ID like 'cn-north-4' or 'ap-southeast-1'. Refer to the region list in Huawei Cloud documentation.
Upgrade
Version history
3.1.198latest on PyPI · released Jun 4, 2026
Audit
Dependencies
huaweicloudsdkcorerequiredCore SDK required for authentication and HTTP client.