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
To support data exchange, being able to serialize non-JSON-serializable GithubObjects has been easily achieved in past with pickle. However, starting with v1.58, GithubObjects like Repository, NamedUser, etc. are no longer serializable with with pickle,
Traceback (most recent call last):
File "/Users/joshfell/code/daedalus/tempCodeRunnerFile.python", line 15, in <module>
pickle.dumps(repo)
File "/usr/local/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/synchronize.py", line 101, in __getstate__
context.assert_spawning(self)
File "/usr/local/Cellar/python@3.10/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/context.py", line 373, in assert_spawning
raise RuntimeError(
RuntimeError: RLock objects should only be shared between processes through inheritance
The underyling Requester object now has an RLock() attribute, __auth_lock, which looks to be preventing this serialization.
The text was updated successfully, but these errors were encountered:
To support data exchange, being able to serialize non-JSON-serializable
GithubObject
s has been easily achieved in past withpickle
. However, starting with v1.58,GithubObject
s likeRepository
,NamedUser
, etc. are no longer serializable with withpickle
,For example,
raise the following exception:
The underyling
Requester
object now has anRLock()
attribute,__auth_lock
, which looks to be preventing this serialization.The text was updated successfully, but these errors were encountered: