Bug 425102

Summary: Python 3 backend not found although installed
Product: [Applications] cantor Reporter: Marcello Massaro <dev>
Component: python3-backendAssignee: Nikita Sirgienko <warquark>
Status: RESOLVED NOT A BUG    
Severity: normal CC: warquark
Priority: NOR    
Version First Reported In: 20.04   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Marcello Massaro 2020-08-07 09:51:38 UTC
SUMMARY
On startup, Cantor shows a popup saying "Backend Python 3 is not installed". This is not true, as python 3 is installed. Clicking on the "Create new document" toolbar button also displays this error. If OTOH I click on "File > New > Python", a new workbook is created and everything works.


STEPS TO REPRODUCE
1. Open up Cantor, with correct dependencies installed.
2. (Optionally) Click on the leftmost toolbar button "Create new document".

OBSERVED RESULT
Pop-up warns user that backend for Python 3 is not installed, although it is.

EXPECTED RESULT
No popup.


SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.72.0
Qt Version: 5.15.0
Kernel Version: 5.7.12-arch1-1
OS Type: 64-bit

ADDITIONAL INFORMATION
Cantor version: 20.04.3
Comment 1 Nikita Sirgienko 2020-08-07 10:04:28 UTC
This is correct, because before there are two Python backends in Cantor: Python2 and Python3. But now, after Python 2 end of life, Python2 have been removed and Python3 now names just Python.
Comment 2 Nikita Sirgienko 2020-08-07 10:09:50 UTC
I suppose, that in settings, the backend by default is Python3. Change the default backend to Python and I suppose the problem will gone.
Comment 3 Marcello Massaro 2020-08-07 10:51:48 UTC
I see now. I changed my default backend and now it works as expected! Maybe the popup could (in the future) suggest to the user to change their default backend if it's not present. (e.g. it was removed)