You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I determined this is the correct repository in which to report this bug.
Summary of the issue
google-cloud-asset fails to regenerate successfully due to a missing dependency:
google-cloud-org-policy
Update the post-processing for a short term fix
Add the dependency to the gapic generation templates for a long term fix AND then remove the post-processing
API client name and version
gapic generator 1.32.0
Reproduction steps: code
N/A
Reproduction steps: supporting files
N/A
Reproduction steps: actual results
Traceback from unit-3.10, 3.14, prerelease nox sessions.
______________________________________ ERROR collecting tests/unit/gapic/asset_v1p5beta1/test_asset_service.py ______________________________________
ImportError while importing test module '/repo/google-cloud-python/fix-asset-1.32.0-v2/packages/google-cloud-asset/tests/unit/gapic/asset_v1p5beta1/test_asset_service.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.14/importlib/__init__.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/unit/gapic/asset_v1p5beta1/test_asset_service.py:56: in <module>
from google.cloud.asset_v1p5beta1.services.asset_service import (
google/cloud/asset_v1p5beta1/__init__.py:26: in <module>
from .services.asset_service import AssetServiceAsyncClient, AssetServiceClient
google/cloud/asset_v1p5beta1/services/asset_service/__init__.py:16: in <module>
from .async_client import AssetServiceAsyncClient
google/cloud/asset_v1p5beta1/services/asset_service/async_client.py:49: in <module>
from google.cloud.asset_v1p5beta1.services.asset_service import pagers
google/cloud/asset_v1p5beta1/services/asset_service/pagers.py:41: in <module>
from google.cloud.asset_v1p5beta1.types import asset_service, assets
google/cloud/asset_v1p5beta1/types/__init__.py:16: in <module>
from .asset_service import (
google/cloud/asset_v1p5beta1/types/asset_service.py:23: in <module>
from google.cloud.asset_v1p5beta1.types import assets as gca_assets
google/cloud/asset_v1p5beta1/types/assets.py:20: in <module>
import google.cloud.orgpolicy.v1.orgpolicy_pb2 as orgpolicy_pb2 # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E ModuleNotFoundError: No module named 'google.cloud.orgpolicy'
Determine this is the right repository
Summary of the issue
google-cloud-assetfails to regenerate successfully due to a missing dependency:google-cloud-org-policyAPI client name and version
gapic generator 1.32.0
Reproduction steps: code
N/A
Reproduction steps: supporting files
N/A
Reproduction steps: actual results
Traceback from unit-3.10, 3.14, prerelease nox sessions.
Reproduction steps: expected results
OS & version + platform
No response
Python environment
3.10, 3.14
Python dependencies
No response
Additional context
No response