BanditPAM icon indicating copy to clipboard operation
BanditPAM copied to clipboard

cannot pickle 'banditpam.KMedoids' object

Open afaghiri opened this issue 2 years ago • 3 comments

Hi,

When I try to save banditpam.KMedoids object using pickle I get this error:

"TypeError: cannot pickle 'banditpam.KMedoids' object"

Any idea what might be causing this issue?

afaghiri avatar Apr 07 '23 20:04 afaghiri

@Adarsh321123 could you take a look?

motiwari avatar Apr 07 '23 20:04 motiwari

Hi @afaghiri. Apologies for the late response. It seems that pickling a banditpam.KMedoids object is non-trivial since we use Python bindings (through the pybind11 library) of existing C++ code. Can you please let me know if adapting the material here helps?: https://pybind11.readthedocs.io/en/latest/advanced/classes.html#pickling-support.

Adarsh321123 avatar May 17 '23 04:05 Adarsh321123

Hi @afaghiri. I just wanted to follow up on this! Please let me know if you need any more assistance.

Adarsh321123 avatar May 29 '23 00:05 Adarsh321123

@afaghiri were you able to solve the issue?

Allan0820 avatar Nov 20 '25 03:11 Allan0820