Skip to content

AttributeError: 'Client' object has no attribute 'project_id' #988

Open
@cyprismatt

Description

@cyprismatt

There are a few references to client.project_id, but client does not have a field project_id, it has a field project:

.venv/lib/python3.12/site-packages/google/cloud/logging_v2/logger.py", line 79, in __init__
    resource = detect_resource(client.project_id)
                               ^^^^^^^^^^^^^^^^^
AttributeError: 'Client' object has no attribute 'project_id'. Did you mean: 'project'?

Changing these references in site-packages fixed the issue, but until that is fixed in the source, this package is broken for retrieving log entries via the SDK.

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the googleapis/python-logging API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions