You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to save an Add expression of the symengine.lib.symengine_wrapper module with dill, however, I get the following error 'TypeError: self.thisptr cannot be converted to a Python object for pickling'.
Is there a way to store the object without converting it to the sympy environment?
Regards, Karan
The text was updated successfully, but these errors were encountered:
This is a good question! I encountered the same issue today myself and solved it by going via sympy, which is not optimal. Serialization on the C++ side is being worked on here symengine/symengine#1704. It could potentially be possible to support serialization directly in the python wrapper, but I don't know if it is worth it or if the C++ serializer could work also for pickling in python.
It could potentially be possible to support serialization directly in the python wrapper, but I don't know if it is worth it or if the C++ serializer could work also for pickling in python.
C++ serializer should definitely work also for pickling in python.
Hi everyone,
I am trying to save an Add expression of the symengine.lib.symengine_wrapper module with dill, however, I get the following error 'TypeError: self.thisptr cannot be converted to a Python object for pickling'.
Is there a way to store the object without converting it to the sympy environment?
Regards, Karan
The text was updated successfully, but these errors were encountered: