question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error trying to deserialize an object

See original GitHub issue
from 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:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
TomAugspurgercommented, Sep 11, 2021

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.

0reactions
lbonini94commented, Sep 27, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found