Bug 428961

Summary: Cantor don't work with Sage 9.2
Product: [Applications] cantor Reporter: Nikita Sirgienko <warquark>
Component: sage-backendAssignee: Nikita Sirgienko <warquark>
Status: RESOLVED FIXED    
Severity: major    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 20.12
Sentry Crash Report:

Description Nikita Sirgienko 2020-11-11 10:49:06 UTC
Originally reported in this bugreport: https://bugs.kde.org/show_bug.cgi?id=428611
SUMMARY
Cantor don't work with Sage 9.2: computation don't run and each run of entry causes sage crash and Cantor prints, what the sage process has finished unexpectedly.

STEPS TO REPRODUCE
1. Install (or build) Cantor with Sage backend
2. Install Sage 9.2 and configure Cantor to use it
3. Start sage session and try to execute "2+2"

OBSERVED RESULT
Cantor prints, that sage process finished unexpectedly and the entry have been interrupted.

EXPECTED RESULT
Got result of the entry with "4" and entry marked as finished successfully

ADDITIONAL INFORMATION
Comment 1 Nikita Sirgienko 2020-11-11 10:50:35 UTC
The problem have been found: Sage since version 9.2 stop automatically sourcing sage-env-config, which needed for sage-env, which used by Cantor for running sage (in cantor-execsage script).
Comment 2 Nikita Sirgienko 2020-11-11 10:52:18 UTC
Git commit 0c46c2b6b231373f0dce9a46dd6acd90fc01ad33 by Nikita Sirgienko.
Committed on 11/11/2020 at 10:51.
Pushed by sirgienko into branch 'release/20.12'.

Make Cantor working with Sage 9.2
FIXED-IN: 20.12

M  +10   -0    src/backends/sage/cantor-execsage

https://invent.kde.org/education/cantor/commit/0c46c2b6b231373f0dce9a46dd6acd90fc01ad33