-
Notifications
You must be signed in to change notification settings - Fork 51
Description
Describe the bug
When I running the skparagraph-example.py script on windows, the program terminated without any output.
To Reproduce
Steps to reproduce the behavior:
- A clean Windows 10 installation
- Install Python 3.12.7 and skia-python 132.0b11
- Download and run skparagraph-example.py
There will be a DLL load failed while importing skia, related to #176

After installing "Microsoft Visual C++ 2015 Redistributable", there will be no error when running the script, except for a warning SkIcuLoader: datafile missing. This warning is not a concern, as there is already a icudtl.dat in the Lib\site-packages path.

The problem is that the script exits without doing anything or reporting any other errors.
After I installed the latest Microsoft Visual C++ Redistributable, the script worked just fine.
Expected behavior
skia.textlayout works fine with the default installation
Desktop (please complete the following information):
- OS: Windows 10
- Python: 3.12.7
- skia-python version: 132.0b11
Additional context
I tried installing different versions of Microsoft Visual C++ Redistributable, it shows that it only works if Microsoft Visual C++ Redistributable 2022 (14.38.33135 and newer) is installed.
And there is a msvc-runtime package, maybe it's a good idea to make it a dependency of the windows version.