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

bug: invalid command name "PyImagingPhoto" #205

Open
pawamoy opened this issue Jan 9, 2024 · 2 comments
Open

bug: invalid command name "PyImagingPhoto" #205

pawamoy opened this issue Jan 9, 2024 · 2 comments
Assignees
Labels
bug Something isn't working cross-platform-support Related to cross-platform support (Linux, Mac, etc.) dependencies Related to other python pypi packages used python-error Related to python versions, pypi packages

Comments

@pawamoy
Copy link

pawamoy commented Jan 9, 2024

Bug

Describe the bug

When opening a folder in Biscuit, I get these errors in the logs (standard output/error):

>  ~/Downloads/biscuit .
The environment does not allow connecting to the splash screen. Are the splash resources attached to the bootloader or did an error occur?
Traceback (most recent call last):
  File "PyInstaller/fake-modules/pyi_splash.py", line 98, in <module>
  File "os.py", line 680, in __getitem__
KeyError: '_PYIBoot_SPLASH'
Exception in Tkinter callback
Traceback (most recent call last):
  File "PIL/ImageTk.py", line 65, in _pyimagingtkcall
_tkinter.TclError: invalid command name "PyImagingPhoto"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "tkinter/__init__.py", line 1921, in __call__
  File "/tmp/_MEIWWgz5r/tkinterweb/bindings.py", line 655, in on_image
    image = blankimage(name)
  File "/tmp/_MEIWWgz5r/tkinterweb/imageutils.py", line 136, in blankimage
    image = PhotoImage(image, name=name)
  File "PIL/ImageTk.py", line 129, in __init__
  File "PIL/ImageTk.py", line 183, in paste
  File "PIL/ImageTk.py", line 69, in _pyimagingtkcall
ModuleNotFoundError: No module named 'PIL._tkinter_finder'
Exception in Tkinter callback
Traceback (most recent call last):
  File "PIL/ImageTk.py", line 65, in _pyimagingtkcall
_tkinter.TclError: invalid command name "PyImagingPhoto"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "tkinter/__init__.py", line 1921, in __call__
  File "/tmp/_MEIWWgz5r/tkinterweb/bindings.py", line 655, in on_image
    image = blankimage(name)
  File "/tmp/_MEIWWgz5r/tkinterweb/imageutils.py", line 136, in blankimage
    image = PhotoImage(image, name=name)
  File "PIL/ImageTk.py", line 129, in __init__
  File "PIL/ImageTk.py", line 183, in paste
  File "PIL/ImageTk.py", line 69, in _pyimagingtkcall
ModuleNotFoundError: No module named 'PIL._tkinter_finder'
# repeats a dozen times, maybe number of images in my folder?

Biscuit still works, but if I try to open an image, it simply opens a text editor with no contents (not sure if related).

System Information

  • OS: ArchLinux
  • Python Version: 3.11
  • Biscuit 2.57.0 downloaded from CI artifacts
@pawamoy pawamoy added the bug Something isn't working label Jan 9, 2024
@tomlin7
Copy link
Owner

tomlin7 commented Jan 11, 2024

Thanks for opening an issue on this! otherwise this would've never gotten to my attention. Apparently arch linux installation is missing tcl/tk installation ig, so I will have to modify the build to bundle that as well, will share updates on this.

@tomlin7 tomlin7 added dependencies Related to other python pypi packages used python-error Related to python versions, pypi packages cross-platform-support Related to cross-platform support (Linux, Mac, etc.) labels Jan 12, 2024
@rdbende
Copy link
Contributor

rdbende commented Apr 7, 2024

FYI: most Linux distros don't install tcl/tk by default, but that isn't related.

When you install PIL on Linux, it won't install the ImageTk part that makes it work with tkinter. You need to install it separately, most of the times with the distro's package manager (the package name is python3-pil.imagetk on Debian for example)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cross-platform-support Related to cross-platform support (Linux, Mac, etc.) dependencies Related to other python pypi packages used python-error Related to python versions, pypi packages
Projects
None yet
Development

No branches or pull requests

3 participants