{"id":27773,"library":"g42cloudsdkevs","title":"G42 Cloud SDK EVS","description":"Elastic Volume Service (EVS) client library for G42 Cloud, part of the G42 Cloud Python SDK. Current version is 0.0.10b0 (beta), with monthly releases. Supports Python 2.7+ and 3.x. Allows management of cloud volumes, snapshots, and backups.","status":"active","version":"0.0.10b0","language":"python","source_language":"en","source_url":"https://github.com/g42cloud-sdk/g42cloud-sdk-python","tags":["g42cloud","evs","cloud","sdk","volume"],"install":[{"cmd":"pip install g42cloudsdkevs","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Correct import pattern for EVS client and models.","symbol":"EvsClient","correct":"from huaweicloudsdkcore.client import ClientBuilder\nfrom g42cloudsdkevs.v1 import EvsClient\nfrom g42cloudsdkevs.v1.model import *"},{"note":"Wrong package prefix; must use g42cloudsdkevs, not huaweicloudsdkevs.","wrong":"from huaweicloudsdkevs import CreateVolumeRequest","symbol":"CreateVolumeRequest","correct":"from g42cloudsdkevs.v1.model import CreateVolumeRequest"}],"quickstart":{"code":"from huaweicloudsdkcore.auth.credentials import BasicCredentials\nfrom huaweicloudsdkcore.client import ClientBuilder\nfrom g42cloudsdkevs.v1 import EvsClient\nfrom g42cloudsdkevs.v1.model import ListVolumesRequest\n\nak = os.environ.get('G42_AK', '')\nsk = os.environ.get('G42_SK', '')\nproject_id = os.environ.get('G42_PROJECT_ID', '')\n\ncredentials = BasicCredentials(ak, sk, project_id)\nclient = EvsClient.new_builder() \\\n    .with_credentials(credentials) \\\n    .with_endpoint('https://evs.g42cloud.com') \\\n    .with_region('global') \\\n    .build()\n\nreq = ListVolumesRequest()\nresp = client.list_volumes(req)\nprint(resp)","lang":"python","description":"Initializes EVS client and lists volumes. Requires environment variables for authentication."},"warnings":[{"fix":"Use `pip install g42cloudsdkevs`.","message":"The library name is 'g42cloudsdkevs' not 'g42cloudsdk-evs' or 'g42cloud-evssdk'. Install via pip install g42cloudsdkevs exactly.","severity":"gotcha","affected_versions":"all"},{"fix":"Install huaweicloudsdkcore: `pip install huaweicloudsdkcore`.","message":"The package depends on huaweicloudsdkcore for base classes and authentication. It must be installed separately or as a dependency.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run `pip install g42cloudsdkevs`.","cause":"Library not installed or wrong name used (e.g. 'g42cloudsdk-evs').","error":"ModuleNotFoundError: No module named 'g42cloudsdkevs'"},{"fix":"Use `from g42cloudsdkevs.v1 import EvsClient`.","cause":"Using wrong import path from the Huawei Cloud SDK instead of G42 SDK.","error":"ImportError: cannot import name 'EvsClient' from 'huaweicloudsdkevs'"},{"fix":"Verify G42_AK, G42_SK, and G42_PROJECT_ID environment variables are set correctly.","cause":"Invalid or expired credentials (AK/SK) or wrong project ID.","error":"huaweicloudsdkcore.exceptions.exceptions.ServiceResponseException: service error: AuthFailure"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}