Ask Your Question

charettes's profile - activity

2011-12-21 20:34:21 +0100 received badge  Self-Learner (source)
2011-12-21 20:34:21 +0100 received badge  Teacher (source)
2011-12-21 20:33:17 +0100 received badge  Nice Question (source)
2011-11-10 18:58:33 +0100 received badge  Taxonomist
2011-11-07 07:35:06 +0100 received badge  Famous Question (source)
2011-05-25 23:25:51 +0100 received badge  Notable Question (source)
2011-03-17 09:22:22 +0100 received badge  Popular Question (source)
2011-01-02 14:05:03 +0100 received badge  Student (source)
2011-01-02 10:30:30 +0100 commented answer Import sage python module

Thank you very much i'll have a look at this thread :)

2011-01-02 10:29:58 +0100 received badge  Scholar (source)
2011-01-02 10:29:58 +0100 marked best answer Import sage python module

I don't think that this is really possible at present - an mostly uninformed guess is that anything relying on an spkg or external programs would break. If you want to try it anyway, maybe set SAGE_ROOT as devel/sage/build/ (since that's the built version of the code).

There's a thread on sage-devel that might be useful.

2011-01-02 10:29:46 +0100 received badge  Supporter (source)
2010-12-20 11:24:42 +0100 answered a question Import sage python module

I tried "cd" to SAGE_ROOT/devel/sage did the following.

Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.environ['SAGE_ROOT'] = '/opt/sage'
>>> from sage.all import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sage/all.py", line 56, in <module>
    from sage.rings.memory import pmem_malloc
ImportError: No module named memory

I'm stuck to this, any idea why i get this error while running sage from the console and netbook works fine?

2010-12-19 13:51:53 +0100 asked a question Import sage python module

Hi!

I've been trying to setup sagemath in order to use the sage python module by importing it in an other python project. I'm trying to get the same thing that i get when calling:

./sage -python

Is there a deployment script/python egg that install the module in dist-package? Is there a folder i can add to my python path?

So far I downloaded the "sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux.tar.lzma" version and unpacked it to "/opt/sage" while changing sure to update the "SAGE_ROOT" in /opt/sage.

I know there must be a way to do so because FAQ mentions it. Python 2.6 is already bundled with my machine so i guess all I have to do is add a folder to my python path?