Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated unit test for google-shopping-merchant-accounts fails with AttributeError: module 'google.shopping.type.types.types' has no attribute 'Weight' #2035

Closed
parthea opened this issue Jun 5, 2024 · 0 comments · Fixed by #2083
Assignees
Labels
type: cleanup An internal cleanup or hygiene concern.

Comments

@parthea
Copy link
Contributor

parthea commented Jun 5, 2024

See build log here from PR googleapis/google-cloud-python#12773

_ ERROR collecting tests/unit/gapic/merchant_accounts_v1beta/test_terms_of_service_service.py _
tests/unit/gapic/merchant_accounts_v1beta/test_terms_of_service_service.py:45: in <module>
    from google.shopping.merchant_accounts_v1beta.services.terms_of_service_service import (
google/shopping/merchant_accounts_v1beta/services/terms_of_service_service/__init__.py:16: in <module>
    from .async_client import TermsOfServiceServiceAsyncClient
google/shopping/merchant_accounts_v1beta/services/terms_of_service_service/async_client.py:39: in <module>
    from google.shopping.merchant_accounts_v1beta import gapic_version as package_version
google/shopping/merchant_accounts_v1beta/__init__.py:21: in <module>
    from .services.account_issue_service import (
google/shopping/merchant_accounts_v1beta/services/account_issue_service/__init__.py:16: in <module>
    from .async_client import AccountIssueServiceAsyncClient
google/shopping/merchant_accounts_v1beta/services/account_issue_service/async_client.py:46: in <module>
    from google.shopping.merchant_accounts_v1beta.services.account_issue_service import (
google/shopping/merchant_accounts_v1beta/services/account_issue_service/pagers.py:27: in <module>
    from google.shopping.merchant_accounts_v1beta.types import accountissue
google/shopping/merchant_accounts_v1beta/types/__init__.py:87: in <module>
    from .shippingsettings import (
google/shopping/merchant_accounts_v1beta/types/shippingsettings.py:1209: in <module>
    class Headers(proto.Message):
google/shopping/merchant_accounts_v1beta/types/shippingsettings.py:1260: in Headers
    message=types.Weight,
E   AttributeError: module 'google.shopping.type.types.types' has no attribute 'Weight'
_ ERROR collecting tests/unit/gapic/merchant_accounts_v1beta/test_user_service.py _
tests/unit/gapic/merchant_accounts_v1beta/test_user_service.py:46: in <module>
    from google.shopping.merchant_accounts_v1beta.services.user_service import (
google/shopping/merchant_accounts_v1beta/services/user_service/__init__.py:16: in <module>
    from .async_client import UserServiceAsyncClient
google/shopping/merchant_accounts_v1beta/services/user_service/async_client.py:39: in <module>
    from google.shopping.merchant_accounts_v1beta import gapic_version as package_version
google/shopping/merchant_accounts_v1beta/__init__.py:21: in <module>
    from .services.account_issue_service import (
google/shopping/merchant_accounts_v1beta/services/account_issue_service/__init__.py:16: in <module>
    from .async_client import AccountIssueServiceAsyncClient
google/shopping/merchant_accounts_v1beta/services/account_issue_service/async_client.py:46: in <module>
    from google.shopping.merchant_accounts_v1beta.services.account_issue_service import (
google/shopping/merchant_accounts_v1beta/services/account_issue_service/pagers.py:27: in <module>
    from google.shopping.merchant_accounts_v1beta.types import accountissue
google/shopping/merchant_accounts_v1beta/types/__init__.py:87: in <module>
    from .shippingsettings import (
google/shopping/merchant_accounts_v1beta/types/shippingsettings.py:1209: in <module>
    class Headers(proto.Message):
google/shopping/merchant_accounts_v1beta/types/shippingsettings.py:1260: in Headers
    message=types.Weight,
E   AttributeError: module 'google.shopping.type.types.types' has no attribute 'Weight'
@parthea parthea added the type: cleanup An internal cleanup or hygiene concern. label Jun 5, 2024
parthea added a commit to googleapis/google-cloud-python that referenced this issue Jun 5, 2024
parthea added a commit to googleapis/google-cloud-python that referenced this issue Jun 10, 2024
parthea added a commit to googleapis/google-cloud-python that referenced this issue Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: cleanup An internal cleanup or hygiene concern.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant