skia-python icon indicating copy to clipboard operation
skia-python copied to clipboard

AttributeError: type object 'skia.GrContext' has no attribute 'MakeGL'

Open moefear85 opened this issue 2 years ago • 4 comments

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

moefear85 avatar Dec 18 '22 20:12 moefear85

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!

emesare avatar Dec 21 '22 03:12 emesare

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.

moefear85 avatar Dec 26 '22 21:12 moefear85

no it doesn't

Could you provide the code that is not working?

emesare avatar Dec 27 '22 04:12 emesare

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.

HinTak avatar Aug 02 '23 10:08 HinTak