GeezerVison is showing github.com — Raise exception with helpful error on Client pickle. · Issue #3211 · googleapis/google-cloud-python
Raise exception with helpful error on Client pickle. #3211
Description
Based on the discussion in #3191, raise an exception with a helpful error stating that Client classes are not pickleable.
Note to self: We probably want this in GAX also.
Activity
dhermes commented on Mar 27, 2017
_PICKLE_MSG = """\
Pickling client objects is explicitly not supported.
Clients have a large amount of state that is local and unpickleable.
"""
class Client(...):
...
def __getstate__(self):
raise NotImplementedError(_PICKLE_MSG)added a commit that references this issue
on Mar 28, 2017This issue will close once commit 15529c1 is merged into the 'master' branch.15529c1 added 3 commits that reference this issue
on Mar 30, 2017This issue will close once commit 71f8d5d is merged into the 'main' branch.71f8d5d This issue will close once commit 966cb4d is merged into the 'main' branch.966cb4d This issue will close once commit 1c7098d is merged into the 'main' branch.1c7098d added a commit that references this issue
on Mar 30, 2017This issue will close once commit 175a587 is merged into the 'main' branch.175a587 added a commit that references this issue
on May 6, 2017This issue will close once commit 13abcf6 is merged into the 'master' branch.13abcf6 added a commit that references this issue
on Apr 3, 2023This issue will close once commit bc6f2ef is merged into the 'main' branch.bc6f2ef added a commit that references this issue
on Apr 18, 2023This issue will close once commit de75dea is merged into the 'main' branch.de75dea added a commit that references this issue
on Jun 4, 2023This issue will close once commit 624ed5d is merged into the 'main' branch.624ed5d added a commit that references this issue
on Jul 6, 2023This issue will close once commit a9c177d is merged into the 'main' branch.a9c177d added 6 commits that reference this issue
on Oct 21, 2023This issue will close once commit f8234bf is merged into the 'main' branch.f8234bf This issue will close once commit 6601a00 is merged into the 'main' branch.6601a00 This issue will close once commit d4cae0c is merged into the 'main' branch.d4cae0c This issue will close once commit 00a2690 is merged into the 'main' branch.00a2690 This issue will close once commit 39e2b16 is merged into the 'main' branch.39e2b16 This issue will close once commit d155d13 is merged into the 'main' branch.d155d13 added 7 commits that reference this issue
on Nov 22, 2025This issue will close once commit ca22969 is merged into the 'main' branch.ca22969 This issue will close once commit 566233d is merged into the 'main' branch.566233d This issue will close once commit e915e03 is merged into the 'main' branch.e915e03 This issue will close once commit 16a9f84 is merged into the 'main' branch.16a9f84 This issue will close once commit 092fdab is merged into the 'main' branch.092fdab This issue will close once commit 0a25866 is merged into the 'main' branch.0a25866 This issue will close once commit 7843574 is merged into the 'main' branch.7843574 added a commit that references this issue
on Mar 2, 2026This issue will close once commit 0a49f6f is merged into the 'main' branch.0a49f6f added 2 commits that reference this issue
on Mar 9, 2026This issue will close once commit b29f7dd is merged into the 'main' branch.b29f7dd This issue will close once commit a223d7a is merged into the 'main' branch.a223d7a
Metadata
Metadata
Development
No branches or pull requestsIssue actions