Repository navigation
3.11 build reports missing _tkinter on Ubuntu 18.04 #98973
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Nov 1, 2022 I know that this procedure is not the same as in building guide. I tried to perform steps listed there (edit sources.list, install all mentioned packages), and while _uuid did appear, _tkinter is still reported as missing.
this was due to #31698 -- here's (for example) what
deadsnakesdoes since 18.04 is missing pkg-config information for tkinter: https://github.com/deadsnakes/python3.11/compare/c02751ae7c8c560482523821a221deec09bb2bcb%5E..58af40341824bce58f9d6533e368440c82ce6dc3deadsnakes version reports
checking for stdlib extension module _tkinter... missingtoo thoughOh, ok, they have changes in deb scripts, and I am trying to build with
makedirectly.no it doesn't?
$ python3.11 -c 'import _tkinter' $I tried
TCLTK_CFLAGS="-I/usr/include/tcl8.6" TCLTK_LIBS="-ltcl8.6" ./configure ..., it did not help, configure still reports that libs for tkinter are missing. I guess it's me who is missing something but I can't understand yet what is wrong.that's not the same as my diff above shows
Hm, I took it from your diff
in debian/rules variables are setTCLTK_CFLAGS=-I/usr/include/tcl8.6 TCLTK_LIBS=-ltcl8.6 -ltk8.6and then passed to configure like this
TCLTK_CFLAGS="$(TCLTK_CFLAGS)" TCLTK_LIBS="$(TCLTK_LIBS)" ../configure ...- is it different from what I am doing?oh well i missed
-ltk8.6Reacted by anthony sottile and Tigran AivazianYay, it worked, thanks for pointing to deadsnakes patches.
I don't know if this issue is relevant to CPython or not, what do they say about build support on 18.04? Did not see this information. Not closing just in case.I asked about this when the pkg-config change landed (linked above) -- this is intentional that they no longer support platforms missing proper pkg-config for tkinter
So WONTFIX then, understood, thanks
On Debian/buster (old, ok ...), I needed to say
TCLTK_LIBS="-ltk8.6 -ltkstub8.6 -ltcl8.6" TCLTK_CFLAGS="-I/usr/include/tcl8.6" ./configure ..., which took me a while to figure out ...Reacted by Hauke D, Grammy Jiang, Pieter-Jan Busschaert, Michael John, kprintf, Yucheng Zhu, KardRi, 永格天, 李理, kayos and 3 moreReacted by kayos
Bug report
Python 3.11 build on Ubuntu 18.04 reports
checking for stdlib extension module _tkinter... missingeven if all necessary packages are installed. This does not happen on Ubuntu 20.04, the difference that I noticed is that 20.04 packages include.pcfiles for pkg-config while on 18.04 they are not.Installed packages on 18.04:
Dockerfile,
RUN ./configureeventually prints that _tkinter and _uuid are missingYour environment