Andereoo/TkinterWeb

drawcleanupcrashcmd is not supported on intel macos

Opened this issue · 0 comments

drawcleanupcrashcmd is not supported on intel (x86-64) macos

Stack trace:

$ python3 -m tkinterweb.__init__
Starting TkinterWeb for 64-bit Darwin with Python 3.12.2.

Traceback (most recent call last):
  File "/Users/temp/venv/lib/python3.12/site-packages/tkinterweb/bindings.py", line 107, in __init__
    tk.Widget.__init__(self, master, "html", cfg, kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/tkinter/__init__.py", line 2648, in __init__
    self.tk.call(
_tkinter.TclError: unknown option "-drawcleanupcrashcmd"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/Users/temp/venv/lib/python3.12/site-packages/tkinterweb/__init__.py", line 85, in <module>
    Demo()
  File "/Users/temp/venv/lib/python3.12/site-packages/tkinterweb/__init__.py", line 72, in __init__
    frame = HtmlFrame(root)
            ^^^^^^^^^^^^^^^
  File "/Users/temp/venv/lib/python3.12/site-packages/tkinterweb/htmlwidgets.py", line 49, in __init__
    self.html = html = TkinterWeb(self, message_func, HtmlFrame)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/temp/venv/lib/python3.12/site-packages/tkinterweb/bindings.py", line 110, in __init__
    tk.Widget.__init__(self, master, "html", cfg, kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/tkinter/__init__.py", line 2648, in __init__
    self.tk.call(
_tkinter.TclError: unknown option "-drawcleanupcrashcmd"

version:

$ pip show tkinterweb
Name: tkinterweb
Version: 3.24.7
Summary: HTML/CSS viewer for Tkinter
Home-page: https://github.com/Andereoo/TkinterWeb
Author: 
Author-email: 
License: MIT
Location: /Users/temp/venv/lib/python3.12/site-packages
Requires: pillow
Required-by: 

Check for drawcleanupcrashcmd in shared libs from TkinterWeb repository

TkinterWeb/tkinterweb/tkhtml $ printf '%s\n' */*Tkhtml*
linux_armv7l/libTkhtml3.0.so
macosx_10_6_x86_64/libTkhtml3.0.dylib
macosx_11_0_arm64/libTkhtml3.0.dylib
manylinux1_i686/libTkhtml3.0.so
manylinux1_x86_64/libTkhtml3.0.so
win32/Tkhtml30.dll
win_amd64/Tkhtml30.dll

TkinterWeb/tkinterweb/tkhtml $ grep -l drawcleanupcrashcmd */*Tkhtml*
linux_armv7l/libTkhtml3.0.so
macosx_11_0_arm64/libTkhtml3.0.dylib
manylinux1_x86_64/libTkhtml3.0.so
win32/Tkhtml30.dll
win_amd64/Tkhtml30.dll