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

Unable to start due to invalid app image. #4

Closed
ObscenityIB opened this issue Feb 22, 2024 · 1 comment
Closed

Unable to start due to invalid app image. #4

ObscenityIB opened this issue Feb 22, 2024 · 1 comment

Comments

@ObscenityIB
Copy link

Steps to reproduce:

  • Clone repo
  • Create venv and activate
  • Update pip and install requirements.txt
  • Install tk-8.6.13-2-x86_64 package for libtk 8.6 dependency
  • Run pscoverdl.py or gui.py

Results:

pscoverdl.py

no output, no gui, exits immediately

gui.py

Traceback (most recent call last):
  File "/home/obscenity/DEV/git/pscoverdl/src/gui.py", line 398, in <module>
    app = pscoverdl_gui()
          ^^^^^^^^^^^^^^^
  File "/home/obscenity/DEV/git/pscoverdl/src/gui.py", line 38, in __init__
    self.iconbitmap(icon_path)
  File "/home/obscenity/DEV/git/pscoverdl/src/venv/lib/python3.11/site-packages/customtkinter/windows/ctk_tk.py", line 230, in iconbitmap
    super().wm_iconbitmap(bitmap, default)
  File "/usr/lib/python3.11/tkinter/__init__.py", line 2136, in wm_iconbitmap
    return self.tk.call('wm', 'iconbitmap', self._w, bitmap)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_tkinter.TclError: bitmap "/home/obscenity/DEV/git/pscoverdl/src/app/icon.ico" not defined

Solution:

Use a GIF and not an ICO, and use iconphoto instead of iconbitmap.

@ObscenityIB
Copy link
Author

Fixed by #6, waiting for merge.

@xlenore xlenore closed this as completed Mar 27, 2024
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

2 participants