You have to install it using the package manager.  Here is what I have 
found (quoted from the Users' Guide for my GF4 project)::

"On Debian/Ubuntu, tkinter has to be installed by 
the package manager:

    sudo apt-get install python3-tk

This may also be the case with some non-Debian systems.
The package manager command will be different.  For the Yum package manager 
(you might have to use sudo, su root, or its equivalent to get 
administrative
permissions):

    yum install tkinter

You may also need to install ImageTk.  On Debian-based systems:

    sudo apt-get install python3-pil.imagetk

On CentOS/RHEL, the PIL-related packages to install with the package 
manager 
are (*pillow* has replaced the older *PIL* imaging library):

    python3-pillow
    python3-pillow-tk"

But if it's the curses gui, why does it need tkinter?  That seems strange.
On Wednesday, December 28, 2022 at 5:15:32 AM UTC-5 [email protected] 
wrote:

> Hello Edward,
>
> When I run the unit tests for the latest version of the devel branch, I 
> receive the following error:
>
> ###
>
>     ======================================================================
>     ERROR: test_cursesGui2 (leo.unittests.test_plugins.TestPlugins)
>     ----------------------------------------------------------------------
>     Traceback (most recent call last):
>       File 
> "/home/user/PyVE/GitHub/Leo/leo-editor/leo/unittests/test_plugins.py", line 
> 114, in test_cursesGui2
>         import leo.plugins.cursesGui2 as cursesGui2
>       File 
> "/home/user/PyVE/GitHub/Leo/leo-editor/leo/plugins/cursesGui2.py", line 50, 
> in <module>
>         from tkinter import Tk
>     ModuleNotFoundError: No module named 'tkinter'
>
>     ----------------------------------------------------------------------
>     Ran 941 tests in 7.309s
>
>     FAILED (errors=1, skipped=3)
>     (Leo) user@debian-leo-study-vm:~/PyVE/GitHub/Leo/leo-editor$ 
>
> ###
>
> This happens in a Debian 11 - as well as - a Fedora 36 VM.
>
> With kind regards,
>
> Viktor
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/0b9181e8-b798-4abe-bdd9-031c43fa61ebn%40googlegroups.com.

Reply via email to