Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
moefear85 opened this issue Dec 18, 2022 · 4 comments
Open

Comments

@moefear85
Copy link

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
@emesare
Copy link

emesare commented Dec 21, 2022

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!

@moefear85
Copy link
Author

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.

@emesare
Copy link

emesare commented Dec 27, 2022

no it doesn't

Could you provide the code that is not working?

@HinTak
Copy link
Collaborator

HinTak commented Aug 2, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants