-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pickle dump issue #147
Comments
What are you trying to achive? Could you provide more details please? |
I have a sample code which should continuously run all the time. To make this highly available, I am inheriting pysync obj in my class. After this I am connecting 3 servers, where the leader gets elected and the leader has to do some job. I am using Python 3.7.9 for doing this. The code runs for sometime and then I get the following issue.
Can you please help me in fixing this issue ?. |
You should declare all non-serializable fields after calling super. |
This is how my class looks like. I see I have serializable fields after calling super class.
|
You better make a separate class with fields required to synchronize.
|
I don't want to synchronize, I want to have some specific configuration fields in a class which has serializable values. How to do that ?. |
Sory, I don't understand what you try to achive. |
Local config values are some values which will be used in the code. Actually they are constants which are read from a config file. Instead of mixing the sync object with my class, I am passing the sync obj in the myclass method that I want to use. This way I don't see the previous error. |
@bakwc |
Does you external IP address matches network adapter address (
|
Can you given example for host1, host2, host3 My external ip address matches with ifconfig output.
Can you please give an example of how to do with this given hosts host1,host2,host3 ?. |
pickle.dump(obj, file, __protocol)
TypeError: can't pickle _thread.RLock objects
This issue is happening with python3.7 version.
The text was updated successfully, but these errors were encountered: