mathoudebine / mathoudebine/turing-smart-screen-python
Cannot run configure.py on Mac
Nobody has claimed this yet.
- Dominant language
- Rich Text Format
- Stars
- 2.3k
- Forks
- 412
- Avg merge
- 21h 10m
- Merged PRs (30d)
- 7
Description
After installing all the dependecies without errors, running
python3 configure.py
result in
flodi@fWork turing-smart-screen-python-3.9.3 % python3 ./configure.py
DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release. Please don't rely on it. Set TK_SILENCE_DEPRECATION=1 to suppress this warning.
Traceback (most recent call last):
File "/Users/flodi/Downloads/turing-smart-screen-python-3.9.3/./configure.py", line 686, in
configurator = TuringConfigWindow()
File "/Users/flodi/Downloads/turing-smart-screen-python-3.9.3/./configure.py", line 181, in init
self.window.iconphoto(True, PhotoImage(file=MAIN_DIRECTORY + "res/icons/monitor-icon-17865/64.png"))
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/tkinter/init.py", line 4064, in init
Image.init(self, 'photo', name, cnf, master, **kw)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/tkinter/init.py", line 4009, in init
self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: couldn't recognize data in image file "/Users/flodi/Downloads/turing-smart-screen-python-3.9.3/res/icons/monitor-icon-17865/64.png"
flodi@fWork turing-smart-screen-python-3.9.3 %
I'm on MacOS 15.3.2 with homebrew 4.5.2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with configure.py, especially the TuringConfigWindow initialization at line 181, and reproduce the issue with python3 configure.py on macOS. Check how res/icons/monitor-icon-17865/64.png is loaded; done means the configuration window starts without the reported TclError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100