skia-python
skia-python copied to clipboard
AttributeError: type object 'skia.GrContext' has no attribute 'MakeGL'
Describe the bug I installed glfw, pyopengl, and the mesa glx and mesa dri packages etc. But no example from the documentation runs. I always get:
AttributeError: type object 'skia.GrContext' has no attribute 'MakeGL'
Desktop (please complete the following information):
- OS: Ubuntu 22.10
- Python: 3.10.7
- skia-python version: 87.5
Just had similar problem, it was moved to GrDirectContext
(skia.GrDirectContext.MakeGL()
specifically).
I found this by searching the api docs here. Hope this helps!
no it doesn't, but I'm using Flutter/Flet instead. much simpler to set up and run. Hope this helps others who just want anti-aliased accelerated as-simple-as-possible gui+canvas toolkit for python.
no it doesn't
Could you provide the code that is not working?
The api docs is not a good guide... fact is, the two got merged - everything that used to belong to GrContext got merged into GrDirectContext in m88.