Hi,

I am working on a chroot jail for SAGE under Fedora. I am making good
progress
and already have a SAGE prompt (a FC7 install inside FC4!).

Now I want to run doctests but I am running into a little problem. I
have installed
SAGE in <sage-root-jail>/sage-2.6.linux32bit-i686-Linux/
(in other words in an immediate subdirectory of the virtual root
directory).

On running sage -t I get the following

Traceback (most recent call last):
  File "/sage-2.6.linux32bit-i686-Linux/local/bin/sage-test", line 41,
in <module>
    CUR = abspath(os.curdir)
  File "/sage-2.6.linux32bit-i686-Linux/local/bin/sage-test", line 22,
in abspath
    return strip_automount_prefix(os.path.abspath(x))
  File "/sage-2.6.linux32bit-i686-Linux/local/bin/sage-test", line 33,
in strip_automount_prefix
    new = "/" + str[2]
IndexError: list index out of range

It seems that the function strip_automount_prefix assumes that a path
contains at least
two "/"'s which is not satisfied in my case.

I assume this function should just bail out in the case that a path
contains 0 or 1 slashes.
But since I do not fully understand what strip_automount_prefix is
supposed to do
I would like some input on this.

Michel

PS. Strictly speaking one should use os.path.separator instead of
"/" :-)


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to