ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 18 Apr 2013 00:39:20 +0200calling maplehttps://ask.sagemath.org/question/10032/calling-maple/I am trying to get maple to work inside sage. I have maple installed and in .bashrc I made an alias to run ./maple from where it is installed when I type 'maple' in terminal, and it works fine:
> ~$ maple
> |\^/| Maple 16 (X86 64 LINUX)
>._|\| |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2012
> \ MAPLE / All rights reserved. Maple is a trademark of
> <____ ____> Waterloo Maple Inc.
> | Type ? for help.
>>
But when I run a maple command inside sage, for example
> sage: maple('2+2')
it returns a TypeError and tells me that I should install maple.
I read the documentation [here](http://www.sagemath.org/doc/reference/interfaces/sage/interfaces/maple.html) and it says I should have a script called maple and put it in PATH in order to be able to run maple in sage. What I don't understand is where is the PATH. I tried the sage_root (sage installation folder), and home folder. None seem to be working.
Has anyone got this to work, and how?Tue, 16 Apr 2013 17:56:31 +0200https://ask.sagemath.org/question/10032/calling-maple/Comment by kcrisman for <p>I am trying to get maple to work inside sage. I have maple installed and in .bashrc I made an alias to run ./maple from where it is installed when I type 'maple' in terminal, and it works fine: </p>
<blockquote>
<p>~$ maple</p>
<p>|\^/| Maple 16 (X86 64 LINUX)</p>
<p>._|\| |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2012</p>
<p>\ MAPLE / All rights reserved. Maple is a trademark of</p>
<p><____ ____> Waterloo Maple Inc.</p>
<pre><code> | Type ? for help.
</code></pre>
<p>></p>
</blockquote>
<p>But when I run a maple command inside sage, for example </p>
<blockquote>
<p>sage: maple('2+2')</p>
</blockquote>
<p>it returns a TypeError and tells me that I should install maple.
I read the documentation <a href="http://www.sagemath.org/doc/reference/interfaces/sage/interfaces/maple.html">here</a> and it says I should have a script called maple and put it in PATH in order to be able to run maple in sage. What I don't understand is where is the PATH. I tried the sage_root (sage installation folder), and home folder. None seem to be working. </p>
<p>Has anyone got this to work, and how?</p>
https://ask.sagemath.org/question/10032/calling-maple/?comment=17878#post-id-17878I'd see whether the fix at #12295 works, though it does seem that your error is different.Wed, 17 Apr 2013 09:57:38 +0200https://ask.sagemath.org/question/10032/calling-maple/?comment=17878#post-id-17878Comment by k1 for <p>I am trying to get maple to work inside sage. I have maple installed and in .bashrc I made an alias to run ./maple from where it is installed when I type 'maple' in terminal, and it works fine: </p>
<blockquote>
<p>~$ maple</p>
<p>|\^/| Maple 16 (X86 64 LINUX)</p>
<p>._|\| |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2012</p>
<p>\ MAPLE / All rights reserved. Maple is a trademark of</p>
<p><____ ____> Waterloo Maple Inc.</p>
<pre><code> | Type ? for help.
</code></pre>
<p>></p>
</blockquote>
<p>But when I run a maple command inside sage, for example </p>
<blockquote>
<p>sage: maple('2+2')</p>
</blockquote>
<p>it returns a TypeError and tells me that I should install maple.
I read the documentation <a href="http://www.sagemath.org/doc/reference/interfaces/sage/interfaces/maple.html">here</a> and it says I should have a script called maple and put it in PATH in order to be able to run maple in sage. What I don't understand is where is the PATH. I tried the sage_root (sage installation folder), and home folder. None seem to be working. </p>
<p>Has anyone got this to work, and how?</p>
https://ask.sagemath.org/question/10032/calling-maple/?comment=17872#post-id-17872BTW, is there an easy to understand instruction on how to apply patches? I found [this](http://www.sagemath.org/doc/developer/patching_spkgs.html) but it doesn't seem like what I need.Wed, 17 Apr 2013 19:47:31 +0200https://ask.sagemath.org/question/10032/calling-maple/?comment=17872#post-id-17872Comment by kcrisman for <p>I am trying to get maple to work inside sage. I have maple installed and in .bashrc I made an alias to run ./maple from where it is installed when I type 'maple' in terminal, and it works fine: </p>
<blockquote>
<p>~$ maple</p>
<p>|\^/| Maple 16 (X86 64 LINUX)</p>
<p>._|\| |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2012</p>
<p>\ MAPLE / All rights reserved. Maple is a trademark of</p>
<p><____ ____> Waterloo Maple Inc.</p>
<pre><code> | Type ? for help.
</code></pre>
<p>></p>
</blockquote>
<p>But when I run a maple command inside sage, for example </p>
<blockquote>
<p>sage: maple('2+2')</p>
</blockquote>
<p>it returns a TypeError and tells me that I should install maple.
I read the documentation <a href="http://www.sagemath.org/doc/reference/interfaces/sage/interfaces/maple.html">here</a> and it says I should have a script called maple and put it in PATH in order to be able to run maple in sage. What I don't understand is where is the PATH. I tried the sage_root (sage installation folder), and home folder. None seem to be working. </p>
<p>Has anyone got this to work, and how?</p>
https://ask.sagemath.org/question/10032/calling-maple/?comment=17866#post-id-17866Try http://www.sagemath.org/doc/developer/walk_through.html#reviewing-a-patchThu, 18 Apr 2013 00:39:20 +0200https://ask.sagemath.org/question/10032/calling-maple/?comment=17866#post-id-17866Comment by kcrisman for <p>I am trying to get maple to work inside sage. I have maple installed and in .bashrc I made an alias to run ./maple from where it is installed when I type 'maple' in terminal, and it works fine: </p>
<blockquote>
<p>~$ maple</p>
<p>|\^/| Maple 16 (X86 64 LINUX)</p>
<p>._|\| |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2012</p>
<p>\ MAPLE / All rights reserved. Maple is a trademark of</p>
<p><____ ____> Waterloo Maple Inc.</p>
<pre><code> | Type ? for help.
</code></pre>
<p>></p>
</blockquote>
<p>But when I run a maple command inside sage, for example </p>
<blockquote>
<p>sage: maple('2+2')</p>
</blockquote>
<p>it returns a TypeError and tells me that I should install maple.
I read the documentation <a href="http://www.sagemath.org/doc/reference/interfaces/sage/interfaces/maple.html">here</a> and it says I should have a script called maple and put it in PATH in order to be able to run maple in sage. What I don't understand is where is the PATH. I tried the sage_root (sage installation folder), and home folder. None seem to be working. </p>
<p>Has anyone got this to work, and how?</p>
https://ask.sagemath.org/question/10032/calling-maple/?comment=17877#post-id-17877As to path, type `sage -sh` to get a Sage environment, and then do `echo $PATH` to see what the path Sage sees is.Wed, 17 Apr 2013 09:58:00 +0200https://ask.sagemath.org/question/10032/calling-maple/?comment=17877#post-id-17877Comment by k1 for <p>I am trying to get maple to work inside sage. I have maple installed and in .bashrc I made an alias to run ./maple from where it is installed when I type 'maple' in terminal, and it works fine: </p>
<blockquote>
<p>~$ maple</p>
<p>|\^/| Maple 16 (X86 64 LINUX)</p>
<p>._|\| |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2012</p>
<p>\ MAPLE / All rights reserved. Maple is a trademark of</p>
<p><____ ____> Waterloo Maple Inc.</p>
<pre><code> | Type ? for help.
</code></pre>
<p>></p>
</blockquote>
<p>But when I run a maple command inside sage, for example </p>
<blockquote>
<p>sage: maple('2+2')</p>
</blockquote>
<p>it returns a TypeError and tells me that I should install maple.
I read the documentation <a href="http://www.sagemath.org/doc/reference/interfaces/sage/interfaces/maple.html">here</a> and it says I should have a script called maple and put it in PATH in order to be able to run maple in sage. What I don't understand is where is the PATH. I tried the sage_root (sage installation folder), and home folder. None seem to be working. </p>
<p>Has anyone got this to work, and how?</p>
https://ask.sagemath.org/question/10032/calling-maple/?comment=17879#post-id-17879Thanks, shall I report this issue?Tue, 16 Apr 2013 22:58:49 +0200https://ask.sagemath.org/question/10032/calling-maple/?comment=17879#post-id-17879Comment by k1 for <p>I am trying to get maple to work inside sage. I have maple installed and in .bashrc I made an alias to run ./maple from where it is installed when I type 'maple' in terminal, and it works fine: </p>
<blockquote>
<p>~$ maple</p>
<p>|\^/| Maple 16 (X86 64 LINUX)</p>
<p>._|\| |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2012</p>
<p>\ MAPLE / All rights reserved. Maple is a trademark of</p>
<p><____ ____> Waterloo Maple Inc.</p>
<pre><code> | Type ? for help.
</code></pre>
<p>></p>
</blockquote>
<p>But when I run a maple command inside sage, for example </p>
<blockquote>
<p>sage: maple('2+2')</p>
</blockquote>
<p>it returns a TypeError and tells me that I should install maple.
I read the documentation <a href="http://www.sagemath.org/doc/reference/interfaces/sage/interfaces/maple.html">here</a> and it says I should have a script called maple and put it in PATH in order to be able to run maple in sage. What I don't understand is where is the PATH. I tried the sage_root (sage installation folder), and home folder. None seem to be working. </p>
<p>Has anyone got this to work, and how?</p>
https://ask.sagemath.org/question/10032/calling-maple/?comment=17873#post-id-17873Here is the output: "bash: /home/k1/sage5.8/spkg/bin:/home/k1/sage5.8/local/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/k1/.rvm/bin: No such file or directory"
But it doesn't mean much to me!Wed, 17 Apr 2013 19:38:31 +0200https://ask.sagemath.org/question/10032/calling-maple/?comment=17873#post-id-17873Comment by kcrisman for <p>I am trying to get maple to work inside sage. I have maple installed and in .bashrc I made an alias to run ./maple from where it is installed when I type 'maple' in terminal, and it works fine: </p>
<blockquote>
<p>~$ maple</p>
<p>|\^/| Maple 16 (X86 64 LINUX)</p>
<p>._|\| |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2012</p>
<p>\ MAPLE / All rights reserved. Maple is a trademark of</p>
<p><____ ____> Waterloo Maple Inc.</p>
<pre><code> | Type ? for help.
</code></pre>
<p>></p>
</blockquote>
<p>But when I run a maple command inside sage, for example </p>
<blockquote>
<p>sage: maple('2+2')</p>
</blockquote>
<p>it returns a TypeError and tells me that I should install maple.
I read the documentation <a href="http://www.sagemath.org/doc/reference/interfaces/sage/interfaces/maple.html">here</a> and it says I should have a script called maple and put it in PATH in order to be able to run maple in sage. What I don't understand is where is the PATH. I tried the sage_root (sage installation folder), and home folder. None seem to be working. </p>
<p>Has anyone got this to work, and how?</p>
https://ask.sagemath.org/question/10032/calling-maple/?comment=17880#post-id-17880Sadly, this does appear to be broken. It looks as if there is a fairly recent fix at http://trac.sagemath.org/sage_trac/ticket/12295 as well as another one at http://trac.sagemath.org/sage_trac/ticket/2120 . Sometimes it seems to depend on the Maple version; Maple 16 is very recent, of course, which looks like part of the issue at those tickets.Tue, 16 Apr 2013 18:23:26 +0200https://ask.sagemath.org/question/10032/calling-maple/?comment=17880#post-id-17880