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.Tue, 15 Mar 2022 23:02:33 +0100Changing terminal color on Windowshttps://ask.sagemath.org/question/61519/changing-terminal-color-on-windows/I ran the installation without admin privileges, and the Sage Console seemed to be working. But I don't like dark mode, so I was trying to find my way around to figure out how to invoke lightBG (which I thought was supposed to be the default). Not finding that easy, I was surprised to discover that no environment variables had been created or new PATH items added. Eg., I could not run sage at the command line (without a full path). So I thought that maybe I should run the installer with admin privileges and install it for everybody. Even worse! Now, on trying to start the console, bash is immediately and repeatedly complaining "could not find file /tmp".
Furthermore, still no additions to environment variables or to PATH.
I did try starting bash and issuing command "mkdir /tmp". It claims to have succeeded. But it did not help for the console. Furthermore, a second attempt is met with "file exists".
Any helpful suggestions would be appreciated.DrHowTue, 15 Mar 2022 23:02:33 +0100https://ask.sagemath.org/question/61519/SageMath cannot access Mathematicahttps://ask.sagemath.org/question/48785/sagemath-cannot-access-mathematica/I have installed Mathematica Version 11.3 at a Linux system (openSUSE Leap 15.1) on a partition "math", i.e. separated from the Linux home and system partition. I have tried to send Mathematica expressions from SageMath to Mathematica in the manner described in the SageMath reference by using a SageMath Notebook or its command line interface. They are rejected with:
> TypeError: unable to start mathematica: End Of File (EOF). Exception style platform.
Mathematica finished running /usr/bin/sh -c stty -echo; math -rawterm
command: /usr/bin/sh
args: ['/usr/bin/sh', '-c', 'stty -echo; math -rawterm']
buffer (last 100 chars): ''
before (last 100 chars): 'es/Linux/WolframKernel\r\nnot found. Your Mathematica installation may be i incomplete\r\nor corrupted.\r\n'
after: <class 'pexpect.exceptions.EOF'>
In the course of the installation of Mathematica I added the path to the math command line interface of Mathematica to the common PATH-sequence. Therefore I am able to access the Mathematica command line interface by simply entering math or the command:
> /usr/bin/sh -c stty -echo; math -rawterm
using a bash-terminal outside SageMath. I have checked that I can do it without the need for specifying the complete path to math. However, entering the same command within a Sage-session by using the Python's OS- interface is only successful if the full path to math is specified:
> /usr/bin/sh -c stty -echo; /run/media/bernhardi/math/math -rawterm
The error appearing otherwise is the same as that one returned by the above described trials to send mathematica objects. The protocol shows that the mathematica objects are sent to Mathematica without detailed path info. Thus, obviously the SageMath-Mathematica interface does not recognize the complete path info that is availabe in the basic Linux system. Maybe the missing info is caused by the fact that Mathematica is located on a remote partition. Therefore my question: Is it possible to provide sageMath with the needed full path to math?
Unfortunately it is not possible to attach the complete output of SageMath.bekalphSun, 17 Nov 2019 13:41:42 +0100https://ask.sagemath.org/question/48785/how to run sage as a servicehttps://ask.sagemath.org/question/8598/how-to-run-sage-as-a-service/How do I run sage as a web application service (like running an instance of Ruby on Rails or a Django web application) without entering sage ipython CLI session?
Because I don't want to keep a terminal emulator like gnome terminal or x-term open,I just want to run sage in the background with log recorded in some files (say, $HOME/.local/sage/log/notebook.log). Gong-Yi LiaoWed, 28 Dec 2011 10:48:14 +0100https://ask.sagemath.org/question/8598/Previously working SAGE install brokehttps://ask.sagemath.org/question/9605/previously-working-sage-install-broke/Hello,
Sage was working for me about a month ago. I had not used it until yesterday, and when I tried using the sage command in my Ubuntu 12.04 terminal I receive the following error
/usr/bin/sage: line 118: cd: /usr/lib/sage: No such file or directory
/usr/bin/sage: cannot determine SAGE_ROOT directory
I tried everything I could think of and google. I have tried reinstalling libc6-i386 and the ia32-libs but that does not seem to be the reason. My computer is otherwise working well without any other programs (perhaps I've yet to notice) malfunctioning. It doesn't seem like this is a 32-bit vs 64-bit issue.
Of course, I checked both locations and the files are there.
I have also reinstalled sage a few times, and the issue remains.
Thank you!dngraphTue, 04 Dec 2012 15:40:04 +0100https://ask.sagemath.org/question/9605/