[sage-support] Re: Converting a script to .spyx

2014-06-05 Thread pete . donnell
Hi guys, Thanks for the advice so far. Here's a minimal example: from sage.geometry.cone import Cone C = Cone( [[1,0],[0,1]] ) And here's what happens when I try to run it: Compiling test.spyx... Traceback (most recent call last): File /var/local/sage-6.2/local/bin/sage-run-cython, line 9,

[sage-support] Re: Converting a script to .spyx

2014-06-05 Thread pete . donnell
Interesting, it also works for me when run from the prompt. Unfortunately, I need to be able to run the script in an automated way from outside Sage, not just from a Sage prompt. I suppose I might be able to work around this issue with some shell scripting glue, but that will get pretty messy.

[sage-support] Converting a script to .spyx

2014-06-04 Thread pete . donnell
Hi everyone, I'm a bit stumped trying to convert a Sage script that uses the inbuilt Cone type to a Cython/spyx script. After various errors and false starts, the only modification I've made to the script is to put the line from sage.all import * at the top, and obviously to change the

[sage-support] Re: Memory leak in Cone.dual()

2014-05-04 Thread pete . donnell
Thanks guys. Manual garbage collection helps, but memory usage still creeps up. Looks like I need to build sage 6.2 from source! -- 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,

[sage-support] Re: sage ppa

2014-04-30 Thread pete . donnell
I ran into the same issue and contacted the person who maintains the Ubuntu repository. He told me that at the moment there are no 32-bit builds in the Sage Ubuntu repository. You'll either need to switch to 64-bit, or download the 32-bit installer from sagemath.org instead. Pete On Tuesday,

[sage-support] Memory leak in Cone.dual()

2014-04-30 Thread pete . donnell
Hi all, I'm pretty new to Python, so perhaps I'm doing something wrong, but I've encountered what I believe to be a memory leak in Sage's Cone.dual() method. Below is some very simplified proof of concept code demonstrating the issue: #!/usr/bin/env sage generators = [] generators.append(

[sage-support] Re: Installing Python module in Sage (Ubuntu)

2014-04-30 Thread pete . donnell
For Python packages that are available on pypi.python.org, I found the following commands helpful: cd sagedir ./sage --python -m easy_install package_name Hope that's of some help! Pete On Wednesday, 23 April 2014 01:06:51 UTC+1, Akshat Mahajan wrote: Hi! The general problem: how does one