[Debian-med-packaging] Bug#938447: Python3 issue with Tkinter (Was: Bug#938447: scoary: Python2 removal in sid/bullseye)

Andrey Rahmatullin wrar at debian.org
Fri Sep 13 21:38:01 BST 2019


On Fri, Sep 13, 2019 at 10:04:12PM +0200, Andreas Tille wrote:
> try:
>     ttk
>     Tkinter
> except NameError:
>     sys.exit("Need the following installed: Tkinter, tkFileDialog, ttk")
> 
> 
> I have no idea what the call to tkk is supposed to do 
Checking that the name exists.

> and why it ends up in a NameError.
The name doesn't exist, most likely because one of the ImportErrors
didn't happen. And it didn't happen because you ran 2to3 on code that
already supports both 2 and 3, thus turning the py2 parts into the py3
ones...

-- 
WBR, wRAR
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 894 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20190914/a7a17d98/attachment-0001.sig>


More information about the Debian-med-packaging mailing list