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
{{ message }}
This repository was archived by the owner on Oct 29, 2023. It is now read-only.
It looks like the "Device" class can't be pickled anymore with your latest major release. We'd like to upgrade to v.2+ but our tests that use multiprocessing fail because of this reason.
Environment details
OS type and version: local Mac OS 10.15.7, docker python-base:3.8.3-slim-buster
Traceback (most recent call last):
File "/Users/cmezzavilla/Code/aratrum/.vscode/scratch.py", line 7, in <module>
pickled_device = pickle.dumps(device)
_pickle.PicklingError: Can't pickle <class 'Device'>: it's not the same object as __main__.Device
Stack trace from test
We have some tests running with multiprocessing, and when trying to upgrade python-iot from 1.0.0 to 2.0.1 they fail like so:
Hello!
It looks like the "Device" class can't be pickled anymore with your latest major release. We'd like to upgrade to v.2+ but our tests that use multiprocessing fail because of this reason.
Environment details
google-cloud-iotversion: 2.0.1Steps to reproduce
Try to pickle
Code example and resulting stack trace
Result:
Stack trace from test
We have some tests running with multiprocessing, and when trying to upgrade python-iot from 1.0.0 to 2.0.1 they fail like so: