[sage-support] Sage on multi cpu architecture

2014-02-28 Thread Alex Lara
Hi everybody,

I am using sagemath in server with several processors/cores, but its not 
using 
all the CPU resources. Most of the CPU are sitting idle. 

Is it possible to build sage in such a way that all the cpu/cores?

Sage version: 'Sage Version 6.0, Release Date: 2013-12-17'
System information: Linux  3.2.0-58-generic #88-Ubuntu SMP Tue Dec 3 
17:37:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

The option grep processor /proc/cpuinfo | wc -l return 32.
The option cat /proc/cpuinfo | grep model name returns 32 lines as below:
model name : Intel(R) Xeon(R) CPU E5-2665 0 @ 2.40GHz

Thank you in advance,

Alex

-- 
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 sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.


[sage-support] Re: Sage on multi cpu architecture

2014-02-28 Thread Alex Lara
I will try to explain myself better. 

I am working with power sums: sum 1/a^k, (k positive integer) where  sum is 
over certain large subset of 
F_q(t) (F_q finite field of q elements). Since those calculations take a 
lot of time (sometimes days or even weeks), 
i was wondering if there is a way to work in parallel to take advantage of 
the several processors/cores.  

Thanks,

Alex.


El viernes, 28 de febrero de 2014 12:22:28 UTC-6, Alex Lara escribió:

 Hi everybody,

 I am using sagemath in server with several processors/cores, but its not 
 using 
 all the CPU resources. Most of the CPU are sitting idle. 

 Is it possible to build sage in such a way that all the cpu/cores?

 Sage version: 'Sage Version 6.0, Release Date: 2013-12-17'
 System information: Linux  3.2.0-58-generic #88-Ubuntu SMP Tue Dec 3 
 17:37:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

 The option grep processor /proc/cpuinfo | wc -l return 32.
 The option cat /proc/cpuinfo | grep model name returns 32 lines as below:
 model name : Intel(R) Xeon(R) CPU E5-2665 0 @ 2.40GHz

 Thank you in advance,

 Alex



-- 
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 sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sage-support] Re: Sage on multi cpu architecture

2014-02-28 Thread Alex Lara
I will try. Thank you

Alex.

El viernes, 28 de febrero de 2014 17:04:51 UTC-6, William escribió:

 On Fri, Feb 28, 2014 at 3:00 PM, Alex Lara lrod...@gmail.comjavascript: 
 wrote: 
  I will try to explain myself better. 
  
  I am working with power sums: sum 1/a^k, (k positive integer) where  sum 
 is 
  over certain large subset of 
  F_q(t) (F_q finite field of q elements). Since those calculations take a 
 lot 
  of time (sometimes days or even weeks), 
  i was wondering if there is a way to work in parallel to take advantage 
 of 
  the several processors/cores. 
  

 You might try the @parallel decorator.  Type parallel? for some examples. 


  Thanks, 
  
  Alex. 
  
  
  El viernes, 28 de febrero de 2014 12:22:28 UTC-6, Alex Lara escribió: 
  
  Hi everybody, 
  
  I am using sagemath in server with several processors/cores, but its 
 not 
  using 
  all the CPU resources. Most of the CPU are sitting idle. 
  
  Is it possible to build sage in such a way that all the cpu/cores? 
  
  Sage version: 'Sage Version 6.0, Release Date: 2013-12-17' 
  System information: Linux  3.2.0-58-generic #88-Ubuntu SMP Tue Dec 3 
  17:37:58 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux 
  
  The option grep processor /proc/cpuinfo | wc -l return 32. 
  The option cat /proc/cpuinfo | grep model name returns 32 lines as 
  below: 
  model name : Intel(R) Xeon(R) CPU E5-2665 0 @ 2.40GHz 
  
  Thank you in advance, 
  
  Alex 
  
  -- 
  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 sage-support...@googlegroups.com javascript:. 
  To post to this group, send email to 
  sage-s...@googlegroups.comjavascript:. 

  Visit this group at http://groups.google.com/group/sage-support. 
  For more options, visit https://groups.google.com/groups/opt_out. 



 -- 
 William Stein 
 Professor of Mathematics 
 University of Washington 
 http://wstein.org 


-- 
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 sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sage-support] Change default prec to LaurentSeriesRing

2013-09-03 Thread Alex Lara
Thank you for your answer. 
I know that  default_prec  is an option  in newest versions of sage. But in 
Sage 5.2 and older versions it seems there is not a way to change the 
precision, and for now I can not  upgrade sage.

Alex Lara
El martes, 3 de septiembre de 2013 03:19:44 UTC-5, John Cremona escribió:

 Type LaurentSeriesRing? to see the options, one of which is default_prec. 

 Note that Sage 5.11 has been released, but I don't think this changed 
 between 5.2 and 5.11.  Nevertheless you should upgrade! 

 John Cremona 

 On 2 September 2013 23:42, Alex Lara lrod...@gmail.com javascript: 
 wrote: 
  Hi everybody, 
  
  Is there a way to change the default precision to LaurentSeriesRing in 
 Sage 
  5.2? 
  
  Thank you, 
  
  Alex Lara 
  Universidad Autónoma de Yucatán 
  México 
  
  -- 
  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 sage-support...@googlegroups.com javascript:. 
  To post to this group, send email to 
  sage-s...@googlegroups.comjavascript:. 

  Visit this group at http://groups.google.com/group/sage-support. 
  For more options, visit https://groups.google.com/groups/opt_out. 


-- 
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 sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sage-support] Change default prec to LaurentSeriesRing

2013-09-03 Thread Alex Lara
I found it.

sage: LS.z = LaurentSeriesRing(GF(3))
sage: LS.default_prec()
20
sage: LS.set_default_prec(30)
sage: LS.default_prec()
30

Alex Lara.

El martes, 3 de septiembre de 2013 05:51:02 UTC-5, Alex Lara escribió:

 Thank you for your answer. 
 I know that  default_prec  is an option  in newest versions of sage. But 
 in Sage 5.2 and older versions it seems there is not a way to change the 
 precision, and for now I can not  upgrade sage.

 Alex Lara
 El martes, 3 de septiembre de 2013 03:19:44 UTC-5, John Cremona escribió:

 Type LaurentSeriesRing? to see the options, one of which is default_prec. 

 Note that Sage 5.11 has been released, but I don't think this changed 
 between 5.2 and 5.11.  Nevertheless you should upgrade! 

 John Cremona 

 On 2 September 2013 23:42, Alex Lara lrod...@gmail.com wrote: 
  Hi everybody, 
  
  Is there a way to change the default precision to LaurentSeriesRing in 
 Sage 
  5.2? 
  
  Thank you, 
  
  Alex Lara 
  Universidad Autónoma de Yucatán 
  México 
  
  -- 
  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 sage-support...@googlegroups.com. 
  To post to this group, send email to sage-s...@googlegroups.com. 
  Visit this group at http://groups.google.com/group/sage-support. 
  For more options, visit https://groups.google.com/groups/opt_out. 



-- 
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 sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.


[sage-support] Change default prec to LaurentSeriesRing

2013-09-02 Thread Alex Lara
Hi everybody,

Is there a way to change the default precision to LaurentSeriesRing in Sage 
5.2? 

Thank you,

Alex Lara
Universidad Autónoma de Yucatán
México

-- 
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 sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.


[sage-support] Re: Asking whether a number is in QQ or not

2011-09-15 Thread Alex Lara
Thank you to all of you!

On Sep 15, 12:59 pm, Simon King simon.k...@uni-jena.de wrote:
 PS:

     sage: cm.explain(QQ, b.parent())

 I forgot to copy-and-paste the definition of cm. It was:

   sage: from sage.structure.element import get_coercion_model
   sage: cm = get_coercion_model()

 Cheers,
 Simon

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Asking whether a number is in QQ or not

2011-09-14 Thread Alex Lara
Hi all,

I have a question about the following behavior of Sage:

sage: z = (-1+sqrt(-3))/2
sage: b = (1+z)^3
sage: b in QQ
False
sage: b.expand() in QQ
True

Why b in QQ return False and b.expand() in QQ return True? Since b is
-1, I expected True in both cases.
Also, QQ(b) return an error:

TypeError: unable to convert 1/8*(sqrt(-3) + 1)^3 to a rational

Thanks

Alex Lara

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Trouble with sage installation on Ubuntu 11.04

2011-05-01 Thread Alex Lara
I'm trying to build sage 4.6.2 from source. The output is here

http://dl.dropbox.com/u/5510419/test.log

I will run the long test and as soon as it finishes I will post the
output.

Best wishes---Alex

On 1 mayo, 02:52, Dr. David Kirkby david.kir...@onetel.net wrote:
 On 04/30/11 09:59 PM, Alex Lara wrote:

  The command ./sage -f python (after install libssl-dev) did not work,
  but  sage -f python-2.6.4.p10.spkg did work (I think).
  I ran make test. The following test failed:

     sage -t  -force_lib devel/sage/sage/rings/number_field/
  number_field.py

  Do you think my build is ok now?

  Best regards---Alex

 In a word, No. What version of Sage are you trying to build?

 Can you show us the output of the test log file (test.log, ptest.log,
 ptestlong.log or whatever it is in your case). We need to see the bit where 
 the
 test fails - not the complete log.

 If you have not run the long tests, I suggest you run them too.

 $ make testlong
 (run each test serially)

 or

 $ make ptestlong
 (if you have a multi-core and/or multi-processor machine, which will run tests
 in parallel to reduce the time needed to run them).

 I have a faint recollection of number_field.py might have failed on one of 
 the
 recent alpha releases, but has been fixed. Depending on what you are using, 
 you
 might have hit a problem that's been solved. But I could be mistaken about 
 this
 anyway - I lose track of the test failures, which are quite common in the 
 early
 alpha releases.

 --
 A: Because it messes up the order in which people normally read text.
 Q: Why is top-posting such a bad thing?
 A: Top-posting.
 Q: What is the most annoying thing in e-mail?

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Trouble with sage installation on Ubuntu 11.04

2011-04-30 Thread Alex Lara
The command ./sage -f python (after install libssl-dev) did not work,
but  sage -f python-2.6.4.p10.spkg did work (I think).
I ran make test. The following test failed:

sage -t  -force_lib devel/sage/sage/rings/number_field/
number_field.py

Do you think my build is ok now?

Best regards---Alex

On 30 abr, 01:35, Jan Groenewald j...@aims.ac.za wrote:
 Hi

 On Fri, Apr 29, 2011 at 10:01:46PM -0700, William Stein wrote:
  A random shot in the dark is that you could try:

    (1) installing the libssl-devel Ubuntu package with sudo apt-get
  install libssl-devel.

 It's libssl-dev on Ubuntu (remove the el at the end).
 But I can build sage/python without that package though.

    (2) rebuild the Python spkg in Sage:

         cd SAGE_ROOT
         ./sage -f python

 It needs a one line patch on Ubuntu. Try instead (take note this is a work in
 progress):

         cd SAGE_ROOT/spkg/standard
         wgethttp://users.aims.ac.za/~jan/python-2.6.4.p10.spkg
         sage -f python-2.6.4.p10.spkg

 ( Note that only works after you did 'cd SAGE_ROOT; make', and it failed
 to build the crypt module in the python spkg, but the other packages
 are built.

 Regards,
 Jan
 --
    .~.
    /V\     Jan Groenewald
   /( )\    www.aims.ac.za
   ^^-^^

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Trouble with sage installation on Ubuntu 11.04

2011-04-29 Thread Alex Lara
I tried to install from source. I have installed sage many times
before following the installation guide. I will take a look at the
links.

-Alex


On 29 abr, 14:41, kcrisman kcris...@gmail.com wrote:
 Thanks for the report.  Did you built from scratch, or download?

 You may findhttp://trac.sagemath.org/sage_trac/ticket/11243and the
 threadhttp://groups.google.com/group/sage-devel/browse_thread/thread/593b9a...
 useful.  We are tracking this problem.

 - kcrisman

 On Apr 29, 2:51 pm, Alex Lara lrodr...@gmail.com wrote:







  Dear all,

  Sage failed to install in ubuntu 11.04. I get the following error:

  ImportError: No module named crypt
  Error importing ipy_profile_sage - perhaps you should run %upgrade?
  WARNING: Loading of ipy_profile_sage failed.

  Any idea of how to fix this?

  Thanks in advance:

  Alex Lara.

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Is this a bug?

2010-09-17 Thread Alex Lara
Hi everyone

In Sage 4.5.2 and Sage 4.5.3, I get the following error using
partial_fraction_decomposition()

sage: R.x = GF(3)[]
sage: q = (x+1)/(x^3+x+1)
sage: q.partial_fraction_decomposition()
---
AttributeErrorTraceback (most recent call
last)

/home/lrodri/ipython console in module()

/home/lrodri/sage-4.5.2/local/lib/python2.6/site-packages/sage/
structure/element.so in sage.structure.element.Element.__getattr__
(sage/structure/element.c:2632)()

/home/lrodri/sage-4.5.2/local/lib/python2.6/site-packages/sage/
structure/parent.so in sage.structure.parent.getattr_from_other_class
(sage/structure/parent.c:2835)()

/home/lrodri/sage-4.5.2/local/lib/python2.6/site-packages/sage/
structure/parent.so in sage.structure.parent.raise_attribute_error
(sage/structure/parent.c:2602)()

AttributeError: 'sage.rings.fraction_field_FpT.FpTElement' object has
no attribute 'partial_fraction_decomposition'

The same error I get using primes different from 2. But if I use 3^2
instead of 3, or a power of some prime, I get a right answer.

I did not have the problem using Sage 4.4.1.

Thanks in advance.

Alex

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] kash 2.5 in Sage

2010-05-19 Thread Alex Lara
Hi everybody,

Is it possible to install kash 2.5 in sage? I need to compute the
class group of function fields, but I couldn't with kash 3.

Thanks,

Alex

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: kash 2.5 in Sage

2010-05-19 Thread Alex Lara
That's right William, the command line interface is different.

Thank you

Alex.

On 19 mayo, 11:10, William Stein wst...@gmail.com wrote:
 On Wed, May 19, 2010 at 7:53 AM, Alex Lara lrodr...@gmail.com wrote:
  Hi everybody,

  Is it possible to install kash 2.5 in sage? I need to compute the
  class group of function fields, but I couldn't with kash 3.

 Is the command line interface of Kash 2.5 different than that of Kash
 3?  (I'm guessing it is.)  If so, it's unlikely to work with Sage.

 William

  Thanks,

  Alex

  --
  To post to this group, send email to sage-support@googlegroups.com
  To unsubscribe from this group, send email to 
  sage-support+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://groups.google.com/group/sage-support
  URL:http://www.sagemath.org

 --
 William Stein
 Professor of Mathematics
 University of Washingtonhttp://wstein.org

 --
 To post to this group, send email to sage-support@googlegroups.com
 To unsubscribe from this group, send email to 
 sage-support+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/sage-support
 URL:http://www.sagemath.org

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Error when running Notebook: Error showing url: There was an error launching the default action command associated with this location

2009-03-19 Thread Alex Lara

I got the following error when running
sage -notebook
**
**
* Open your web browser to http://localhost:8000 *
**
**
2009-03-19 17:33:51-0700 [-] Log opened.
2009-03-19 17:33:51-0700 [-] twistd 8.1.0 (/usr/local/sage-3.4/local/
bin/python 2.5.2) starting up
2009-03-19 17:33:51-0700 [-] reactor class: class
'twisted.internet.selectreactor.SelectReactor'
2009-03-19 17:33:51-0700 [-] twisted.web2.channel.http.HTTPFactory
starting on 8000
2009-03-19 17:33:51-0700 [-] Starting factory
twisted.web2.channel.http.HTTPFactory instance at 0x8ca724c

Error showing url: There was an error launching the default action
command associated with this location.

If after that, in the url of firefox I type  http://localhost:8000
it begins to work.

Any idea why it does not work?

---Alex Lara

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



[sage-support] Re: Object changes its contents after saved (sage 3.1.1)

2009-03-10 Thread Alex Lara

Hi Craig,

I think it is better option (1), but where can I get 3.4.rcl? I don't
see it in the website of Sage.

In your opinion, which option is better?

---Alex

On 9 mar, 21:21, Craig Citro craigci...@gmail.com wrote:
 Hi Alex,

  After I found a bug in sage 3.2.3 ( see Division error in Sage 3.3 but
  not in Sage 3.1.1 posted march 7, 2009), I decided used sage 3.1.1.
  Now I have a problem with sage 3.1.1
  1. the program generate the object H
  2. save H
  3. G =load(H)

 So this is a pretty funky bug -- however, it's one that's already
 fixed. I'd recommend not trying to use 3.1.1 once you've got your
 pickles converted ... it's just going to cause you a headache when you
 hit bugs, and since a lot of them have already been fixed, no one is
 going to be too excited about fixing them. :)

 I don't know if this was mentioned clearly in the other thread, but
 the bug you're hitting in 3.2.3 is already fixed in the current
 3.4.rc1 ... you could do one of two things:

 (1) download and compile 3.4.rc1, use that
 (2) take the patch that fixed your bug, apply it to 3.2.3 (which is
 what we did to get your 3.1.1 working), go from there.

 The patch is at this ticket:

 http://trac.sagemath.org/sage_trac/ticket/5434

 And the file itself is here:

 http://trac.sagemath.org/sage_trac/raw-attachment/ticket/5434/poly-sh...

 So you can just grab that, and in your 3.2.3 tree, follow the same
 directions you did to get your 3.1.1 correctly pickling your fraction
 field elements.

 I hope that helps ...

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



[sage-support] Object changes its contents after saved (sage 3.1.1)

2009-03-09 Thread Alex Lara

Hi guys,

After I found a bug in sage 3.2.3 ( see Division error in Sage 3.3 but
not in Sage 3.1.1 posted march 7, 2009), I decided used sage 3.1.1.
Now I have a problem with sage 3.1.1
1. the program generate the object H
2. save H
3. G =load(H)

I assume G == H, but it doesn't happens. See the following code.

H={}
p=Integer(3)
print
for k in range(1,11):
k= Integer(k)
if p.divides(k):
H[-k]  = k^2
else:
H[-k] = infinity
save (H,'test.sobj')
print
for k in H.keys():
print (k,H[k])
print
G = load('test.sobj')
for k in G.keys():
print (k,G[k])

Some idea of how to fix this?

Thanks,


Alex Lara.
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Division error in Sage 3.3 but not in Sage 3.1.1

2009-03-07 Thread Alex Lara

Just as I thought. So there is nothing I can do but work with sage
3.1.1, right?

Those polynomials arised as coefficients of some polynomials in F_q(t)
[T] and inside a sum command:

sum ( (do something with H_j(T)) for j in bla bla)

The routine which gave the error was successfully used many times
before.

Thanks John.

---Alex

On 7 mar, 05:50, John Cremona john.crem...@gmail.com wrote:
 That is definitely a bug.  Doing it step by step works:

 sage: fd=f.denominator(); gd=g.denominator()
 sage: fn=f.numerator(); gn=g.numerator()
 sage: fn*gd+fd*gn
 2*t^18 + t^11 + t^10 + 2*t^2
 sage: hn = fn*gd+fd*gn
 sage: hd = fd*gd
 sage: hn.gcd(hd)
 t^3 + 2*t^2
 sage: hn/hd
 (2*t^15 + 2*t^14 + 2*t^13 + 2*t^12 + 2*t^11 + 2*t^10 + 2*t^9 + t^7 +
 t^6 + t^5 + t^4 + t^3 + t^2 + t + 1)/(t^17 + t^9 + t)

 sage 3.4.alpha0 gives the same thing.

 John Cremona

 2009/3/7 Alex Lara lrodr...@gmail.com:



  Hi guys,

  I recently upgrade sage from 3.2.3 to 3.3. I'm also have sage 3.1.1
  The thing is that the following commands give different results:

  F.theta=FiniteField(9)
  A.t = PolynomialRing(F)
  K.t = FractionField(A)
  f= 2/(t^2+2*t); g =t^9/(t^18 + t^10 + t^2);f+g

  In 3.1.1 gives the right answer (I guess) but in 3.2.3 give an error:

  ZeroDivisionError                         Traceback (most recent call
  last)
  ...
  ZeroDivisionError: division by zero in finite field.

  I don't know how those commands work in 3.2.3.

  I had a problem with sage 3.2.3, but Craig Citro helped me. Sage 3.2.3
  couldn't open objects created in sage 3.1.1. This objects contain
  polynomials p(T) in F_q(t)[T]. Perhaps these problems are related.

  Any idea of how to fix that?


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



[sage-support] Re: Problems using sagetex package

2009-03-06 Thread Alex Lara

Hi there,

I suppose it has to be with permissions. Sage is installed at my home
directory. If a run sage as a root (su and then ./sage) maxima
works!!! But if only run sage with sudo ./sage it does'nt.

Do you have an idea why is that?

---Alex

On Mar 6, 8:21 am, William Stein wst...@gmail.com wrote:
 On Fri, Mar 6, 2009 at 1:33 AM, Dan Drake dr...@kaist.edu wrote:
  On Thu, 05 Mar 2009 at 10:45PM -0800, Alex Lara wrote:
   What do you get when you run sage -maxima?

   --Mike

  I got this:

  *** - invalid byte #xC3 in CHARSET:ASCII conversion
  Break 1 [4]

  I am totally guessing here, but is there a non-ascii character somewhere
  in the path to your Sage install, or in your shell's $PATH?

 That's a good guess.  There is a known major bug in Maxima + clisp where
 it totally fails to work if there are certain non-ascii characters in the
 filenames in the current directory or PATH.  I can't wait until clisp isn't
 in Sage.





  Dan

  --
  ---  Dan Drake dr...@kaist.edu
  -  KAIST Department of Mathematical Sciences
  ---  http://mathsci.kaist.ac.kr/~drake

  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.9 (GNU/Linux)

  iEYEARECAAYFAkmw7fAACgkQr4V8SljC5Lp5YwCfe+WRYLfaH6suwEKaL4TlorOb
  23sAnjZMePg3aYtcBumhxsngrICzeOXW
  =WCyC
  -END PGP SIGNATURE-

 --
 William Stein
 Associate Professor of Mathematics
 University of Washingtonhttp://wstein.org
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Problems using sagetex package

2009-03-06 Thread Alex Lara

Sagetex is working!!! (and also Maxima).

I did the following:

I found that LANG=ex_MX.UTF-8 but .bashrc had
export LC_ALL=C. So I commented and run
sudo dpkg-reconfigure locales

After that Maxima start to works.

Thanks for the support.

Alex

On Mar 6, 8:54 am, Robert Dodier robert.dod...@gmail.com wrote:
 William Stein wrote:
   On Thu, 05 Mar 2009 at 10:45PM -0800, Alex Lara wrote:
   *** - invalid byte #xC3 in CHARSET:ASCII conversion

 Try this: change the environment variable LC_CTYPE
 e.g. LC_CTYPE=ES_es or LC_CTYPE=ES_es.UTF-8 or something
 like that. Or maybe somehow indicated ISO 8859-1 or Latin-1 or
 something. Then Clisp might know how to decode the offending bytes.

 Another tactic: put the following in your $HOME/.clisprc file.

   (format t HELLO FROM CLISPRC~%)
   (ignore-errors
     (progn (setf custom:*default-file-encoding*
                          (ext:make-encoding :input-error-action #\?))
                    (setf custom:*terminal-encoding*
                          custom:*default-file-encoding*)))

 That replaces undecodable bytes by '?' characters.
 (The hello message is just to verify the code is loaded )

  That's a good guess.  There is a known major bug in Maxima + clisp where
  it totally fails to work if there are certain non-ascii characters in the
  filenames in the current directory or PATH.  I can't wait until clisp isn't
  in Sage.

 The bad news is that it's not exactly a Clisp idiosyncrasy.
 Clisp is trying to do the right thing when faced with undecodable
 bytes.
 Unfortunately the Common Lisp spec, while it recognizes the
 existence of character encoding issues, doesn't specify what to do
 when a byte can't be decoded to a character. Other Lisp
 implementations
 probably have their own ways to handle it.

 FWIW

 Robert Dodier
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Problems using sagetex package

2009-03-05 Thread Alex Lara

Hi Dan,
You are totally right. The problem is that Sage can't start maxima.
Here is part of the output when I typed

sage: var('x k w')
(x, k, w)
sage: f = x^3 * e^(k*x) * sin(w*x); f
---
RuntimeError  Traceback (most recent call
last)
...
RuntimeError: Unable to start maxima

So, I guess I need to fix this first (how I don't know). right?

---Alex

On Mar 5, 4:13 am, Dan Drake dr...@kaist.edu wrote:
 On Wed, 04 Mar 2009 at 10:08PM -0800, Craig Citro wrote:
   Do you know the sagetex package? I followed the directions to use the
   sagetex package, without successful. I tried with the example and I
   got the following messages:

  Honestly, I've never used sagetex myself -- I hear it's really cool.
  Dan Drake is the man to ask -- I'm pretty sure he reads sage-support,

 He not only reads sage-support, but occasionally refers to himself in
 the third person...

 As for your question:



 On Wed, 04 Mar 2009 at 10:35PM -0800, Alex Lara wrote:
  I was trying to use the sagetex package unsuccessfully. I tried with
  example.tex.
  After I start running sage example.tex I got the following messages:
  Processing Sage code for example.tex...
  Inline formula 0
  Inline formula 1
  Inline formula 2
  Inline formula 3
  Code block begin...
   Error in Sage code on line 33 of example.tex! Traceback follows.
  Traceback (most recent call last):
  .
  .
  .
  raise RuntimeError, Unable to start %s%self.__name
  RuntimeError: Unable to start maxima

 This is a problem with Sage, not SageTeX. For some reason, Sage can't
 start Maxima. What happens if you start Sage normally and try to do some
 calculus?

 Dan

 --
 ---  Dan Drake dr...@kaist.edu
 -  KAIST Department of Mathematical Sciences
 ---  http://mathsci.kaist.ac.kr/~drake

  signature.asc
  1KViewDownload
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Problems using sagetex package

2009-03-05 Thread Alex Lara

Hi Drake,

I didn't work. I have to versions of sage (3.1.1 and 3.2.3) running on
my laptop. Really I don't have any clue of what's happening.

---Alex.

On Mar 5, 4:03 pm, Dan Drake dr...@kaist.edu wrote:
 On Thu, 05 Mar 2009 at 05:44AM -0800, Alex Lara wrote:
  Hi Dan,
  You are totally right. The problem is that Sage can't start maxima.
  Here is part of the output when I typed

  sage: var('x k w')
  (x, k, w)
  sage: f = x^3 * e^(k*x) * sin(w*x); f
  ---
  RuntimeError                              Traceback (most recent call
  last)
  ...
  RuntimeError: Unable to start maxima

  So, I guess I need to fix this first (how I don't know). right?

 I'm not quite sure what to do, but an obvious first step is to try
 reinstalling the Maxima spkg. Try

   sage -fhttp://sagemath.org/packages/standard/maxima-5.16.3.spkg

 and see if that fixes things.

 Dan

 --
 ---  Dan Drake dr...@kaist.edu
 -  KAIST Department of Mathematical Sciences
 ---  http://mathsci.kaist.ac.kr/~drake

  signature.asc
  1KViewDownload
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Problems using sagetex package

2009-03-05 Thread Alex Lara

Hi Marshall

I'm using Ubuntu 8.04, in a laptop Dell inspiron 1420. I installed
from source. I have 3.1.1. and 3.2.3. I was checking, maxima does not
work at all. I can't do a simple example like:

sage: x = var('x')
sage: solve(x^2 + 3*x + 2, x)

---Alex


On Mar 5, 9:38 pm, Marshall Hampton hampto...@gmail.com wrote:
 What operating system and type of computer are you using?  Did you
 install from source or with a binary?

 -M. Hampton

 On Mar 5, 9:42 pm, Alex Lara lrodr...@gmail.com wrote:

  Hi Drake,

  I didn't work. I have to versions of sage (3.1.1 and 3.2.3) running on
  my laptop. Really I don't have any clue of what's happening.

  ---Alex.

  On Mar 5, 4:03 pm, Dan Drake dr...@kaist.edu wrote:

   On Thu, 05 Mar 2009 at 05:44AM -0800, Alex Lara wrote:
Hi Dan,
You are totally right. The problem is that Sage can't start maxima.
Here is part of the output when I typed

sage: var('x k w')
(x, k, w)
sage: f = x^3 * e^(k*x) * sin(w*x); f
---
RuntimeError                              Traceback (most recent call
last)
...
RuntimeError: Unable to start maxima

So, I guess I need to fix this first (how I don't know). right?

   I'm not quite sure what to do, but an obvious first step is to try
   reinstalling the Maxima spkg. Try

     sage -fhttp://sagemath.org/packages/standard/maxima-5.16.3.spkg

   and see if that fixes things.

   Dan

   --
   ---  Dan Drake dr...@kaist.edu
   -  KAIST Department of Mathematical Sciences
   ---  http://mathsci.kaist.ac.kr/~drake

    signature.asc
1KViewDownload


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



[sage-support] Re: Problems using sagetex package

2009-03-05 Thread Alex Lara

On Mar 5, 11:13 pm, Mike Hansen mhan...@gmail.com wrote:
 Hi Alex,

 On Thu, Mar 5, 2009 at 9:37 PM, Alex Lara lrodr...@gmail.com wrote:

  Hi Marshall

  I'm using Ubuntu 8.04, in a laptop Dell inspiron 1420. I installed
  from source. I have 3.1.1. and 3.2.3. I was checking, maxima does not
  work at all. I can't do a simple example like:

  sage: x = var('x')
  sage: solve(x^2 + 3*x + 2, x)

 What do you get when you run sage -maxima?

 --Mike

I got this:

*** - invalid byte #xC3 in CHARSET:ASCII conversion
Break 1 [4]

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



[sage-support] Re: I can't load objets in Sage 3.2.3 that were created in Sage 3.1.1

2009-03-04 Thread Alex Lara

Hi cc,

Every thing works ok. I already did a proof with one object and there
was no problem. There was no DeprecationWarning.

Thanks a lot, you're a genius man.

I'll abuse of your amability, and ask a new question. Please, if you
do not have time, don't worry. I know you are very busy with your
thesis (I am too, so I understand)

Do you know the sagetex package? I followed the directions to use the
sagetex package, without successful. I tried with the example and I
got the following messages:

RuntimeError: Unable to start maxima

 Running Sage on example.sage failed! Fix example.tex and try
again.


Thanks,

---Alex

On Mar 3, 6:02 pm, Craig Citro craigci...@gmail.com wrote:
 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...

 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 sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Problems using sagetex package

2009-03-04 Thread Alex Lara

Hi there,

I was trying to use the sagetex package unsuccessfully. I tried with
example.tex.
After I start running sage example.tex I got the following messages:
Processing Sage code for example.tex...
Inline formula 0
Inline formula 1
Inline formula 2
Inline formula 3
Code block begin...
 Error in Sage code on line 33 of example.tex! Traceback follows.
Traceback (most recent call last):
.
.
.
raise RuntimeError, Unable to start %s%self.__name
RuntimeError: Unable to start maxima

 Running Sage on example.sage failed! Fix example.tex and try
again.
.
.
-

Somebody know how to fix this?

Thanks,

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



[sage-support] Re: I can't load objets in Sage 3.2.3 that were created in Sage 3.1.1

2009-03-02 Thread Alex Lara

Hi Craig,

Thanks for explanation, it was clear. Now I have six files, but the
program is still running and will generate more files. So, I would
love you can explain me how to fix the problem.

Thanks,

Alex

On 1 mar, 23:41, Craig Citro craigci...@gmail.com wrote:
  From command line of Sage 3.1.1, I saved some object, and then I could
  open it with sage 3.2.3. Next I open test.sobj (this was created by a
  sage program) in sage 3.1.1,  saved it again, and when I tried to open
  it on sage 3.2.3. Here you will find that 
  object:http://math.arizona.edu/~alara/test.sobj

  Alex

  Thanks.  I'll take a look at it.  I've also CC'd Craig Citro who most
  likely knows what is going on here.

  --Mike

 Hi Alex,

 Yeah, this one is going to be a little bit annoying to fix. Here's
 what's going on: in between 3.1.1 and 3.2.3, fraction fields got moved
 over to the new coercion model. This is good, but as it happens, the
 switch was done in such a way that it caused the pre-existing pickles
 to not load correctly (which is exactly what you're seeing). There's
 probably a clean and classy way to fix this, and I'll be happy to look
 at it carefully in a few weeks if no one beats me to it (I'm busy
 trying to finish up my thesis). This is now trac #5419.

 In the interim, you probably want to hack something together so that
 you can load your pickles. I managed to make sage 3.2.3 load the
 pickles, but it's a pretty ugly hack, and you'll still need to re-save
 the objects as newer pickles (which actually has one or two more
 wrinkles), so that you don't have to deal with this in the short term.
 How many of these files are there? If it's just a few, e-mail them to
 me off-list, and I'll just re-pickle them in a newer format and send
 them back to you. If there are more than that, I'll carefully explain
 how you can fix them yourself. :)

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



[sage-support] Re: I can't load objets in Sage 3.2.3 that were created in Sage 3.1.1

2009-03-02 Thread Alex Lara

Hey Craig,

I have 3.2.3  in my laptop, but I use the machines of the University
(which have 3.1.1) to do computations that take long time.

---Alex

On 2 mar, 11:19, Craig Citro craigci...@gmail.com wrote:
 Ah, does this mean you have a running copy of 3.1.1 still? Because I
 think it'll be easier to give you a patch against 3.1.1 than a patch
 against 3.2.3 ...

 -cc

 On Mon, Mar 2, 2009 at 10:06 AM, Alex Lara lrodr...@gmail.com wrote:

  Hi Craig,

  Thanks for explanation, it was clear. Now I have six files, but the
  program is still running and will generate more files. So, I would
  love you can explain me how to fix the problem.

  Thanks,

  Alex

  On 1 mar, 23:41, Craig Citro craigci...@gmail.com wrote:
   From command line of Sage 3.1.1, I saved some object, and then I could
   open it with sage 3.2.3. Next I open test.sobj (this was created by a
   sage program) in sage 3.1.1,  saved it again, and when I tried to open
   it on sage 3.2.3. Here you will find that 
   object:http://math.arizona.edu/~alara/test.sobj

   Alex

   Thanks.  I'll take a look at it.  I've also CC'd Craig Citro who most
   likely knows what is going on here.

   --Mike

  Hi Alex,

  Yeah, this one is going to be a little bit annoying to fix. Here's
  what's going on: in between 3.1.1 and 3.2.3, fraction fields got moved
  over to the new coercion model. This is good, but as it happens, the
  switch was done in such a way that it caused the pre-existing pickles
  to not load correctly (which is exactly what you're seeing). There's
  probably a clean and classy way to fix this, and I'll be happy to look
  at it carefully in a few weeks if no one beats me to it (I'm busy
  trying to finish up my thesis). This is now trac #5419.

  In the interim, you probably want to hack something together so that
  you can load your pickles. I managed to make sage 3.2.3 load the
  pickles, but it's a pretty ugly hack, and you'll still need to re-save
  the objects as newer pickles (which actually has one or two more
  wrinkles), so that you don't have to deal with this in the short term.
  How many of these files are there? If it's just a few, e-mail them to
  me off-list, and I'll just re-pickle them in a newer format and send
  them back to you. If there are more than that, I'll carefully explain
  how you can fix them yourself. :)

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



[sage-support] Re: I can't load objets in Sage 3.2.3 that were created in Sage 3.1.1

2009-03-02 Thread Alex Lara

Hi cc,

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.

Alex



On 2 mar, 12:21, Craig Citro craigci...@gmail.com wrote:
 Hi Alex,

 Well, I have one question first before deciding the right way to
 proceed. Are all the objects you're creating the same general shape as
 the ones in the test.sobj you posted -- collections of polynomials
 over rational function fields in one variable over finite fields? If
 so, then we have two options; if not, we probably only have option
 (2).

 (1) We can patch 3.2.3, so you can load the objects in 3.2.3. I'll
 then write a function that will take the objects, recreate
 corresponding objects in 3.2.3, coerce the old ones over, and re-save
 them. This isn't so bad, but it depends on me knowing exactly what
 kind of objects you've got. It's slightly more error-prone, I think.

 (2) We build and patch 3.1.1, and you just load and save each object.
 Then they should load fine in 3.2.3.

 Which seems better to you? (I think (2) is slightly easier for me, but
 nominally more work for you -- you have to build 3.1.1 on your
 laptop.)

 -cc

 On Mon, Mar 2, 2009 at 10:32 AM, Alex Lara lrodr...@gmail.com wrote:

  Hey Craig,

  I have 3.2.3  in my laptop, but I use the machines of the University
  (which have 3.1.1) to do computations that take long time.

  ---Alex

  On 2 mar, 11:19, Craig Citro craigci...@gmail.com wrote:
  Ah, does this mean you have a running copy of 3.1.1 still? Because I
  think it'll be easier to give you a patch against 3.1.1 than a patch
  against 3.2.3 ...

  -cc

  On Mon, Mar 2, 2009 at 10:06 AM, Alex Lara lrodr...@gmail.com wrote:

   Hi Craig,

   Thanks for explanation, it was clear. Now I have six files, but the
   program is still running and will generate more files. So, I would
   love you can explain me how to fix the problem.

   Thanks,

   Alex

   On 1 mar, 23:41, Craig Citro craigci...@gmail.com wrote:
From command line of Sage 3.1.1, I saved some object, and then I 
could
open it with sage 3.2.3. Next I open test.sobj (this was created by a
sage program) in sage 3.1.1,  saved it again, and when I tried to 
open
it on sage 3.2.3. Here you will find that 
object:http://math.arizona.edu/~alara/test.sobj

Alex

Thanks.  I'll take a look at it.  I've also CC'd Craig Citro who most
likely knows what is going on here.

--Mike

   Hi Alex,

   Yeah, this one is going to be a little bit annoying to fix. Here's
   what's going on: in between 3.1.1 and 3.2.3, fraction fields got moved
   over to the new coercion model. This is good, but as it happens, the
   switch was done in such a way that it caused the pre-existing pickles
   to not load correctly (which is exactly what you're seeing). There's
   probably a clean and classy way to fix this, and I'll be happy to look
   at it carefully in a few weeks if no one beats me to it (I'm busy
   trying to finish up my thesis). This is now trac #5419.

   In the interim, you probably want to hack something together so that
   you can load your pickles. I managed to make sage 3.2.3 load the
   pickles, but it's a pretty ugly hack, and you'll still need to re-save
   the objects as newer pickles (which actually has one or two more
   wrinkles), so that you don't have to deal with this in the short term.
   How many of these files are there? If it's just a few, e-mail them to
   me off-list, and I'll just re-pickle them in a newer format and send
   them back to you. If there are more than that, I'll carefully explain
   how you can fix them yourself. :)

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



[sage-support] Re: I can't load objets in Sage 3.2.3 that were created in Sage 3.1.1

2009-03-02 Thread Alex Lara

Hi cc,

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.

Alex



On 2 mar, 12:21, Craig Citro craigci...@gmail.com wrote:
 Hi Alex,

 Well, I have one question first before deciding the right way to
 proceed. Are all the objects you're creating the same general shape as
 the ones in the test.sobj you posted -- collections of polynomials
 over rational function fields in one variable over finite fields? If
 so, then we have two options; if not, we probably only have option
 (2).

 (1) We can patch 3.2.3, so you can load the objects in 3.2.3. I'll
 then write a function that will take the objects, recreate
 corresponding objects in 3.2.3, coerce the old ones over, and re-save
 them. This isn't so bad, but it depends on me knowing exactly what
 kind of objects you've got. It's slightly more error-prone, I think.

 (2) We build and patch 3.1.1, and you just load and save each object.
 Then they should load fine in 3.2.3.

 Which seems better to you? (I think (2) is slightly easier for me, but
 nominally more work for you -- you have to build 3.1.1 on your
 laptop.)

 -cc

 On Mon, Mar 2, 2009 at 10:32 AM, Alex Lara lrodr...@gmail.com wrote:

  Hey Craig,

  I have 3.2.3  in my laptop, but I use the machines of the University
  (which have 3.1.1) to do computations that take long time.

  ---Alex

  On 2 mar, 11:19, Craig Citro craigci...@gmail.com wrote:
  Ah, does this mean you have a running copy of 3.1.1 still? Because I
  think it'll be easier to give you a patch against 3.1.1 than a patch
  against 3.2.3 ...

  -cc

  On Mon, Mar 2, 2009 at 10:06 AM, Alex Lara lrodr...@gmail.com wrote:

   Hi Craig,

   Thanks for explanation, it was clear. Now I have six files, but the
   program is still running and will generate more files. So, I would
   love you can explain me how to fix the problem.

   Thanks,

   Alex

   On 1 mar, 23:41, Craig Citro craigci...@gmail.com wrote:
From command line of Sage 3.1.1, I saved some object, and then I 
could
open it with sage 3.2.3. Next I open test.sobj (this was created by a
sage program) in sage 3.1.1,  saved it again, and when I tried to 
open
it on sage 3.2.3. Here you will find that 
object:http://math.arizona.edu/~alara/test.sobj

Alex

Thanks.  I'll take a look at it.  I've also CC'd Craig Citro who most
likely knows what is going on here.

--Mike

   Hi Alex,

   Yeah, this one is going to be a little bit annoying to fix. Here's
   what's going on: in between 3.1.1 and 3.2.3, fraction fields got moved
   over to the new coercion model. This is good, but as it happens, the
   switch was done in such a way that it caused the pre-existing pickles
   to not load correctly (which is exactly what you're seeing). There's
   probably a clean and classy way to fix this, and I'll be happy to look
   at it carefully in a few weeks if no one beats me to it (I'm busy
   trying to finish up my thesis). This is now trac #5419.

   In the interim, you probably want to hack something together so that
   you can load your pickles. I managed to make sage 3.2.3 load the
   pickles, but it's a pretty ugly hack, and you'll still need to re-save
   the objects as newer pickles (which actually has one or two more
   wrinkles), so that you don't have to deal with this in the short term.
   How many of these files are there? If it's just a few, e-mail them to
   me off-list, and I'll just re-pickle them in a newer format and send
   them back to you. If there are more than that, I'll carefully explain
   how you can fix them yourself. :)

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



[sage-support] I can't load objets in Sage 3.2.3 that were created in Sage 3.1.1

2009-03-01 Thread Alex Lara

I'm using Sage 3.2.3. I can't load objects created and saved with Sage
3.1.1. I got the following message:
 DeprecationWarning: Your data is stored in an old format. Please use
the save() function to store your data in a more recent format.

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



[sage-support] Re: I can't load objets in Sage 3.2.3 that were created in Sage 3.1.1

2009-03-01 Thread Alex Lara

From command line of Sage 3.1.1, I saved some object, and then I could
open it with sage 3.2.3. Next I open test.sobj (this was created by a
sage program) in sage 3.1.1,  saved it again, and when I tried to open
it on sage 3.2.3. Here you will find that object: 
http://math.arizona.edu/~alara/test.sobj

Alex

On 1 mar, 09:34, Mike Hansen mhan...@gmail.com wrote:
 Hi Alex,

 On Sun, Mar 1, 2009 at 8:20 AM, Alex Lara lrodr...@gmail.com wrote:

  I'm using Sage 3.2.3. I can't load objects created and saved with Sage
  3.1.1. I got the following message:
   DeprecationWarning: Your data is stored in an old format. Please use
  the save() function to store your data in a more recent format.

 They should still load.  The warning just tells you that the format
 has changed so you should resave them to get the new format.  If they
 don't actually load, could you please post a link to one of the .sobj
 files?

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