On Fri, Aug 30, 2019 at 12:48 PM 'SteveJJ' via sage-support
<[email protected]> wrote:
>
> I saved a session when using sage 8.0.
>
> When I try to load that session into sage 8.8, I get errors such as:
>
> RuntimeError: invalid pickle data
> ValueError: unknown matrix implementation 'flint' over Symbolic Ring
>
> The full error output is below.
>
> Am I missing some packages or do I need to somehow convert the session file?
I don't think that sage/load_session is guaranteed w.r.t. any kind of
backward/forward compatibility.
It relies on internals being unchanged, which is certainly not the
case from one Sage version to another.
>
>
> Attempt 1
>
> sage: load_session("/home/user/sage/sage_session_1")
> ---------------------------------------------------------------------------
> RuntimeError Traceback (most recent call last)
> <ipython-input-1-6224abcd403e> in <module>()
> ----> 1 load_session("/home/user/sage/sage_session_1")
>
> /usr/lib64/python3.7/site-packages/sage/misc/session.pyx in
> sage.misc.session.load_session (build/cythonized/sage/misc/sessio
> n.c:3687)()
> 390 if os.path.exists(nm):
> 391 name = nm
> --> 392 D = load(name)
> 393 for k, x in D.items():
> 394 state[k] = x
>
> /usr/lib64/python3.7/site-packages/sage/misc/persist.pyx in
> sage.misc.persist.load (build/cythonized/sage/misc/persist.c:2838
> )()
> 149
> 150 ## Load file by absolute filename
> --> 151 with open(filename, 'rb') as fobj:
> 152 X = loads(fobj.read(), compress=compress)
> 153 try:
>
> /usr/lib64/python3.7/site-packages/sage/misc/persist.pyx in
> sage.misc.persist.load (build/cythonized/sage/misc/persist.c:2788
> )()
> 150 ## Load file by absolute filename
> 151 with open(filename, 'rb') as fobj:
> --> 152 X = loads(fobj.read(), compress=compress)
> 153 try:
> 154 X._default_filename = os.path.abspath(filename)
>
> /usr/lib64/python3.7/site-packages/sage/misc/persist.pyx in
> sage.misc.persist.loads (build/cythonized/sage/misc/persist.c:735
> 3)()
> 967
> 968 unpickler = SageUnpickler(io.BytesIO(s))
> --> 969 return unpickler.load()
> 970
> 971
>
> /usr/lib64/python3.7/site-packages/sage/matrix/matrix0.pyx in
> sage.matrix.matrix0.unpickle (build/cythonized/sage/matrix/matr
> ix0.c:38713)()
> 5709 A._cache = cache
> 5710 if version >= 0:
> -> 5711 A._unpickle(data, version)
> 5712 else:
> 5713 A._unpickle_generic(data, version)
>
> /usr/lib64/python3.7/site-packages/sage/matrix/matrix_integer_dense.pyx in
> sage.matrix.matrix_integer_dense.Matrix_integer_de
> nse._unpickle (build/cythonized/sage/matrix/matrix_integer_dense.c:8264)()
> 541 self._unpickle_matrix_2x2_version0(data)
> 542 else:
> --> 543 raise RuntimeError("invalid pickle data")
> 544 else:
> 545 raise RuntimeError("unknown matrix version (=%s)"%version)
>
> RuntimeError: invalid pickle data
>
>
>
>
>
> Attempt 2
>
> sage: load_session("/home/user/sage/sage_session_2")
> ---------------------------------------------------------------------------
> ValueError Traceback (most recent call last)
> <ipython-input-2-dbd66d1d5c33> in <module>()
> ----> 1 load_session("/home/user/sage/sage_session_2")
>
> /usr/lib64/python3.7/site-packages/sage/misc/session.pyx in
> sage.misc.session.load_session (build/cythonized/sage/misc/sessio
> n.c:3687)()
> 390 if os.path.exists(nm):
> 391 name = nm
> --> 392 D = load(name)
> 393 for k, x in D.items():
> 394 state[k] = x
>
> /usr/lib64/python3.7/site-packages/sage/misc/persist.pyx in
> sage.misc.persist.load (build/cythonized/sage/misc/persist.c:2838
> )()
> 149
> 150 ## Load file by absolute filename
> --> 151 with open(filename, 'rb') as fobj:
> 152 X = loads(fobj.read(), compress=compress)
> 153 try:
>
> /usr/lib64/python3.7/site-packages/sage/misc/persist.pyx in
> sage.misc.persist.load (build/cythonized/sage/misc/persist.c:2788
> )()
> 150 ## Load file by absolute filename
> 151 with open(filename, 'rb') as fobj:
> --> 152 X = loads(fobj.read(), compress=compress)
> 153 try:
> 154 X._default_filename = os.path.abspath(filename)
>
> /usr/lib64/python3.7/site-packages/sage/misc/persist.pyx in
> sage.misc.persist.loads (build/cythonized/sage/misc/persist.c:735
> 3)()
> 967
> 968 unpickler = SageUnpickler(io.BytesIO(s))
> --> 969 return unpickler.load()
> 970
> 971
>
> /usr/lib64/python3.7/site-packages/sage/structure/unique_representation.py in
> unreduce(cls, args, keywords)
> 1179
> 1180 """
> -> 1181 return cls(*args, **keywords)
> 1182
> 1183
>
> /usr/lib64/python3.7/site-packages/sage/misc/classcall_metaclass.pyx in
> sage.misc.classcall_metaclass.ClasscallMetaclass.__ca
> ll__ (build/cythonized/sage/misc/classcall_metaclass.c:1714)()
> 333 """
> 334 if cls.classcall is not None:
> --> 335 return cls.classcall(cls, *args, **kwds)
> 336 else:
> 337 # Fast version of type.__call__(cls, *args, **kwds)
>
> /usr/lib64/python3.7/site-packages/sage/matrix/matrix_space.py in
> __classcall__(cls, base_ring, nrows, ncols, sparse, impleme
> ntation)
> 474 raise OverflowError("number of rows and columns may be at
> most %s" % sys.maxsize)
> 475
> --> 476 matrix_cls = get_matrix_class(base_ring, nrows, ncols,
> sparse, implementation)
> 477 return super(MatrixSpace, cls).__classcall__(
> 478 cls, base_ring, nrows, ncols, sparse, matrix_cls)
>
> /usr/lib64/python3.7/site-packages/sage/matrix/matrix_space.py in
> get_matrix_class(R, nrows, ncols, sparse, implementation)
> 306 # generic fallback
> 307 if implementation != 'generic' and implementation is not None:
> --> 308 raise ValueError("unknown matrix implementation %r over
> %r" % (implementation, R))
> 309 else:
> 310 return matrix_generic_dense.Matrix_generic_dense
>
> ValueError: unknown matrix implementation 'flint' over Symbolic Ring
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/8302eb8a-a1c4-4000-9c55-0fafa70ed9c8%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sage-support/CAAWYfq3v4kA2Jx33rA_XEqCUgjeTh5CwB_BuKnL2Yx08ga0%3D%3DA%40mail.gmail.com.