[issue45002] won't match correct version of tcl/tk

Ned Deily report at bugs.python.org
Wed Aug 25 22:26:18 EDT 2021


Ned Deily <nad at python.org> added the comment:

It is difficult to offer suggestions based on minimal information. You may be running into an arch mismatch: since you are requesting a universal2 build (x86_64 and arm64), all the third-party libraries your build links with must also be built with both architectures. Or it still could be a mismatched path problem. You can use the otool -L command I suggested before on the renamed _tkinter.so file left in your build/lib.macosx-11.5-universal2-3.11 directory to determine what path to the Tcl and Tk libraries it is using; it should be an absolute path to the Homebrew libraries.  You can also use the "file" command on the _tkinter file and on the Tcl and Tk library files to determine which archs are present in each. If this is your first attempt at building Python on macOS, I suggest you start with a simpler ./configure command and then consider adding other options after you have that working. To start with you should only need something like:

./configure --prefix=... --with-openssl=... --with-tcltk-includes=... --with-tcltk-libs=...

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45002>
_______________________________________


More information about the Python-bugs-list mailing list