% cat > test.py << EOF
heredoc> import tkinter
heredoc> EOF
% ./python3 test.py
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/test.py", line 1, in <module>
import tkinter
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/__init__.py", line 37, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/lib-dynload/_tkinter.cpython-39-darwin.so, 2): Symbol not found: _NSMenuDidBeginTrackingNotification
Referenced from: /Library/Frameworks/Python.framework/Versions/3.9/lib/libtk8.6.dylib
Expected in: /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
in /Library/Frameworks/Python.framework/Versions/3.9/lib/libtk8.6.dylib
Expected Result Python3 Idle3 is work.
Actual Result Try run './idle3', found:
Steps To Reproduce
System Information
Unit Test