Hi guys,
I just discovered a thing about loading extensions and CPython scripts.
Didn’t find any mention about this anywhere else so here’s the thing.
Short version: If you include non-ASCII characters in the names of panels or buttons, CPython scripts will break.
Explanation: I was testing an extension that uses CPython scripts (with libraries like Plotly, Openpyxl, etc.). However, every time I loaded another extension, the CPython scripts would fail with the following error message:
To debug this, I had to load each panel and button individually to figure out what was causing the issue.
After few days of troubleshooting, I discovered the culprit: the panels and buttons with non-ASCII characters in its name (“Visibilité.panel”, “Légende.pushbutton”…) were causing the problem.
I’m aware that CPython is still unstable and that using IronPython and subprocesses is recommended for now, but it was still satisfying to pinpoint the issue.
I wanted to share this with you all to save you some hours and headaches.
Enjoy!
(P.S. I hope this isn’t a well-known issue—I wouldn’t want to seem clueless! )