| Download
All published worksheets from http://sagenb.org
Project: sagenb.org published worksheets
Views: 168733Image: ubuntu2004
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/sage/sagenb/sage_notebook/worksheets/alexx/2/code/1.py", line 6, in <module>
print _support_.syseval(mathematica, ur'''f(x)=x3-1''', '/home/sage/sagenb/sage_notebook/worksheets/alexx/2/cells/0')
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/server/support.py", line 352, in syseval
system.chdir(dir)
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/mathematica.py", line 442, in chdir
self.eval('SetDirectory["%s"]'%dir)
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/mathematica.py", line 368, in eval
s = Expect.eval(self, code, **kwds)
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 974, in eval
return '\n'.join([self._eval_line(L, **kwds) for L in code.split('\n') if L != ''])
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/mathematica.py", line 416, in _eval_line
allow_use_file=allow_use_file, wait_for_prompt=wait_for_prompt)
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 633, in _eval_line
return self._eval_line_using_file(line)
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 620, in _eval_line_using_file
s = self._eval_line(self._read_in_file_command(tmp_to_use), allow_use_file=False)
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/mathematica.py", line 416, in _eval_line
allow_use_file=allow_use_file, wait_for_prompt=wait_for_prompt)
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 636, in _eval_line
self._start()
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 458, in _start
self.__name, cmd, self._install_hints())
RuntimeError: Unable to start mathematica because the command 'math' failed.
In order to use the Mathematica interface you need to have Mathematica
installed and have a script in your PATH called "math" that runs the
command-line version of Mathematica. Alternatively, you could use a
remote connection to a server running Mathematica -- for hints, type
print mathematica._install_hints_ssh()
(1) You might have to buy Mathematica (http://www.wolfram.com/).
(2) * LINUX: The math script comes standard with your Mathematica install.
* APPLE OS X:
(a) create a file called math (in your PATH):
#!/bin/sh
/Applications/Mathematica\ 5.2.app/Contents/MacOS/MathKernel $@
Note that the 5.2 part will depend on the version of
Mathematica you have, and the above path could be different
if you installed mathematica elsewhere.
(b) Make the file executable.
chmod +x math
* WINDOWS:
Install Mathematica for Linux into the VMware virtual machine (sorry,
that's the only way at present).
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/sage/sagenb/sage_notebook/worksheets/alexx/2/code/2.py", line 6, in <module>
print _support_.syseval(mathematica, ur'''f(x)=x^3-1''', '/home/sage/sagenb/sage_notebook/worksheets/alexx/2/cells/1')
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/server/support.py", line 352, in syseval
system.chdir(dir)
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/mathematica.py", line 442, in chdir
self.eval('SetDirectory["%s"]'%dir)
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/mathematica.py", line 368, in eval
s = Expect.eval(self, code, **kwds)
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 974, in eval
return '\n'.join([self._eval_line(L, **kwds) for L in code.split('\n') if L != ''])
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/mathematica.py", line 416, in _eval_line
allow_use_file=allow_use_file, wait_for_prompt=wait_for_prompt)
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 633, in _eval_line
return self._eval_line_using_file(line)
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 620, in _eval_line_using_file
s = self._eval_line(self._read_in_file_command(tmp_to_use), allow_use_file=False)
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/mathematica.py", line 416, in _eval_line
allow_use_file=allow_use_file, wait_for_prompt=wait_for_prompt)
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 636, in _eval_line
self._start()
File "/home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 458, in _start
self.__name, cmd, self._install_hints())
RuntimeError: Unable to start mathematica because the command 'math' failed.
In order to use the Mathematica interface you need to have Mathematica
installed and have a script in your PATH called "math" that runs the
command-line version of Mathematica. Alternatively, you could use a
remote connection to a server running Mathematica -- for hints, type
print mathematica._install_hints_ssh()
(1) You might have to buy Mathematica (http://www.wolfram.com/).
(2) * LINUX: The math script comes standard with your Mathematica install.
* APPLE OS X:
(a) create a file called math (in your PATH):
#!/bin/sh
/Applications/Mathematica\ 5.2.app/Contents/MacOS/MathKernel $@
Note that the 5.2 part will depend on the version of
Mathematica you have, and the above path could be different
if you installed mathematica elsewhere.
(b) Make the file executable.
chmod +x math
* WINDOWS:
Install Mathematica for Linux into the VMware virtual machine (sorry,
that's the only way at present).