Error trying to deserialize an object
See original GitHub issuefrom distributed.protocol import deserialize_bytes
What happened:
Error trying to deserialize an object dask_ml.decomposition.PCA
already fitted.
OSError: Timed out trying to connect to tcp://10.xxx.120.x31:35487 after 30 s
I do a fit with my data and export a serialized file. When trying to instantiate on a different cluster, it appears that the file tries to connect with the scheduler of the cluster it was trained on.
What you expected to happen:
I expected that, regardless of the context (cluster ip, number of workers…), I would be able to import my PCA object.
I’ve already tried to dump using the pickle
and dill
libraries
deserialize_bytes('gs://file.pkl')
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
There was an error deserializing the object of type ...
This error means the response is HTML not JSON. Use the Visual Studio debugger to physically read the response. It could be an...
Read more >Unable to deserialize JSON object - Stack Overflow
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is...
Read more >There was an error deserializing the object of type System ...
I am trying to deserialize the body of Message, and I am getting this deserialization error. I browsed some previous issues and it...
Read more >Serialization Error Handling - Json.NET
The Error event is an event handler found on JsonSerializer. The error event is raised whenever an exception is thrown while serializing or...
Read more >JR54129: DESERIALIZATION ERROR OCCURS WHEN ... - IBM
If the newer snapshot removes properties in the nested business object (the parent business object remains unchanged) and you try to run the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can you give a reproducible example? And perhaps post the full traceback?
Just looking at the code, I don’t see what attribute would be causing the issue.
Hey @TomAugspurger, thanks for the opportunity. I will try as soon as possible, but I believe I won’t be able to make the changes anytime soon.