Bug 495591 - I updated to LabPlot 2.11 from 2.9....CAS Python does not work anymore...which Python version is supported with 2.11 ?
Summary: I updated to LabPlot 2.11 from 2.9....CAS Python does not work anymore...whic...
Status: RESOLVED FIXED
Alias: None
Product: LabPlot2
Classification: Applications
Component: general (show other bugs)
Version: 2.11.1
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Stefan Gerlach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-30 15:46 UTC by michael.guyonnet
Modified: 2025-01-25 14:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
attachment-4114053-0.html (1.14 KB, text/html)
2024-11-13 22:43 UTC, michael.guyonnet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description michael.guyonnet 2024-10-30 15:46:17 UTC
looks like Cantor is pointing to a default Python version 3.11.7 it was compiled with, even if I install 3.11.7 packages are not recognized. 

folding back on Labplot 2.9 with Python 3.8...working fne
Comment 1 Stefan Gerlach 2024-11-13 22:25:53 UTC
2.11.1 on Windows requires Python 3.11 for Cantor to work. You have to set the PATH when installing Python (see "Which version of Python do I need to install to work with in in LabPlot?" on https://userbase.kde.org/LabPlot/FAQ).
Comment 2 michael.guyonnet 2024-11-13 22:43:19 UTC
Created attachment 175794 [details]
attachment-4114053-0.html

yes, i did set the path ...not working !

On Wed, Nov 13, 2024 at 11:26 PM Stefan Gerlach <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=495591
>
> Stefan Gerlach <stefan.gerlach@uni-konstanz.de> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>            Assignee|alexander.semke@web.de
> |stefan.gerlach@uni-konstanz
>                    |                            |.de
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 3 Stefan Gerlach 2024-11-14 17:32:40 UTC
To narrow down the problem, can you tell us what version of Windows do you use, if you installed LabPlot via download.kde.org or via MS Store and if you installed it for all users (C:/Program Files/LabPlot2) or only for the current user.
Comment 4 michael.guyonnet 2024-11-14 19:06:25 UTC
(In reply to Stefan Gerlach from comment #3)
> To narrow down the problem, can you tell us what version of Windows do you
> use, if you installed LabPlot via download.kde.org or via MS Store and if
> you installed it for all users (C:/Program Files/LabPlot2) or only for the
> current user.

Windows 11 Pro
installed LabPlot via download.kde.org for all users C:/Program Files/LabPlot2
Comment 5 Stefan Gerlach 2024-11-14 22:55:49 UTC
Did you also install Python 3.11 for all users (C:\Program Files\Python311)? With that, LabPlot 2.11.1 from download.kde.org works fine for me on Windows 11.
Comment 6 michael.guyonnet 2024-11-15 12:53:34 UTC
(In reply to Stefan Gerlach from comment #5)
> Did you also install Python 3.11 for all users (C:\Program Files\Python311)?
> With that, LabPlot 2.11.1 from download.kde.org works fine for me on Windows
> 11.

yes, to be clear, Labplot finds Python but none of the packages I installed like Numpy.

ModuleNotFoundError: No module named 'numpy'
Comment 7 Stefan Gerlach 2024-11-19 23:36:02 UTC
I can reproduce that NumPy is not found even when installed with Python 3.11. I have no idea yet what could have changed since 2.9 and Python 3.8. It's probably a problem in Cantor. We need to dig deeper.
Comment 8 michael.guyonnet 2024-12-24 12:44:18 UTC
(In reply to Stefan Gerlach from comment #7)
> I can reproduce that NumPy is not found even when installed with Python
> 3.11. I have no idea yet what could have changed since 2.9 and Python 3.8.
> It's probably a problem in Cantor. We need to dig deeper.

any idea if/ when it will be solved ??
Comment 9 Stefan Gerlach 2025-01-25 11:12:35 UTC
I was able to find a problem on my system. There was an older Python version installed (without numpy).
Can you check in a Powershell that you get the correct version of Python

PS> python
Python 3.11.9 ...

LabPlot needs Python 3.11 for Notebooks.
Also check that NumPy is installed:

PS> python -m pip list
Package    Version
---------- -------
numpy      2.2.2
pip        24.0
setuptools 65.5.0

Otherwise: python -m pip install numpy
Comment 10 Stefan Gerlach 2025-01-25 11:13:45 UTC
Please use the latest development version for testing.
Comment 11 michael.guyonnet 2025-01-25 13:23:21 UTC
now working with the latest development version but not with 2.11.

thanks again, great tool !
Comment 12 Stefan Gerlach 2025-01-25 14:48:14 UTC
2.12.0 will be released soon.