On Thu, Feb 12, 2009 at 3:07 PM, salmanhb <salma...@gmail.com> wrote: > > Ah, that explains it. Indeed it was the old pickles William has > sitting in his directory. Mike asked me to churn out a bunch of lcalc > files using the code you wrote over the summer that I was hoping to > avoid doing on sage.math so as not to eat up too many resources. I'll > ask Mike how pressing it is and see if it can wait until mod.math is > updated to 3.3.alpha3 or if it will need to be run on sage.math in > small pieces.
I just started the upgrade of sage on mod.math to 3.3.rc0. It should be done in an hour at most... -- William > > On Feb 12, 5:44 pm, Craig Citro <craigci...@gmail.com> wrote: >> Are these the pickles William has sitting in his home directory (the >> ones we computed last summer on ranger/lonestar)? If so, they don't >> unpickle in anything between ~3.0.5 and the first 3.3.alpha after the >> San Diego conference. So they just don't work in 3.2.3. >> >> The details, if you're interested: we reorganized the classes for the >> congruence subgroup objects in Sage at the end of the summer, and made >> it so that, e.g., Gamma0(7) is a unique object. This was definitely a >> good idea for doing a bunch of stuff with them. Unfortunately, this >> broke the old pickles, until the patch in one of the 3.3.alphas. It's >> still not 100% perfect -- based on some pointers from Carl Witty, >> there's probably a yet better way to set things up, which I'm going to >> probably do and then "update" (re-brine?) all the old pickles on >> sage.math ... at some point soon (read: after my thesis is turned in). >> >> -cc >> >> On Thu, Feb 12, 2009 at 2:25 PM, salmanhb <salma...@gmail.com> wrote: >> >> > Hi, >> >> > I used the following code: >> >> > /home/sbutt/frg/lcalc/ap-to-an.sage >> >> > adapted from Craig's code on sage.math and it ran perfectly well on v. >> > 3.3.alpha3 (though it did complain about the data being stored in an >> > old format). But on mod.math (sage v. 3.2.3), I get the error posted >> > below. It seems 3.2.3 can't load the object for some reason. Any >> > ideas? >> >> > Thanks, >> > Sal >> >> > sage: write_lcalc(100,2,10000,RR) >> > using incorrect naming of output files >> > --------------------------------------------------------------------------- >> > RuntimeError Traceback (most recent call >> > last) >> >> > /home/sbutt/.sage/temp/mod/14071/ >> > _home_sbutt_frg_lcalc_ap_to_an_sage_0.py in <module>() >> > ----> 1 >> > 2 >> > 3 >> > 4 >> > 5 >> >> > /home/sbutt/.sage/temp/mod/14071/ >> > _home_sbutt_frg_lcalc_ap_to_an_sage_0.py in write_lcalc(level, weight, >> > n, base_ring, num_zeros) >> > 85 raise ValueError, "file %s does not exist"%ap_filename >> > 86 >> > ---> 87 (N, k), _, M = load(data_filename) >> > 88 if (N != level) or (k != weight): >> > 89 raise ValueError, "data file %s has invalid >> > data"%data_filename >> >> > /usr/local/sage/local/lib/python2.5/site-packages/sage/structure/ >> > sage_object.so in sage.structure.sage_object.load (sage/structure/ >> > sage_object.c:4880)() >> > 475 >> > 476 >> > --> 477 >> > 478 >> > 479 >> >> > /usr/local/sage/local/lib/python2.5/site-packages/sage/structure/ >> > sage_object.so in sage.structure.sage_object.loads (sage/structure/ >> > sage_object.c:6156)() >> > 596 >> > 597 >> > --> 598 >> > 599 >> > 600 >> >> > RuntimeError: NEWOBJ class argument isn't a type object >> > invalid data stream >> > invalid load key, 'x'. >> > Unable to load pickled data. > > > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---