Bug 480487

Summary: Failed to exacute the Python file
Product: [Applications] LabPlot2 Reporter: 249538789
Component: generalAssignee: Alexander Semke <alexander.semke>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 2.10.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: the python code drawing a sin curve using matplotlib

Description 249538789 2024-01-29 13:04:35 UTC
Created attachment 165322 [details]
the python code drawing a sin curve using matplotlib

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.  enter the python code
2.  change the font of the code
3.  first time, it works
4. reopen the file, and run the code again

OBSERVED RESULT
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb9 in position 12: invalid start byte

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Alexander Semke 2024-02-26 07:40:45 UTC
(In reply to 249538789 from comment #0)
> Created attachment 165322 [details]
> the python code drawing a sin curve using matplotlib
> 
> SUMMARY
> ***
> NOTE: If you are reporting a crash, please try to attach a backtrace with
> debug symbols.
> See
> https://community.kde.org/Guidelines_and_HOWTOs/Debugging/
> How_to_create_useful_crash_reports
> ***
> 
> 
> STEPS TO REPRODUCE
> 1.  enter the python code
> 2.  change the font of the code
> 3.  first time, it works
> 4. reopen the file, and run the code again
> 
> OBSERVED RESULT
> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb9 in position 12:
> invalid start byte

I cannot reproduce this problem. In your file you put all commands into one single cell in the notebook. To try to understand which command exactly is causing that UnicodeDecodeError, can you please split your code into multiple cells (put import statements into one cell, assignments for x and y into the second cell and the plot commands into the third cell) and try again? For which cell are you getting this error?
Comment 2 Alexander Semke 2024-06-30 13:24:49 UTC
Can you please check my previous comment and help with the steps to reproduce this problem?