[Python] python standalone builds causes problem with pillow tkinter

Discussão em 'Python' iniciado por Stack, Agosto 7, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to embed python standalone builds to my electron app. I downloaded standalone from https://github.com/astral-sh/python-build-standalone

    Everything seems to work fine until pillow is installed. While the installation works correctly, when using the library with tkinter, I get the following error when used in mac

    _tkinter.TclError: invalid command name "PyImagingPhoto"
    ...
    TypeError: bad argument type for built-in operation


    The code works on standard python installation on my mac, but the builds I am embeding is causing this issue

    I also saw this issue here: https://github.com/astral-sh/python-build-standalone/issues/533

    Has anyone who has worked with something like this know how to solve this?

    Continue reading...

Compartilhe esta Página