[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: UVR5 not working after upgrade to Debian 13



On Thu, 14 Aug 2025 at 02:03, Max Nikulin <manikulin@gmail.com> wrote:
> On 14/08/2025 07:30, Greg Wooledge wrote:
> > On Thu, Aug 14, 2025 at 05:57:27 +0700, Budi Janto wrote:

> >>>>>>        from tkinter import tix
> >>>>>> ImportError: cannot import name 'tix' from 'tkinter'
> >>>>>> (/usr/lib/python3.13/tkinter/__init__.py)

> >> There is no clue of the package named tix.

> > Try installing tix.  See if you still get the same error.

> Bookworm:
> <https://packages.debian.org/bookworm/amd64/python3-tk/filelist>
>
> /usr/lib/python3.11/tkinter/tix.py
>
> Trixie
> <https://packages.debian.org/trixie/amd64/python3.13-tk/filelist>
>
> no tix.py any more. I do not see anything suitable in file search
>
> <https://packages.debian.org/search?suite=trixie&searchon=contents&keywords=tix.py>

As we can see in the lines from Max Nikulin, Bookworm ships Python 3.11
and Trixie ships Python 3.13.

The Python documentation "Whats New In Python 3.13" [1] says:
  Remove the tkinter.tix module (deprecated in Python 3.6)

So if Python has removed the module from 3.13 then it cannot be in
any Trixie package of Python 3.13, or any future package.

Budi Janto could consider installing an older version of Python alongside
the Debian version.

See [2] for experienced Python users writing that it is possible to have
multiple different minor 3.X version installed on the same machine, by
installing them directly into a location where they do not conflict with the
distro packages, using so called "virtual environment" which I gather just
means auto-fiddling with the various search path settings that Python
cares about to find its associated modules.

However I imagine it would be tricky to get this working with tkinter,
because tkinter is just an interface to Tcl/Tk. So this would require
to install a matching Tcl/Tk as well, also taking care that it too does
not conflict with Debian's package install of Tcl/Tk.

[1] https://docs.python.org/3/whatsnew/3.13.html
[2] https://discuss.python.org/t/managing-multiple-python-version-without-any-tool


Reply to: