Skip to content
New issue

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

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

Already on GitHub? # to your account

Unable to use Pillow ImageTk module #533

Open
ollpu opened this issue Feb 20, 2025 · 0 comments
Open

Unable to use Pillow ImageTk module #533

ollpu opened this issue Feb 20, 2025 · 0 comments

Comments

@ollpu
Copy link

ollpu commented Feb 20, 2025

On python-build-standalone Python 3.12 or 3.13 (installed via uv), I tried this with the Pillow library (10.4.0, 11.0.0, 11.1.0; wheels or built from source):

import PIL._imagingtk

and got the following error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: bad argument type for built-in operation

If that import fails, the PIL.ImageTk module doesn't work properly. _imagingtk is a compiled C module.

Observed on both macOS and Linux (Arch). The import works fine on system / brew installations of Python.

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

No branches or pull requests

1 participant