j4321 / tkColorPicker

Color picker dialog for Tkinter, alternative to tkinter.colorchooser
https://pypi.python.org/pypi/tkcolorpicker
GNU General Public License v3.0
19 stars 7 forks source link

macOS Sonoma app quits immediately #12

Open tmstiller opened 2 months ago

tmstiller commented 2 months ago

Mac OSX (14.6.1 (23G93)) app was built with pyinstaller (6.10.0) using tkcolorpicker quits immediately but launches successfully when built using tkinter.colorchooser. Analysis of launch failure yields: Traceback (most recent call last): File "color_swatch.py", line 5, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller/loader/pyimod02_importers.py", line 378, in exec_module File "tkcolorpicker/init.py", line 21, in

File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller/loader/pyimod02_importers.py", line 378, in exec_module File "tkcolorpicker/colorpicker.py", line 43, in TypeError: 'NoneType' object is not subscriptable

tmstiller commented 2 months ago

Made local copy of the tkcolorpicker code and changed the tkcolorpicker module, line 42, exception from "ValueError" to "TypeError" and recompiled.

Issue resolved