my installed MacPorts Python port does not have tkinter
Kenneth Wolcott
kennethwolcott at gmail.com
Sun Dec 1 19:57:12 UTC 2024
my installed MacPorts Python port does not have tkinter
When I try to run a Python script that uses tkinter it fails stating
(something similar to) that the installed version of Python was not
configured for tkinter.
Trying to install tkinter outside of MacPorts has no effect on the problem.
Here is a snippet of a failed execution of a Python script that uses
Tkinter (a Rosetta Code example):
./sierpinski_pentagon.py", line 5 File
"/Users/kwolcott/not_git_master/programming/from_Rosetta_Code/Python/Sierpinski_Pentagon/./sierpinski_pentagon.py",
line 5 from turtle import *
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/turtle.py",
line 101, in <module>
import tkinter as TK
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/tkinter/__init__.py",
line 38, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named '_tkinter'
Thanks,
Ken Wolcott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20241201/b9eea0ea/attachment.htm>
More information about the macports-users
mailing list