On 5/10/12 5:23 AM, Christian Stump wrote:
    It seemed to be installing now, but when running sage
    ./start_device.py, I get the following error with ssh:


Okay, I am slowly moving forward: I had not installed openssh-server...

Now, I get the following error message:

stumpc5@stumpc5:~/progs/sage-5.0.rc0/devel/sagecell$ sage ./start_device.py
Executing: /home/stumpc5/progs/sage-5.0.rc0/sage -python trusted_db.py
--untrusted-mem -1 --workers 5 --quiet '' --untrusted-account
'localhost' --untrusted-python '/home/stumpc5/progs/sage-5.0.rc0/sage
-python' --untrusted-cpu -1
PID: 22308
/usr/bin/ssh:
/home/stumpc5/progs/sage-5.0.rc0/local/lib/libcrypto.so.1.0.0: no
version information available (required by /usr/bin/ssh)
stumpc5@localhost's password:
SSH process id: 22464
ssh: /home/stumpc5/progs/sage-5.0.rc0/local/lib/libcrypto.so.1.0.0: no
version information available (required by ssh)
Pseudo-terminal will not be allocated because stdin is not a terminal.
stumpc5@localhost's password:
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-24-generic x86_64)

* Documentation: https://help.ubuntu.com/

Traceback (most recent call last):
File "device_process.py", line 62, in <module>
sage.all.plot(lambda x: x, (0,1)).save(StringIO.StringIO())
File
"/home/stumpc5/progs/sage-5.0.rc0/local/lib/python2.7/site-packages/sage/misc/decorators.py",
line 456, in wrapper
return func(*args, **kwds)
File
"/home/stumpc5/progs/sage-5.0.rc0/local/lib/python2.7/site-packages/sage/plot/graphics.py",
line 2191, in save
ext = os.path.splitext(filename)[1].lower()
File "/home/stumpc5/progs/sage-5.0.rc0/local/lib/python/posixpath.py",
line 96, in splitext
return genericpath._splitext(p, sep, altsep, extsep)
File "/home/stumpc5/progs/sage-5.0.rc0/local/lib/python/genericpath.py",
line 91, in _splitext
sepIndex = p.rfind(sep)
AttributeError: StringIO instance has no attribute 'rfind'

This indicates that the patches to Sage did not apply successfully. Can you check those? The patches in SAGE_ROOT/devel/sage/.hg/patches/ should exactly with the patches here:

https://github.com/sagemath/sagecell/blob/master/sage-patches/01-sage-embedded.patch

https://github.com/sagemath/sagecell/blob/master/sage-patches/02-sage-show.patch

In particular, my guess is that the second patch is not applied. If it isn't applied, you can apply it manually by going to SAGE_ROOT/devel/sage/ and doing:

hg qimport -P https://github.com/sagemath/sagecell/raw/master/sage-patches/02-sage-show.patch

Then do 'sage -br' to make sure that Sage builds the new code and can start up.

Thanks,

Jason

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

Reply via email to