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

PPL Variables cannot be saved #19592

Open
yuan-zhou opened this issue Nov 16, 2015 · 2 comments
Open

PPL Variables cannot be saved #19592

yuan-zhou opened this issue Nov 16, 2015 · 2 comments

Comments

@yuan-zhou
Copy link

It seems impossible to save an object of the Parma Polyhedra Library's Variable class and then load it.

sage: from sage.libs.ppl import Variable
sage: x = Variable(0)
sage: x.save(os.path.join(SAGE_TMP, 'pplvariable'))
---------------------------------------------------------------------------
AttributeError: 'sage.libs.ppl.Variable' object has no attribute 'save'

sage: save(x, os.path.join(SAGE_TMP, 'pplvariable'))
sage: load(os.path.join(SAGE_TMP, 'pplvariable.sobj'))
---------------------------------------------------------------------------
TypeError: __cinit__() takes exactly 1 positional argument (0 given)

CC: @mkoeppe

Component: geometry

Issue created by migration from https://trac.sagemath.org/ticket/19592

@yuan-zhou yuan-zhou added this to the sage-6.10 milestone Nov 16, 2015
@yuan-zhou

This comment has been minimized.

@yuan-zhou yuan-zhou changed the title PPL Variables cannot be saved as .sobj PPL Variables cannot be saved Nov 16, 2015
@mkoeppe
Copy link
Contributor

mkoeppe commented Sep 7, 2021

comment:2

After the switch to pplpy, already save fails:

sage: from ppl import Variable                                                                                                                                
sage: x = Variable(0)                                                                                                                                         
sage: save(x, os.path.join(SAGE_TMP, 'pplvariable'))                                                                                                          
TypeError: no default __reduce__ due to non-trivial __cinit__

@mkoeppe mkoeppe removed this from the sage-6.10 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants