Re: Python 3.11.0 installation and Tkinter does not work

2022-11-22 Thread Mats Wichmann

On 11/21/22 14:41, Thomas Passin wrote:

On 11/21/2022 1:24 PM, Stefan Ram wrote:

[email protected] writes:

import _tkinter


   I don't know why you get this error message. Here, I do not
   get an error message from that line. However, the normal way
   to use tkinter, as far as I know, is without the underscore!


You can import both tkinter and _tkinter, though I'm not sure why you 
would do the latter for any normal programming.


No, but it's often the advice given when things are not working - see if 
the underlying tkinter module can be imported, to verify it's actually 
findable, so not surprised to see someone trying it.


--
https://mail.python.org/mailman/listinfo/python-list


Re: Python 3.11.0 installation and Tkinter does not work

2022-11-22 Thread Barry


> On 22 Nov 2022, at 16:09, [email protected] wrote:
> 
> [email protected] writes:
>>> ImportError: DLL load failed while importing _tkinter: Das angegebene
>>> Modul wurde nicht gefunden.
> 
>  If you have not already done so, make sure that you install
>  Python from python.org.
> 
>  Then, after the installation, you also should make sure that
>  you actually use this installed version.
> 
> import sys
> sys.version_info
> import tkinter
> 
>  It is possible that you have installed a different version
>  of Python before and accidentally have opened that version,
>  which may not include tkinter.

In which case the error is module not found.
The error reported suggests that a dll that _tkinter needs is missing.

Barry

> 
> 
> -- 
> https://mail.python.org/mailman/listinfo/python-list
> 

-- 
https://mail.python.org/mailman/listinfo/python-list