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.Fri, 19 Oct 2018 19:33:22 +0200Make PyCharm recognise the Sage python interpreterhttps://ask.sagemath.org/question/39742/make-pycharm-recognise-the-sage-python-interpreter/How do I configure PyCharm so I can edit and run Sage scripts?
When I tried selecting Sage's python in `C:\Program Files\SageMath 8.0\runtime\opt\sagemath-8.0\local\bin` PyCharm said 'cannot setup SDK'.
I am using SageMath 8 on Windows.
[Edit] Rephrased the question because it is partly solved (and is pretty difficult), asking new question for the remainder so it is more clear.PHPiratesThu, 23 Nov 2017 15:08:17 +0100https://ask.sagemath.org/question/39742/sage binary "base-toolchain" failedhttps://ask.sagemath.org/question/43998/sage-binary-base-toolchain-failed/I'm trying to use SageMath 8.3 binary for Ubuntu 16.04 LTS.
The binary does not work out of the box, it complains "RecursionError", which seems to be caused by Anaconda overriding the default python2.7 interpreter. So I temporarily comment out the Anaconda path, and the python interpreter is now the default 2.7.
Then there is this "bas-toolchain" error:
<pre>
patching /home/abc/usr/SageMath/local/bin/g++
Traceback (most recent call last):
File "./relocate-once.py", line 208, in <module>
ch(3478673, 3478845).save()
File "./relocate-once.py", line 113, in patch
self.search_and_replace, self.filename
File "./relocate-once.py", line 52, in __init__
super(FileBinaryPatch, self).__init__(search_and_replace, filename)
File "./relocate-once.py", line 40, in __init__
self.st = os.stat(filename)
OSError: [Errno 2] No such file or directory: '/home/abc/usr/SageMath/local/bin/g++'
Makefile:31: recipe for target 'base-toolchain' failed
make: *** [base-toolchain] Error 1
</pre>
I created a symlink of g++
<pre>
ln -sf /usr/bin/g++ ./local/bin/g++
</pre>
but it doesn't work.
I have no idea what to do, please help. Thanks in advance!
### Edit (10/20/2018):
The binary also reports error. Output of `sudo ./sage`:
<pre>
Traceback (most recent call last):
File "/home/abc/usr/SageMath/relocate-once.py", line 208, in <module>
ch(3478673, 3478845).save()
File "/home/abc/usr/SageMath/relocate-once.py", line 113, in patch
self.search_and_replace, self.filename
File "/home/abc/usr/SageMath/relocate-once.py", line 52, in __init__
super(FileBinaryPatch, self).__init__(search_and_replace, filename)
File "/home/abc/usr/SageMath/relocate-once.py", line 40, in __init__
self.st = os.stat(filename)
OSError: [Errno 2] No such file or directory: '/home/abc/usr/SageMath/local/bin/g++'
ERROR: The Sage installation tree has moved
from /home/buildbot/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidmas391yaj2
to /home/abc/usr/SageMath
This is not supported, and Sage will not work. To install Sage from a
binary package:
1. Open the .tar.bz2 archive (or .dmg on OSX)
2. Move the SageMath folder/app to where you want it to be. You can
also rename the directory now.
3. Start sage for the first time. This will then automatically patch
paths in binaries.
After starting Sage for the first time you cannot change the
installation any more. To install Sage elsewhere, start over from the
binary package. Or recompile Sage from scratch in the new location
("make distclean && make")
</pre>
I also tried `sudo sage --nodotsage`, same output.
It looks like the binary in the first run must call the make.msgboxaFri, 19 Oct 2018 19:33:22 +0200https://ask.sagemath.org/question/43998/'launched jmol viewer for Graphics3d Object' failshttps://ask.sagemath.org/question/39269/launched-jmol-viewer-for-graphics3d-object-fails/Testing Sagemath for windows 8.0 with jmol, I get the message at the console but nothing happens. However the jmol viewer (launched with jmol.bat) found in C:\Program Files\SageMath 8.0\runtime\opt\sagemath-8.0\local\share\jmol is working correctly.
> sage: G=sphere((0,0,0),1)
> sage: show(G,figsize=(5,5),title="Sample Figure",aspect_ratio=1);
> Launched jmol viewer for Graphics3d Object
> sage:
It looks like a path problem but I don't see how to modify it.c05772Wed, 25 Oct 2017 00:03:23 +0200https://ask.sagemath.org/question/39269/Sagemath 8.0 and Sagemath 8.1 and Windows 10https://ask.sagemath.org/question/39798/sagemath-80-and-sagemath-81-and-windows-10/ It seems that there is no solution to my problem but I am still hoping. I installed the Windows native version of Sagemath and every try to use plot3d (i.e. var('y') plot3d( 4*x*exp(-x^2-y^2), (x,-2,2), (y,-2,2))) runs into the following error:
/opt/sagemath-8.0/local/lib/python2.7/site-packages/sage/repl/rich_output/display_manager.py:590: RichReprWarning: Exception in _rich_repr_ while displaying object: Jmol failed to create file '/dot_sage/temp/Sandman/16196/dir_oUJsU7/preview.png', see '/dot_sage/temp/Sandman/16196/tmp_9jJjSY.txt' for details
RichReprWarning,
Is anybody out there who can help to fix that Sagemath bug?
Thanks for your help!AiKjuSun, 26 Nov 2017 15:38:09 +0100https://ask.sagemath.org/question/39798/unexpected behaviors with Sage 8.0 on Machttps://ask.sagemath.org/question/38639/unexpected-behaviors-with-sage-80-on-mac/I'm having some weirdnesses with my Sage 8.0 installation. I run Sage via the app, not the command line. Here's the story.
I upgraded to Sage 8.0. It made me create a folder to contain Jupyter notebooks. I found the menu item to upgrade notebooks individually. I picked my favorite and oldest notebook ("experiments") to upgrade. I ran a semi-arbitrary cell, which worked fine (mostly---it told me to install JDK, which I have installed so didn't install, and then Sage displayed the graphics properly). I created a couple of new cells. I saved the file.
This is where things get weird.
- The converted/saved notebook isn't showing up in the default notebook list, which is empty even on refresh.
- The converted/saved notebook isn't showing up in the Jupyter notebooks folder.
- The Jupyter interface that opens automatically when I start Sage 8.0 is at localhost:8888.
- The converted notebook was somewhere under localhost:8889.
- I restarted everything (app, Jupyter server, upgrade server) and, because the converted notebook was nowhere to be found, I re-converted it and re-ran something in it. That's showing up as under localhost:8890.
- Nothing showed up under the Running list for localhost:8888 until I created a new notebook there (which also appeared in all the other places I expected it to appear). The first converted notebook shows up under the Running list for localhost:8889. The second converted notebook shows up under the Running list for localhost:8890.
So... I can't tell whether I don't understand the new (Jupyter) paradigm, or whether something's gone wrong with my setup. How is saving/accessing/re-accessing converted notebooks supposed to work? What should I be doing differently?
Edited to add: The converted notebooks have been found (by accident): They ended up in my root directory instead of the default Jupyter directory. Still seems like things are not acting as they should.smbelcasThu, 24 Aug 2017 15:19:25 +0200https://ask.sagemath.org/question/38639/Sage 8.0 startup screen: broken links?https://ask.sagemath.org/question/38638/sage-80-startup-screen-broken-links/The "Sage is starting" screen seems to have two issues:
(1) If I point my browser to localhost:8080, which is what the "Sage is starting" screen tells me the Jupyter interface should go to, I get a "connection was refused" error. I am guessing that's just a mistaken link. But what port should I be going to? 8888?
(2) It says if problems continue, to email support and gives a link of mailto:sage-support@googlegroups.com. Following that link and sending an email gives an autoresponse of "Delivery Status Notification (Failure)
We're writing to let you know that the group you tried to contact (sage-support) may not exist, or you may not have permission to post messages to the group." It seems to me that if people are required to join a google group in order to get support, that should be part of the instructions rather than telling users to directly email the group.smbelcasThu, 24 Aug 2017 15:16:42 +0200https://ask.sagemath.org/question/38638/