Bug 480487 - Failed to exacute the Python file
Summary: Failed to exacute the Python file
Status: REPORTED
Alias: None
Product: LabPlot2
Classification: Applications
Component: general (show other bugs)
Version: 2.10.1
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-29 13:04 UTC by 249538789
Modified: 2024-06-30 13:24 UTC (History)
0 users

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


Attachments
the python code drawing a sin curve using matplotlib (22.53 KB, application/x-xz)
2024-01-29 13:04 UTC, 249538789
Details

Note You need to log in before you can comment on or make changes to this bug.
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?