Skip to content
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

serialization of pycont objects #165

Open
gaspar-hp opened this issue Jul 27, 2021 · 1 comment
Open

serialization of pycont objects #165

gaspar-hp opened this issue Jul 27, 2021 · 1 comment

Comments

@gaspar-hp
Copy link

Hello!
First of all, thanks for the great work.
I'm having trouble serializing cont objects, I know its a difficult thing, but I was able to do it one and a half years ago using dill. Somehow it is not possible anymore. the error I am getting is

PicklingError: Can't pickle <class 'sys.version_info'>: it's not the same object as sys.version_info

and I think it is related to the import of the mentioned class somewhere in the files produced by swig when it compiles the modules for LC curves in AUTO, since cont objects without LC curves can be serialized. I am not really a skilled programmer to debug this, but it was really useful to be able to serialize the whole thing. Maybe the way swig works changed and it has nothing to do with pydstool, but it would be great if you can point me in the way to find a workaround.
Thanks again, it is a great tool.
GH

@robclewley
Copy link
Owner

It's been forever since I looked at this part of the code. Can you post here some example code that's stripped down to the minimum necessary to reproduce, as best as you can? I'm assuming the only expensive objects you're trying to preserve are the curves you've already computed. Is that right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants