Hi Michael,

On Mon, Jan 26, 2009 at 2:15 AM, mabshoff
<[email protected]> wrote:
[...]
>>     from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as 
>> _ceil
>> ImportError: No module named math
>> Error building numpy.
>
> This looks like a problem with Python. Can you verify that Python
> works, i.e. that "import math" doesn't blow up"?

I'm not quite sure which installation of Python I should try, so I've
tried all Python installations on the above Linux machine that I was
able to find. Here are the results I received:

[1] The system wide Python installation is 2.4.2 and, not
surprisingly, I was able to do "import math" from within the Python
session.

[2] My local Python installation on that machine is 2.6.1. The same
story as above.

[3] The same story as above for Python 2.5.2 that's packaged with Sage
3.2.3. That is, I did "import math" after running
SAGE_ROOT/local/bin/python, and tried again with "sage -python".

I couldn't load sage, as the error message below indicates that
ipython hasn't been built yet:

[van...@burnet-usr sage-3.2.3]$ ./sage
----------------------------------------------------------------------
| Sage Version 3.2.3, Release Date: 2009-01-05                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/system/cs/home/csmis/van409/usr/bin/sage-3.2.3/local/bin/<string> in <module>()


ImportError: No module named sage.misc.preparser_ipython
WARNING: Failure executing code: 'import sage.misc.preparser_ipython;  sage.misc
.preparser_ipython.magma_colon_equals=True'
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/cs/home/csmis/van409/usr/bin/sage-3.2.3/local/lib/python2.5/site-packages/IPyth
on/ipmaker.pyc in force_import(modname)
     64         reload(sys.modules[modname])
     65     else:
---> 66         __import__(modname)
     67
     68

/system/cs/home/csmis/van409/usr/bin/sage-3.2.3/local/bin/ipy_profile_sage.py in
 <module>()
      1 import os
      2 if 'SAGE_CLEAN' not in os.environ:
----> 3     import sage.misc.misc
      4     from sage.misc.interpreter import preparser, _ip
      5     preparser(True)

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

<ERROR: name 'sage_prompt' is not defined>
[Sage hangs here]

Perhaps I'm missing something.

-- 
Regards
Minh Van Nguyen

--~--~---------~--~----~------------~-------~--~----~
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