Bug 478228 - Error when trying to execute python in python notebook
Summary: Error when trying to execute python in python notebook
Status: RESOLVED FIXED
Alias: None
Product: LabPlot2
Classification: Applications
Component: general (show other bugs)
Version: 2.10.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Stefan Gerlach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-07 21:11 UTC by Henri Michael
Modified: 2023-12-23 14:18 UTC (History)
1 user (show)

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


Attachments
picture with system-error dialog (9.00 KB, image/png)
2023-12-07 21:11 UTC, Henri Michael
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Michael 2023-12-07 21:11:58 UTC
Created attachment 163990 [details]
picture with system-error dialog

SUMMARY
On Windows when running python code in a python Notebook, cantor_pythonserver.exe returns an error. 
The error names:  python310.dll as missing. 
It seems that labplot is shipping the wrong python version: python38.dll .

STEPS TO REPRODUCE
1. install labplot from Microsoft store
2. open labplot
3. create new python notebook
4. write short command like: print("hallo world")
5. a system-error appears "cantor_pythonserver.exe cant find python3.10.dll a reinstall might fix the issue"
6. a reinstall doesn't fix the issue.

OBSERVED RESULT
view image in attachment to see Error dialog.
Sorry for the German text.

EXPECTED RESULT
Execution of python code in notebook.

SOFTWARE/OS VERSIONS
Windows: Windows 10 Version 2009
Architektur: x86_64-little_endian-llp64
Kernel: winnt 10.0.19045
C++ Compiler: MSVC 19.29.30148.0
C++ Compiler Optionen: /DWIN32 /D_WINDOWS /W3 /GR /EHsc /wd4250 /wd4251 /wd4396 /wd4661 /Zc:__cplusplus -O2 -W3 -DPSAPI_VERSION=1
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10 (kompiliert gegen 5.15.10)

ADDITIONAL INFORMATION
This happens in the normal installer and the windows store Version.
Comment 1 Alexander Semke 2023-12-08 15:42:24 UTC
(In reply to Henri Michael from comment #0)
> Created attachment 163990 [details]
> picture with system-error dialog
> 
> SUMMARY
> On Windows when running python code in a python Notebook,
> cantor_pythonserver.exe returns an error. 
> The error names:  python310.dll as missing. 
> It seems that labplot is shipping the wrong python version: python38.dll .
> 
> STEPS TO REPRODUCE
> 1. install labplot from Microsoft store
> 2. open labplot
> 3. create new python notebook
> 4. write short command like: print("hallo world")
> 5. a system-error appears "cantor_pythonserver.exe cant find python3.10.dll
> a reinstall might fix the issue"
> 6. a reinstall doesn't fix the issue.

We don't ship any version of python but we require a fixed version of python to be present on the system in order for the python notebook to work. For LabPlot 2.10 the required version is python3.10 (also mentioned in our FAQ https://userbase.kde.org/LabPlot/FAQ). Can you please install 3.10 and try again?
Comment 2 Henri Michael 2023-12-08 17:00:35 UTC
(In reply to Alexander Semke from comment #1)
> (In reply to Henri Michael from comment #0)
> > Created attachment 163990 [details]
> > picture with system-error dialog
> > 
> > SUMMARY
> > On Windows when running python code in a python Notebook,
> > cantor_pythonserver.exe returns an error. 
> > The error names:  python310.dll as missing. 
> > It seems that labplot is shipping the wrong python version: python38.dll .
> > 
> > STEPS TO REPRODUCE
> > 1. install labplot from Microsoft store
> > 2. open labplot
> > 3. create new python notebook
> > 4. write short command like: print("hallo world")
> > 5. a system-error appears "cantor_pythonserver.exe cant find python3.10.dll
> > a reinstall might fix the issue"
> > 6. a reinstall doesn't fix the issue.
> 
> We don't ship any version of python but we require a fixed version of python
> to be present on the system in order for the python notebook to work. For
> LabPlot 2.10 the required version is python3.10 (also mentioned in our FAQ
> https://userbase.kde.org/LabPlot/FAQ). Can you please install 3.10 and try
> again?

I got python:
3.10.11
3.11.5
3.9.13

installed and i even put python 3.10 at to top of my path variables.
I still get "python310.dll is missing" when i try to execute it.
Comment 3 Stefan Gerlach 2023-12-08 17:11:25 UTC
Let me take this over,

our Windows installer is still build on the Binary Factory which uses Python 3.8. That's why the python38.dll is shipped.
Some time ago we experimented with Python 3.10 but this should not be found it's way into the Windows store. Let me check it myself.
I'll post an update when this is fixed.
Comment 4 Henri Michael 2023-12-08 17:33:23 UTC
(In reply to Stefan Gerlach from comment #3)
> Let me take this over,
> 
> our Windows installer is still build on the Binary Factory which uses Python
> 3.8. That's why the python38.dll is shipped.
> Some time ago we experimented with Python 3.10 but this should not be found
> it's way into the Windows store. Let me check it myself.
> I'll post an update when this is fixed.

i tried the manual installer and it works.
It seems like only the windows store version is brocken.
Comment 5 Stefan Gerlach 2023-12-23 14:18:43 UTC
A new version which supports Python Notebooks is now available in the MS Store. It requires Python 3.11.