Hi Alex,

> All the objects have the same general shape as the one posted. The
> option (2) it is ok. I do not want you spend much time with my
> problem.
>

Excellent -- (2) was definitely the easier plan for me. :) I've posted
a patch here:

 http://sage.math.washington.edu/home/craigcitro/fix-frac-pickle-3.1.1.patch

So here are the steps you need to take to use this (I'm happy to
explain any of these in more detail, if you want):

 1. Build sage-3.1.1 on your machine. It's here:
http://sage.math.washington.edu/sage/src/sage-3.1.1.tar
 2. In your sage-3.1.1 build directory, type: ./sage -clone pickle
 3. From that same directory: cd devel/sage-pickle
 4. Copy the above patch file into that directory, and type: hg patch
fix-frac-pickle-3.1.1.patch
 5. cd ../..
 6. ./sage -br

You should now be running a copy of sage 3.1.1 with the patch applied.
Then you can just update the pickles like this:

sage: foo = load('test.sobj')
sage: save(foo, 'test2.sobj')

or even

sage: save(load('test.sobj'), 'test-new.sobj')

where it's going to look for the patches in the sage-3.1.1 directory.
(Of course, you could just run the copy of 3.1.1 you've built from
anywhere by giving the full path.) In fact, if you have a bunch of
files in the same directory, you could just do something like:

sage: for name in ['file1', 'file2', 'file3']:
...:     save(load(name + '.sobj'), name + '-new.sobj')

and that should work. It takes a few seconds for each pickle, but it
seems to work for me.

Now, the new pickles you produce will load just fine in sage 3.2.3 (or
at least, they did for me) -- however, they'll still give you a
DeprecationWarning when you load them. You can ignore this, or just
load and re-save them again in sage 3.2.3.

Let me know if you run into any trouble ...
-cc

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to