Unable to evaluate Octave code in Sage Cell Server

77 views
Skip to first unread message

Franktoffel

unread,
Sep 4, 2013, 7:34:43 AM9/4/13
to sage-s...@googlegroups.com
I am not able to execute any code without getting an error when I select Octave as a language.

https://sagecell.sagemath.org/

---------------------------------------------------------------------------
OSError Traceback (most recent call last)
<ipython-input-1-c5dbb7763774> in <module>()
----> 1 print octave.eval("""A = 1""")

/home/sageserver/sage/local/lib/python2.7/site-packages/sage/interfaces/expect.pyc in eval(self, code, strip, synchronize, locals, allow_use_file, split_lines, **kwds)
1206 elif split_lines:
1207 return '\n'.join([self._eval_line(L, allow_use_file=allow_use_file, **kwds)
-> 1208 for L in code.split('\n') if L != ''])
1209 else:
1210 return self._eval_line(code, allow_use_file=allow_use_file, **kwds)

/home/sageserver/sage/local/lib/python2.7/site-packages/sage/interfaces/expect.pyc in _eval_line(self, line, allow_use_file, wait_for_prompt, restart_if_needed)
811 try:
812 if self._expect is None:
--> 813 self._start()
814 E = self._expect
815 try:

/home/sageserver/sage/local/lib/python2.7/site-packages/sage/interfaces/octave.pyc in _start(self)
283 True
284 """
--> 285 Expect._start(self)
286 self.eval("page_screen_output=0;")
287 self.eval("format none;")

/home/sageserver/sage/local/lib/python2.7/site-packages/sage/interfaces/expect.pyc in _start(self, alt_message, block_during_init)
387 current_path = os.path.abspath('.')
388 dir = self.__path
--> 389 sage_makedirs(dir)
390 os.chdir(dir)
391

/home/sageserver/sage/local/lib/python2.7/site-packages/sage/misc/misc.pyc in sage_makedirs(dir)
78 """
79 try:
---> 80 os.makedirs(dir)
81 except OSError:
82 if not os.path.isdir(dir):

/home/sageserver/sage/local/lib/python/os.pyc in makedirs(name, mode)
148 if head and tail and not path.exists(head):
149 try:
--> 150 makedirs(head, mode)
151 except OSError, e:
152 # be happy if someone already created the path

/home/sageserver/sage/local/lib/python/os.pyc in makedirs(name, mode)
155 if tail == curdir: # xxx/newdir/. exists if xxx/newdir exists
156 return
--> 157 mkdir(name, mode)
158
159 def removedirs(name):

OSError: [Errno 13] Permission denied: '/home/sageserver/sage/local/share/sage/ext/octave'

Regards

Jason Grout

unread,
Sep 4, 2013, 8:42:16 AM9/4/13
to sage-s...@googlegroups.com
On 9/4/13 6:34 AM, Franktoffel wrote:
> I am not able to execute any code without getting an error when I select Octave as a language.
>
> https://sagecell.sagemath.org/

Thanks. I'll try to look at this over the next few days.

Jason


fbotana

unread,
Oct 8, 2013, 11:28:25 AM10/8/13
to sage-s...@googlegroups.com

fbotana

unread,
Oct 8, 2013, 11:30:58 AM10/8/13
to sage-s...@googlegroups.com
(Sorry for my preceding message)

I get a similar error when trying to use qepcad:

OSError: [Errno 13] Permission denied: '/home/sageserver/sage/local/share/sage/ext/QEPCAD/'


On Wednesday, September 4, 2013 1:34:43 PM UTC+2, Franktoffel wrote:

Jason Grout

unread,
Oct 10, 2013, 3:24:55 AM10/10/13
to sage-s...@googlegroups.com
On 10/8/13 10:28 AM, fbotana wrote:
>
>
> On Wednesday, September 4, 2013 1:34:43 PM UTC+2, Franktoffel wrote:
>
> I am not able to execute any code without getting an error when I
> select Octave as a language.
>

I changed things to get rid of the permission error, and this works now:

http://sagecell.sagemath.org/?q=iqclvj

Thanks for reminding us of this.

Jason


Jason Grout

unread,
Oct 10, 2013, 12:44:51 PM10/10/13
to sage-s...@googlegroups.com
On 10/10/13 2:24 AM, Jason Grout wrote:
> On 10/8/13 10:28 AM, fbotana wrote:
>>
>>
>> On Wednesday, September 4, 2013 1:34:43 PM UTC+2, Franktoffel wrote:
>>
>> I am not able to execute any code without getting an error when I
>> select Octave as a language.
>>
>
> I changed things to get rid of the permission error, and this works now:
>
> http://sagecell.sagemath.org/?q=iqclvj
>

Apparently our permalink system somehow got broken when using a
different system. I'll look into it. In the meantime, Octave seems to
work now.

Jason


William Stein

unread,
Oct 10, 2013, 12:44:50 PM10/10/13
to sage-support
Not for me. See attached.

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



--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org
octave.png
Reply all
Reply to author
Forward
0 new messages