You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
I found that pip install msvc-runtime won't work in a virtual environment...
HinTak
changed the title
Program terminated when using skia.textlayout on windows
(MSVC runtime needed on windows): Program terminated when using skia.textlayout on windows
Dec 2, 2024
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:
There will be a

DLL load failed while importing skia
, related to #176After 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 aicudtl.dat
in theLib\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 installationDesktop (please complete the following information):
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.
The text was updated successfully, but these errors were encountered: