GithubHelp home page GithubHelp logo

Comments (7)

kyamagu avatar kyamagu commented on July 19, 2024

Thanks, fixed

from skia-python.

FlorianLudwig avatar FlorianLudwig commented on July 19, 2024

@kyamagu hey, thanks for the quick reply.

With the new version I don't get a surface and line 30:

    assert surface is not None

Results in an AssertionError. Any idea why?

from skia-python.

kyamagu avatar kyamagu commented on July 19, 2024

Can you check if the older skia version with the use of GrContext works?

pip install skia-python==85.0

from skia-python.

FlorianLudwig avatar FlorianLudwig commented on July 19, 2024

Same error, surface = None.

from skia-python.

kyamagu avatar kyamagu commented on July 19, 2024

Ok, that could be a driver issue. Make sure you have system requirement. Might also need xvfb.

https://kyamagu.github.io/skia-python/install.html#pypi-distribution

from skia-python.

FlorianLudwig avatar FlorianLudwig commented on July 19, 2024

I usually use wayland and tried running it on xorg instead - that worked. I will investigate further how to make that work. Is there a way to get skia / skia python to be more verbose about issues/errors?

from skia-python.

kyamagu avatar kyamagu commented on July 19, 2024

Skia-python is merely a thin wrapper around Skia library, and perhaps you need to check the skia source code.

The error is likely happening around OpenGL context creation, and you might need to instead check if glfw or whatever toolkit can correctly reveal OpenGL for skia in your environment.

from skia-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.