Hi all,

So one sage-on-gentoo user opened the issue 
https://github.com/cschwan/sage-on-gentoo/issues/289
and I think it is relevant to anyone installing sage globally as root and 
someone for example tries to
use octave. The message at the end of the backtrace is:
OSError: [Errno 13] Permission denied: '/usr/share/sage/ext/octave'
Basically sage (here in sage-on-gentoo but you would get a similar problem with 
a different
path) tries to create
/usr/share/sage/ext/octave/user
This is triggered by pexpect which requires 
SAGE_EXTCODE/name/self.__script_subdirectory 
to exist and if not, create it (sage/interface/pexpect.py line 172 define this 
path). 
We get this path rather than "." because of line 518 in 
sage/interface/octave.py:
octave = Octave(script_subdirectory='user')

What is the correct solution here? Ship sage with a folder octave/user or change
the instance on line 518 to use "" for script_subdirectory? 

I am leaning on the later as it makes more sense for a simple instance of 
octave.

François
This email may be confidential and subject to legal privilege, it may
not reflect the views of the University of Canterbury, and it is not
guaranteed to be virus free. If you are not an intended recipient,
please notify the sender immediately and erase all copies of the message
and any attachments.

Please refer to http://www.canterbury.ac.nz/emaildisclaimer for more
information.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to