Bug 1832673
Summary: | Sagemath won't calculate some simple mathematical expressions. | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomoaki Sato <CXN00112> | ||||
Component: | sagemath | Assignee: | Paulo Andrade <paulo.cesar.pereira.de.andrade> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 32 | CC: | loganjerry, paulo.cesar.pereira.de.andrade | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | sagemath-9.0-7.fc32 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-05-23 02:43:53 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Tomoaki Sato
2020-05-07 04:02:00 UTC
Thanks for the bug report. I'll try to fix it. FEDORA-2020-e9531c1353 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-e9531c1353 FEDORA-2020-e9531c1353 has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-e9531c1353` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-e9531c1353 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. Unfortunately, another problem remains in sagemath-9.0-3. More simple, type "1+2" into a new cell, and evaluate it with Shift+Enter (it should return "3"), this error is shown: ----- Beginning of the output ---- TypeError Traceback (most recent call last) TypeError: Interactive constructor takes at most 1 positional argument ---- End of the output ----- If you need more information, please let me know. Thank you for your work. Sorry about that. I fixed one bug and added another. I will do new builds today. FEDORA-2020-e9531c1353 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-e9531c1353 FEDORA-2020-e9531c1353 has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-e9531c1353` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-e9531c1353 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. Created attachment 1686986 [details]
A template file for sagemath to draw a 3D graphic (from debian buster).
I think the same file exists in Sagemath system for older version of Fedora (Fedora 31, and Sagemath 8.8?).
This is for testing only.
Thanks a lot! Almost perfect. But I have found a problem left. When I tried to draw a 3D graphic, the system returns the following error. ----- Beginning of the output ---- /usr/lib64/python3.8/site-packages/sage/repl/rich_output/display_manager.py:590: RichReprWarning: Exception in _rich_repr_ while displaying object: [Errno 2] No such file or directory: '/usr/share/sagemath/etc/threejs/threejs_template.html' warnings.warn( ---- End of the output ----- In fact, there were not "threejs" directory, and "threejs_template.html" file. I guess the the file and the directory structure have been lost for some reason. So, I made the directory, and put "threejs_template.html" file into it. (This file is what I have found in another distribution, namely, debian buster.) Then, the 3D graphic was drawn successfully. The following is a simple example of 3D graphic from https://doc.sagemath.org/html/en/reference/plot3d/sage/plot/plot3d/base.html ----- Beginning of the sample ---- A = sphere((0,0,0), 1, color='red')] B = dodecahedron((2, 0, 0), color='yellow') A+B ---- End of the sample ----- Try to put this code in a cell, and evaluate. And I also attach the "threejs_template.html" Thanks, again. Yes, there appear to be several missing directories in /usr/share/sagemath/etc. I'll work out what should be there and fire off another round of builds. Thanks for sticking with me through all this fumbling around. FEDORA-2020-e9531c1353 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-e9531c1353 FEDORA-2020-e9531c1353 has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-e9531c1353` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-e9531c1353 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. I tested sagemath-9.0-6. Please try the following code (complicated one, I know). ----- Beginning of the sample ---- R.<x> = PolynomialRing(QQ) f=x^2+1 G=f.galois_group(pari_group=True) print(G) print(G.permutation_group().list()) ---- End of the sample ----- The last line of the code generates a very long error message. I cannot guess where the problem is. Hmmm, it looks like something has gone wrong in the libgap interface. I'll see if I can figure it out. I think I see the problem. If you evaluate this first: sage.env.GAP_SO="/usr/lib64/libgap.so.0" then everything seems to be okay. I'll see why the build didn't set that automatically. Ah, because sagemath has a function that looks for libgap.so in various directories. So if you happen to have libgap-devel installed, it works correctly, but if you don't, you get what happened in comment 14. Honestly, the existence of libgap-devel is probably stupid, since it contains only libgap.so. I'll have to rethink that. Yes, it works! After I installed libgap-devel, I didn't need to set the environmental variable. I will try some other examples. FEDORA-2020-e9531c1353 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-e9531c1353 FEDORA-2020-e9531c1353 has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-e9531c1353` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-e9531c1353 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. I clean-installed Fedora 32, activated testing repository, and installed sagemath 9.0.7. Everything goes well for now. Thanks. I am very glad to hear that. Thank you for testing so thoroughly. If you have any interest in helping to maintain the Fedora sagemath package, please let me know. We could use more eyes on this package. FEDORA-2020-e9531c1353 has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report. |