On Sun, Mar 9, 2014 at 9:39 PM, William Stein <wst...@gmail.com> wrote:
> On Sun, Mar 9, 2014 at 8:53 PM, R. Andrew Ohana <andrew.oh...@gmail.com> > wrote: > > This doesn't at least look to be a regression, so much as a long term > bug. > > Do you mean it isn't a regression *resulting from the git > reorganization*? I mean it doesn't look like it should be a regression. If it is, it is some magic foo going on. In particular between 5.13 and 6.0, the source code for sage.interfaces was only touched by trac #15440 (some maxima funkiness), and SAGE_EXTCODE wasn't touched (it hasn't been changed for over a year by this point). Or do you mean that you think this has always been > broken? > Looking at the code, it should have been. > Install Sage as one user, then run it as another. In sage-5.10,11,12, > I think the following worked, but in sage-6.2.beta it doesn't: > > octave.eval('rand(4)') > > Anyway, I guess I'll try to fix this someday... > A work-around (not a proper fix) is to mimic the standard interfaces initialization, i.e. -octave = Octave(script_subdirectory='user') +octave = Octave(script_subdirectory=None) and similarly for the other optional interfaces that seem to get very little attention. > -- William > > > > > > > > On Sun, Mar 9, 2014 at 1:09 PM, William Stein <wst...@gmail.com> wrote: > >> > >> Hi, > >> > >> > >> I install sage-6.x systemwide for https://cloud.sagemath.com. Now it > >> seems impossible for a normal user to use the octave interface (and > >> probably many others), which is a _major_ regression: > >> > >> > >> sage: octave.eval('rand(2)') > >> Traceback (most recent call last): > >> File > >> > "/usr/local/sage/sage-6.2/local/lib/python2.7/site-packages/sage/interfaces/expect.py", > >> line 1208, in eval > >> for L in code.split('\n') if L != '']) > >> File > >> > "/usr/local/sage/sage-6.2/local/lib/python2.7/site-packages/sage/interfaces/expect.py", > >> line 813, in _eval_line > >> self._start() > >> File > >> > "/usr/local/sage/sage-6.2/local/lib/python2.7/site-packages/sage/interfaces/octave.py", > >> line 285, in _start > >> Expect._start(self) > >> File > >> > "/usr/local/sage/sage-6.2/local/lib/python2.7/site-packages/sage/interfaces/expect.py", > >> line 389, in _start > >> sage_makedirs(dir) > >> File > >> > "/usr/local/sage/sage-6.2/local/lib/python2.7/site-packages/sage/misc/misc.py", > >> line 73, in sage_makedirs > >> os.makedirs(dir) > >> File "/usr/local/sage/sage-6.2/local/lib/python/os.py", line 150, in > >> makedirs > >> makedirs(head, mode) > >> File "/usr/local/sage/sage-6.2/local/lib/python/os.py", line 157, in > >> makedirs > >> mkdir(name, mode) > >> OSError: [Errno 13] Permission denied: > >> '/usr/local/sage/sage-6.2/local/share/sage/ext/octave' > >> > >> > >> I was able to get things to work by doing > >> > >> mkdir -p /usr/local/sage/sage-6.2/local/share/sage/ext/octave/user > >> chown a+rwx /usr/local/sage/sage-6.2/local/share/sage/ext/octave/user > >> > >> I particularly *HATE* the second chown -- yes, you must give write to > >> everybody. > >> This of means any user could just fill up that directory and bring down > >> the > >> system. > >> > >> Anyway, what happened? > >> > >> > >> -- William > > > > > > > > > > -- > > Andrew > > > > -- > William Stein > Professor of Mathematics > University of Washington > http://wstein.org > -- Andrew -- 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.