Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

TypeError: can't pickle _thread.RLock objects #140

Closed
JeongChanwoo opened this issue Dec 7, 2020 · 4 comments
Closed

TypeError: can't pickle _thread.RLock objects #140

JeongChanwoo opened this issue Dec 7, 2020 · 4 comments
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@JeongChanwoo
Copy link

I tried transforming it by assigning a model to a class variable and predicting the PAD dynamically.

Since the prophet model file is in the form of storing the model in a class variable, I expected tensorflow to be possible as well.

The model I assigned is a tensorflow based model.

In the model Python file, i saved the model trained in the train process in the class variable model under class.

However, an error occurs in the process of putting the result in the queue after the train.

PAD_ANOMA | Traceback (most recent call last):
PAD_ANOMA |   File "app.py", line 214, in <module>
PAD_ANOMA |     train_model(initial_run=True, data_queue=predicted_model_queue)
PAD_ANOMA |   File "app.py", line 202, in train_model
PAD_ANOMA |     data_queue.put(PREDICTOR_MODEL_LIST)
PAD_ANOMA |   File "<string>", line 2, in put
PAD_ANOMA |   File "/opt/conda/envs/prophet-env/lib/python3.7/multiprocessing/managers.py", line 818, in _callmethod
PAD_ANOMA |     conn.send((self._id, methodname, args, kwds))
PAD_ANOMA |   File "/opt/conda/envs/prophet-env/lib/python3.7/multiprocessing/connection.py", line 206, in send
PAD_ANOMA |     self._send_bytes(_ForkingPickler.dumps(obj))
PAD_ANOMA |   File "/opt/conda/envs/prophet-env/lib/python3.7/multiprocessing/reduction.py", line 51, in dumps
PAD_ANOMA |     cls(buf, protocol).dump(obj)
PAD_ANOMA | TypeError: can't pickle _thread.RLock objects
@sesheta
Copy link

sesheta commented Jul 2, 2021

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@sesheta sesheta added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 2, 2021
@sesheta
Copy link

sesheta commented Oct 14, 2021

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

/lifecycle rotten

@sesheta sesheta added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Oct 14, 2021
@sesheta
Copy link

sesheta commented Nov 13, 2021

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

/close

@sesheta sesheta closed this as completed Nov 13, 2021
@sesheta
Copy link

sesheta commented Nov 13, 2021

@sesheta: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

2 participants