On Tue, Jan 24, 2012 at 9:58 PM, William Stein <[email protected]> wrote:
>
>
> On Tuesday, January 24, 2012, Ondřej Čertík <[email protected]> wrote:
>> On Tue, Jan 24, 2012 at 3:31 PM, Jaap Spies <[email protected]> wrote:
>>> Ondřej Čertík wrote:
>>>>
>>>> Hi,
>>>>
>>>
>>> Hi Ondrej,
>>>
>>>
>>>
>>>> I downloaded the latest Sage binary for Ubuntu and I use Ubuntu 11.10.
>>>> Here is what I got when I started it:
>>>>
>>>>
>>>> ondrej@eagle:~/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux$
>>>> ./sage
>>>> ----------------------------------------------------------------------
>>>> | Sage Version 4.8, Release Date: 2012-01-20                         |
>>>> | Type notebook() for the GUI, and license() for information.        |
>>>> ----------------------------------------------------------------------
>>>> The Sage installation tree may have moved
>>>> (from /scratch/buildbot/sage/redhawk-1/redhawk_binary/build/sage-4.8
>>>> to
>>>> /home/ondrej/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux).
>>>> Changing various hardcoded paths...
>>>> (Please wait at most a few minutes.)
>>>> DO NOT INTERRUPT THIS.
>>>> Done resetting paths.
>>>> Traceback (most recent call last):
>>>>   File
>>>>
>>>> "/home/ondrej/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/bin/sage-ipython",
>>>> line 18, in<module>
>>>>     import IPython
>>>>   File
>>>>
>>>> "/home/ondrej/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.6/site-packages/IPython/__init__.py",
>>>> line 58, in<module>
>>>>     __import__(name,glob,loc,[])
>>>>   File
>>>>
>>>> "/home/ondrej/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.6/site-packages/IPython/ipstruct.py",
>>>> line 17, in<module>
>>>>     from IPython.genutils import list2dict2
>>>>   File
>>>>
>>>> "/home/ondrej/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.6/site-packages/IPython/genutils.py",
>>>> line 53, in<module>
>>>>     from IPython.external.path import path
>>>>   File
>>>>
>>>> "/home/ondrej/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python2.6/site-packages/IPython/external/path.py",
>>>> line 35, in<module>
>>>>     import md5
>>>>   File
>>>>
>>>> "/home/ondrej/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/md5.py",
>>>> line 10, in<module>
>>>>     from hashlib import md5
>>>>   File
>>>>
>>>> "/home/ondrej/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py",
>>>> line 136, in<module>
>>>>     md5 = __get_builtin_constructor('md5')
>>>>   File
>>>>
>>>> "/home/ondrej/ext/sage-4.8-linux-64bit-ubuntu_10.04.3_lts-x86_64-Linux/local/lib/python/hashlib.py",
>>>> line 63, in __get_builtin_constructor
>>>>     import _md5
>>>> ImportError: No module named _md5
>>>>
>>>>
>>>> So I guess I should compile from source. Just wanted to let you know.
>>>
>>>
>>> You know! Compile from source.
>>>
>>> Good to see you here.
>>
>> Thanksssss Jaap for your helpss. I really appreciate it. All is clear now.
>> :)
>>
>
> You can rebuild just python with sage -f python.   Or you can install som
> system-wide ssl related package.
>
> Thanks for the bug report; our binaries continue to suck, and I hope we find
> a way to improve.  I know what we should do (have tons of vm's with clean
> minimal installs), but I haven't found time to make them.

Or make Sage work with some "restrict" library, I wrote one here:

https://github.com/certik/restrict

you specify paths that are allowed (like /usr/include/stdio.h) and
everything else
is forbidden. I only tested this on linux.
That should make sure, that things are never picked up from the system
--- if this is the problem.

Ondrej

-- 
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
URL: http://www.sagemath.org

Reply via email to