• Re: Problems with IDLE in Windows 8.1 and installer x86 Version 3.10.8

    From Eryk Sun@21:1/5 to darkstone@o2online.de on Mon Oct 31 14:18:10 2022
    On 10/31/22, darkstone@o2online.de <darkstone@o2online.de> wrote:

    i uninstalled this, because my Idle doesn’t start by clicking on the Icon. Are there any Solutions for the problem?

    If it's the standard distribution from python.org, run the installer
    again, and ensure that the test suite is installed.

    In 3.10.8, IDLE mistakenly depends on the test suite. This mistake is
    fixed in 3.10.9, which is planned to be released in early December.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eryk Sun@21:1/5 to darkstone@o2online.de on Mon Oct 31 17:00:10 2022
    On 10/31/22, darkstone@o2online.de <darkstone@o2online.de> wrote:

    I installed the Standard Distribution from python.org again, and i ensured, that the checkmark test Suite is enabled. Idle does’nt start. The installer says “Installation successfully” at the end.

    What went wrong and how can I further delimit the fault/find the error?

    Open a command prompt and run the following command:

    py -3.10-32 -m idlelib

    If it fails, an exception and traceback should be printed to the console.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eryk Sun@21:1/5 to darkstone@o2online.de on Tue Nov 1 16:18:32 2022
    On 11/1/22, darkstone@o2online.de <darkstone@o2online.de> wrote:

    **IDLE can’t Import TKINTER

    Python may not be configured for TK**

    Checkmark for TK is set in the Installation Progress. What went wrong and ho can I fix it?

    Run the following command to check whether the ImportError has any
    further information.

    py -3.10-32 -c "from tkinter import *"

    It could be a missing extension module or DLL, or mismatched version.
    You could try modifying the installation to remove tkinter and IDLE,
    and then again to restore it.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eryk Sun@21:1/5 to Nithish Ramasamy on Tue Nov 1 20:40:24 2022
    On 11/1/22, Nithish Ramasamy <nithishramasamy1910@gmail.com> wrote:

    pip install tkinter
    Wait some minutes to install tkinter

    There is no tkinter package on PyPI. It's part of the standard library
    and included with the python.org installer as an optional component.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eryk Sun@21:1/5 to darkstone@o2online.de on Thu Nov 3 16:50:16 2022
    On 11/3/22, darkstone@o2online.de <darkstone@o2online.de> wrote:
    Is there a reason, why it is not installed? Its the same check mark in the installer like IDLE…

    Did you try what I suggested? Modify the installation to remove the tkinter/IDLE component. Then modify it again to select the component
    to be reinstalled. Also, try to repair the installation. This may
    reset any DLLs or extension modules that were missing or that were the
    wrong version.

    Ignore the suggestion from Nithish to install tkinter via pip. tkinter
    is part of the standard library and cannot be installed via pip. There
    is no tkinter package on the Python package index (pypi.org).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Thomas Passin@21:1/5 to darkstone@o2online.de on Wed Nov 9 21:00:04 2022
    On 11/9/2022 7:02 PM, darkstone@o2online.de wrote:
    Is there no one who can help?

    Is there a reason why you tried to install a 32-bit version? Most
    personal computers are 64-bit ones these days. Also, I don't remember if
    you are running Windows or not.

    One problem for getting help from the list is that there have not been
    many details given. "Doesn't start" is not helpful. Are there error
    messages displayed on the terminal? How did you try to start it? Does
    Python run at all?

    A Python installation normally includes a batch file that launches idle.
    This batch file may not be on your path for one reason or another. If
    so, it would not run when you type "idle" at a command line.

    So the first thing to do is to figure out if you have either the Python
    program idle.py or idle.pyw, or the batch file idle.bat (for Windows)
    On Linux Mint, when I typed "idle" at a terminal, I got this message:

    "Command 'idle' not found, but can be installed with:

    sudo apt install idle"

    So that's how you would get it with that flavor of Linux.

    I'm going to walk through what I would probably do if I had the same
    problem on Windows (I'm going to assume that you are running Windows).
    It's a little long to write out, but not really that hard. Basically,
    there are only a few steps:

    1. Find your Python installation;
    2. Look in the installation location to see if the idle program is there;
    3. If it is, try to run it and note any error messages.

    First you need to find out where your Python installation is located on
    your system disk. If you don't know, one way to find out is to run the following command in a console window:

    where /R %USERPROFILE% python.exe

    You may be surprised that there more several ones that you didn't
    expect, such as (on my computer):

    C:\Users\tom\AppData\Local\Microsoft\WindowsApps\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\python.exe

    It seems that Windows has its own Python installation; that's not the
    one you want. You are looking for one that looks like this (with your
    own user name, of course, instead of mine):

    C:\Users\tom\AppData\Local\Programs\Python\Python310\python.exe

    Appdata\Local\Programs is where Python3 usually gets installed. Now we
    know that I have Python 3.10 at
    C:\Users\tom\AppData\Local\Programs\Python. You may be using a
    different version of Python; if so, just use that version instead.

    Idle is normally installed in the directory tree under python. Let's
    call the top of that tree %PYTH0N%. On my system, as we see above, that
    is C:\Users\tom\AppData\Local\Programs\Python\Python310. Idle should be at

    %PYTHON%\Lib\idlelib

    Open Windows explorer, and navigate to that directory. If you have that directory, then you should be able to run idle. If it doesn't exist,
    That's a problem and needs to be fixed, probably by a fresh install of
    Python. If it does, you will see the batch file idle.bat. Double-click
    it, and idle should run. If it does not, see below.

    That's not a convenient way to run idle time after time. Either you
    need to get idle on your path, or perhaps it will be available using the windows Start menu. Check that out by tapping the Windows key, then
    typing "idle" (without the quotes). It may be there. But look closely,
    for it may be the idle associated with a different version of Python
    than the one you want to use. For example, on my system I have Idle in
    the Start Menu, but only for Python 3.7 and not Python 3.10 which is the
    most recent version I have.

    If you double-clicked on the idle batch file but it failed to run, then
    you need to get any error messages. You need to run it from a console
    so you can see any output. Open a console. you want to run idle using
    python and not pythonw (because pythonw will not open a window). So in
    the console, type "python " (without quotes but with the space), then
    the path to the file.

    The path to the file is a lot to type, and it's easier to just drag the
    icon for the file (remember, it's idle.py) into the console window.
    Press the <ENTER> key and idle should run. If it doesn't, note any
    error messages. Then come back here and tell us what they were.

    It's possible that the "where" program didn't find your python
    installation. That would be because it's installed somewhere outside of
    your user tree, like Program Files. You can look again in the entire
    disk (assuming it's on the c: drive, which is almost certainly so):

    where /R c:\% python.exe

    Von: darkstone@o2online.de
    Gesendet: ‎Freitag‎, ‎4‎. ‎November‎ ‎2022 ‎15‎:‎10
    An: Eryk Sun
    Cc: python-list@python.org





    Yes, there is always the message “modified successfull”, “installed sucessfully”, but IDLE does’t start. I tried it with the newer Version, too. Ist 3.11.0 for 32 bit, but it also doesn’t work. Do you have other suggetions, that it works?







    Von: Eryk Sun
    Gesendet: ‎Donnerstag‎, ‎3‎. ‎November‎ ‎2022 ‎22‎:‎50 An: darkstone@o2online.de
    Cc: python-list@python.org





    On 11/3/22, darkstone@o2online.de <darkstone@o2online.de> wrote:
    Is there a reason, why it is not installed? Its the same check mark in the >> installer like IDLE…

    Did you try what I suggested? Modify the installation to remove the tkinter/IDLE component. Then modify it again to select the component
    to be reinstalled. Also, try to repair the installation. This may
    reset any DLLs or extension modules that were missing or that were the
    wrong version.

    Ignore the suggestion from Nithish to install tkinter via pip. tkinter
    is part of the standard library and cannot be installed via pip. There
    is no tkinter package on the Python package index (pypi.org).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dennis Lee Bieber@21:1/5 to All on Wed Nov 9 21:19:25 2022
    On Thu, 10 Nov 2022 00:02:44 +0000, <darkstone@o2online.de> declaimed the following:

    Is there no one who can help?


    Your problem description isn't detailed enough to even guess what you are finding incorrect.

    If you are on Windows, once you've done an install, shove the installer file off into some archive and don't touch it again unless you need to reinstall or repair the existing install.


    Do a search for idle.*

    Windows PowerShell
    Copyright (C) Microsoft Corporation. All rights reserved.

    Try the new cross-platform PowerShell https://aka.ms/pscore6

    PS C:\Users\Wulfraed> Get-ChildItem -Path C:\Python38\ -Recurse -Name
    -Filter "idle.*"
    Lib\idlelib\idle.bat
    Lib\idlelib\idle.py
    Lib\idlelib\idle.pyw
    Lib\idlelib\Icons\idle.ico
    Lib\site-packages\pythonwin\pywin\idle Lib\site-packages\pythonwin\pywin\IDLE.cfg
    PS C:\Users\Wulfraed> type C:\Python38\Lib\idlelib\idle.bat
    @echo off
    rem Start IDLE using the appropriate Python interpreter
    set CURRDIR=%~dp0
    start "IDLE" "%CURRDIR%..\..\pythonw.exe" "%CURRDIR%idle.pyw" %1 %2 %3 %4
    %5 %6 %7 %8 %9
    PS C:\Users\Wulfraed> c:\python38\lib\idlelib\idle.bat

    ... opens something IDLE related (seems to be an interactive Python shell,
    but a configuration item allows setting it to open an edit window instead).

    Interesting -- I could have sworn there was a Python38 entry on the Windows start menu, but I seem to have removed it. I don't use IDLE, and
    that was the primary item in the Python38 entry. I normally use an old
    version of PythonWin (fyi: I'm using an old version of the ActiveState
    Python package). I also have PyCharm installed.


    --
    Wulfraed Dennis Lee Bieber AF6VN
    wlfraed@ix.netcom.com http://wlfraed.microdiversity.freeddns.org/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eryk Sun@21:1/5 to darkstone@o2online.de on Wed Nov 9 21:28:26 2022
    On 11/9/22, darkstone@o2online.de <darkstone@o2online.de> wrote:
    Is there no one who can help?

    If you can't run IDLE via `py -3.10-32 -m idlelib`, then something
    isn't installed properly. You reported an error that IDLE fails to
    load because importing tkinter fails. Did you try `import tkinter` in
    the REPL? tkinter depends on the _tkinter extension module. Try
    `import _tkinter`. If the latter fails because of a missing DLL
    dependency, check the "DLLs" directory in the installation directory
    for the TCL/Tk dependencies. They're "tcl86t.dll" and "tk86t.dll" for
    Python 3.10. The installation directory should also have a "tcl"
    directory, which should contain "tcl8.6" and "tk8.6" directories among
    others, with many .tcl files.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Thomas Passin@21:1/5 to Thomas Passin on Wed Nov 9 23:05:46 2022
    Sorry about the typo at the end. If you need to search the entire disk,
    use this command instead of the one I had in my last post:

    where /R c:\ python.exe

    On 11/9/2022 9:00 PM, Thomas Passin wrote:

    On 11/9/2022 7:02 PM, darkstone@o2online.de wrote:
    Is there no one who can help?

    Is there a reason why you tried to install a 32-bit version?  Most
    personal computers are 64-bit ones these days. Also, I don't remember if
    you are running Windows or not.

    One problem for getting help from the list is that there have not been
    many details given. "Doesn't start" is not helpful.  Are there error messages displayed on the terminal?  How did you try to start it?  Does Python run at all?

    A Python installation normally includes a batch file that launches idle.
     This batch file may not be on your path for one reason or another.  If so, it would not run when you type "idle" at a command line.

    So the first thing to do is to figure out if you have either the Python program idle.py or idle.pyw, or the batch file idle.bat (for Windows) On Linux Mint, when I typed "idle" at a terminal, I got this message:

    "Command 'idle' not found, but can be installed with:

    sudo apt install idle"

    So that's how you would get it with that flavor of Linux.

    I'm going to walk through what I would probably do if I had the same
    problem on Windows (I'm going to assume that you are running Windows).
    It's a little long to write out, but not really that hard.  Basically,
    there are only a few steps:

    1. Find your Python installation;
    2. Look in the installation location to see if the idle program is there; 3.  If it is, try to run it and note any error messages.

    First you need to find out where your Python installation is located on
    your system disk. If you don't know, one way to find out is to run the following command in a console window:

    where /R %USERPROFILE% python.exe

    You may be surprised that there more several ones that you didn't
    expect, such as (on my computer):

    C:\Users\tom\AppData\Local\Microsoft\WindowsApps\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\python.exe

    It seems that Windows has its own Python installation; that's not the
    one you want.  You are looking for one that looks like this (with your
    own user name, of course, instead of mine):

    C:\Users\tom\AppData\Local\Programs\Python\Python310\python.exe

    Appdata\Local\Programs is where Python3 usually gets installed.  Now we
    know that I have Python 3.10 at
    C:\Users\tom\AppData\Local\Programs\Python.  You may be using a
    different version of Python; if so, just use that version instead.

    Idle is normally installed in the directory tree under python.  Let's
    call the top of that tree %PYTH0N%.  On my system, as we see above, that
    is C:\Users\tom\AppData\Local\Programs\Python\Python310.  Idle should be at

    %PYTHON%\Lib\idlelib

    Open Windows explorer, and navigate to that directory. If you have that directory, then you should be able to run idle.  If it doesn't exist,
    That's a problem and needs to be fixed, probably by a fresh install of Python.  If it does, you will see the batch file idle.bat.  Double-click it, and idle should run.  If it does not, see below.

    That's not a convenient way to run idle time after time.  Either you
    need to get idle on your path, or perhaps it will be available using the windows Start menu.  Check that out by tapping the Windows key, then
    typing "idle" (without the quotes).  It may be there.  But look closely, for it may be the idle associated with a different version of Python
    than the one you want to use.  For example, on my system I have Idle in
    the Start Menu, but only for Python 3.7 and not Python 3.10 which is the
    most recent version I have.

    If you double-clicked on the idle batch file but it failed to run, then
    you need to get any error messages.  You need to run it from a console
    so you can see any output.  Open a console. you want to run idle using python and not pythonw (because pythonw will not open a window).  So in
    the console, type "python " (without quotes but with the space), then
    the path to the file.

    The path to the file is a lot to type, and it's easier to just drag the
    icon for the file (remember, it's idle.py) into the console window.
    Press the <ENTER> key and idle should run.  If it doesn't, note any
    error messages.  Then come back here and tell us what they were.

    It's possible that the "where" program didn't find your python installation.  That would be because it's installed somewhere outside of your user tree, like Program Files.  You can look again in the entire
    disk (assuming it's on the c: drive, which is almost certainly so):

    where /R c:\% python.exe

    Von: darkstone@o2online.de
    Gesendet: ‎Freitag‎, ‎4‎. ‎November‎ ‎2022 ‎15‎:‎10
    An: Eryk Sun
    Cc: python-list@python.org





    Yes, there is always the message “modified successfull”, “installed
    sucessfully”, but IDLE does’t start. I tried it with the newer
    Version, too. Ist 3.11.0 for 32 bit, but it also doesn’t work. Do you
    have other suggetions, that it works?







    Von: Eryk Sun
    Gesendet: ‎Donnerstag‎, ‎3‎. ‎November‎ ‎2022 ‎22‎:‎50 >> An: darkstone@o2online.de
    Cc: python-list@python.org





    On 11/3/22, darkstone@o2online.de <darkstone@o2online.de> wrote:
    Is there a reason, why it is not installed? Its the same check mark
    in the
    installer like IDLE…

    Did you try what I suggested? Modify the installation to remove the
    tkinter/IDLE component. Then modify it again to select the component
    to be reinstalled. Also, try to repair the installation. This may
    reset any DLLs or extension modules that were missing or that were the
    wrong version.

    Ignore the suggestion from Nithish to install tkinter via pip. tkinter
    is part of the standard library and cannot be installed via pip. There
    is no tkinter package on the Python package index (pypi.org).


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eryk Sun@21:1/5 to darkstone@o2online.de on Fri Nov 11 16:21:35 2022
    On 11/11/22, darkstone@o2online.de <darkstone@o2online.de> wrote:

    What can I do for the next step to find, why IDLE isn’t working?

    The question is why tkinter isn't working. IDLE not working is just a
    symptom of the underlying problem. In the command prompt, run 32-bit
    Python 3.10 via `py -3.10-32`. In Python's interactive shell, run
    `import _tkinter`. Please paste any resulting traceback and error
    message in your reply to this message.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Thomas Passin@21:1/5 to darkstone@o2online.de on Sat Nov 12 08:42:27 2022
    All right, now let's verify that tk is not there (otherwise it might be
    there but corrupted or not loadable for some reason).

    Open Windows Explorer and navigate it to the Python directory as I
    described in my last message. The navigate to the subdirectory named
    "DLLs". If tkinter is installed, there will be a file named
    "_tkinter.pyd". If that file is missing, then definitely tk isn't
    there. If it is, then it's been installed but something is wrong with
    the install.

    Probably it won't be there, but it's a good idea to check anyway.

    If it's not there, I would suggest installing a different version of
    Python. There might be something wrong with the packaging of that
    particular version, who knows? And I would try a release with a lower
    version if possible, just in case a later one accidentally used some instruction not compatible with your version of Windows 8 (unlikely, but
    just in case it could happen). For example, if you currently have
    Python 3.9.10, try Python 3.8.9. The available releases are all here:

    https://www.python.org/downloads/windows/

    If this works, wonderful! If it does not, I'm out of ideas for the moment.

    On 11/11/2022 4:18 PM, darkstone@o2online.de wrote:
    Hello,

    yes, its a Windows 8.1 with 32 bit. I have found my Installation ordner.

    If I type python

    ** IDLE can't import Tkinter.
    Your Python may not configured for TK. **

    So I tried this:

    import _tkinter
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ImportError: DLL load failed while importing _tkinter: Das angegebene
    Modul wurd
    e nicht gefunden.

    So I it is a tkinter Problem and I tried this:

    import _tkinter
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ImportError: DLL load failed while importing _tkinter: Das angegebene
    Modul wurd
    e nicht gefunden.

    How can I go gon, to make it work?





    *Von:* Thomas Passin <mailto:list1@tompassin.net> *Gesendet:* ‎Donnerstag‎, ‎10‎. ‎November‎ ‎2022 ‎03‎:‎00
    *An:* python-list@python.org <mailto:python-list@python.org>


    On 11/9/2022 7:02 PM, darkstone@o2online.de wrote:
    Is there no one who can help?

    Is there a reason why you tried to install a 32-bit version?  Most
    personal computers are 64-bit ones these days. Also, I don't remember if
    you are running Windows or not.

    One problem for getting help from the list is that there have not been
    many details given. "Doesn't start" is not helpful.  Are there error messages displayed on the terminal?  How did you try to start it?  Does Python run at all?

    A Python installation normally includes a batch file that launches idle.
      This batch file may not be on your path for one reason or another.  If so, it would not run when you type "idle" at a command line.

    So the first thing to do is to figure out if you have either the Python program idle.py or idle.pyw, or the batch file idle.bat (for Windows)
    On Linux Mint, when I typed "idle" at a terminal, I got this message:

    "Command 'idle' not found, but can be installed with:

    sudo apt install idle"

    So that's how you would get it with that flavor of Linux.

    I'm going to walk through what I would probably do if I had the same
    problem on Windows (I'm going to assume that you are running Windows).
    It's a little long to write out, but not really that hard.  Basically,
    there are only a few steps:

    1. Find your Python installation;
    2. Look in the installation location to see if the idle program is there; 3.  If it is, try to run it and note any error messages.

    First you need to find out where your Python installation is located on
    your system disk. If you don't know, one way to find out is to run the following command in a console window:

    where /R %USERPROFILE% python.exe

    You may be surprised that there more several ones that you didn't
    expect, such as (on my computer):

    C:\Users\tom\AppData\Local\Microsoft\WindowsApps\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\python.exe

    It seems that Windows has its own Python installation; that's not the
    one you want.  You are looking for one that looks like this (with your
    own user name, of course, instead of mine):

    C:\Users\tom\AppData\Local\Programs\Python\Python310\python.exe

    Appdata\Local\Programs is where Python3 usually gets installed.  Now we
    know that I have Python 3.10 at
    C:\Users\tom\AppData\Local\Programs\Python.  You may be using a
    different version of Python; if so, just use that version instead.

    Idle is normally installed in the directory tree under python.  Let's
    call the top of that tree %PYTH0N%.  On my system, as we see above, that
    is C:\Users\tom\AppData\Local\Programs\Python\Python310.  Idle should be at

    %PYTHON%\Lib\idlelib

    Open Windows explorer, and navigate to that directory. If you have that directory, then you should be able to run idle.  If it doesn't exist,
    That's a problem and needs to be fixed, probably by a fresh install of Python.  If it does, you will see the batch file idle.bat.  Double-click it, and idle should run.  If it does not, see below.

    That's not a convenient way to run idle time after time.  Either you
    need to get idle on your path, or perhaps it will be available using the windows Start menu.  Check that out by tapping the Windows key, then
    typing "idle" (without the quotes).  It may be there.  But look closely, for it may be the idle associated with a different version of Python
    than the one you want to use.  For example, on my system I have Idle in
    the Start Menu, but only for Python 3.7 and not Python 3.10 which is the
    most recent version I have.

    If you double-clicked on the idle batch file but it failed to run, then
    you need to get any error messages.  You need to run it from a console
    so you can see any output.  Open a console. you want to run idle using python and not pythonw (because pythonw will not open a window).  So in
    the console, type "python " (without quotes but with the space), then
    the path to the file.

    The path to the file is a lot to type, and it's easier to just drag the
    icon for the file (remember, it's idle.py) into the console window.
    Press the <ENTER> key and idle should run.  If it doesn't, note any
    error messages.  Then come back here and tell us what they were.

    It's possible that the "where" program didn't find your python installation.  That would be because it's installed somewhere outside of your user tree, like Program Files.  You can look again in the entire
    disk (assuming it's on the c: drive, which is almost certainly so):

    where /R c:\% python.exe

    Von: darkstone@o2online.de
    Gesendet: ‎Freitag‎, ‎4‎. ‎November‎ ‎2022 ‎15‎:‎10 An: Eryk Sun
    Cc: python-list@python.org





    Yes, there is always the message “modified successfull”, “installed
    sucessfully”, but IDLE does’t start. I tried it with the newer Version, too. Ist 3.11.0 for 32 bit, but it also doesn’t work. Do you have other suggetions, that it works?







    Von: Eryk Sun
    Gesendet: ‎Donnerstag‎, ‎3‎. ‎November‎ ‎2022 ‎22‎:‎50 An: darkstone@o2online.de
    Cc: python-list@python.org





    On 11/3/22, darkstone@o2online.de <darkstone@o2online.de> wrote:
    Is there a reason, why it is not installed? Its the same check mark
    in the
    installer like IDLE…

    Did you try what I suggested? Modify the installation to remove the tkinter/IDLE component. Then modify it again to select the component
    to be reinstalled. Also, try to repair the installation. This may
    reset any DLLs or extension modules that were missing or that were the wrong version.

    Ignore the suggestion from Nithish to install tkinter via pip. tkinter
    is part of the standard library and cannot be installed via pip. There
    is no tkinter package on the Python package index (pypi.org).

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


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Thomas Passin@21:1/5 to darkstone@o2online.de on Sat Nov 12 13:01:11 2022
    On 11/12/2022 11:48 AM, darkstone@o2online.de wrote:
    Hello Thomas,

    there is a “_tkinter.pyd” in the *.dll Directory. Is there something more, I can check?

    Yes, look in the "Lib" (NOT "libs") subdirectory of the Python tree and
    see if it has a subdirectory named "tkinter". That's where it is in my
    own Python installations. If it's there check to see if it actually has anything in it.

    Probably it will be populated. The next thing would to see if we can
    work out what's going wrong.

    As long as you are in the LIB directory, check and see if it has a
    subdirectory named "idlelib". If it does, try to run its self-tests**.
    In a console window, type the following command:

    python -m idlelib.idle_test.htest

    If it works, there it will put up a succession of little Tk dialogs and windows. If you get any of them, you can cancel out of it, since you
    won't need to run dozens of little self-tests.

    NOTE - on your system, the command "python" might run Python 2.7 instead
    of Python 3.x. So use the right name for your version of Python - or
    use "py" (no quotes), which recent Python installers set up so you
    probably have it. BTW, what version(s) of Python do you have installed?
    If you said in a previous post, I don't recall. You can check what
    version is running when you use the name "python" by using this command
    line (Note the upper-case "V"):

    python -V


    ** I found out about this self-test command line because I noticed a
    file README.txt in the idlelib\idle_test subdirectory, and read it. It
    pays to be curious and nosy when trying to work out computer problems.

    *Von:* Thomas Passin <mailto:list1@tompassin.net>
    *Gesendet:* ‎Samstag‎, ‎12‎. ‎November‎ ‎2022 ‎14‎:‎42 *An:* darkstone@o2online.de <mailto:darkstone@o2online.de>
    *Cc:* python-list@python.org <mailto:python-list@python.org>

    All right, now let's verify that tk is not there (otherwise it might be
    there but corrupted or not loadable for some reason).

    Open Windows Explorer and navigate it to the Python directory as I
    described in my last message. The navigate to the subdirectory named "DLLs".  If tkinter is installed, there will be a file named "_tkinter.pyd".  If that file is missing, then definitely tk isn't
    there.  If it is, then it's been installed but something is wrong with
    the install.

    Probably it won't be there, but it's a good idea to check anyway.

    If it's not there, I would suggest installing a different version of Python.  There might be something wrong with the packaging of that particular version, who knows?  And I would try a release with a lower version if possible, just in case a later one accidentally used some instruction not compatible with your version of Windows 8 (unlikely, but
    just in case it could happen).  For example, if you currently have
    Python 3.9.10, try Python 3.8.9.  The available releases are all here:

    https://www.python.org/downloads/windows/

    If this works, wonderful!  If it does not, I'm out of ideas for the moment.

    On 11/11/2022 4:18 PM, darkstone@o2online.de wrote:
    Hello,

    yes, its a Windows 8.1 with 32 bit. I have found my Installation ordner.

    If I type python

    ** IDLE can't import Tkinter.
    Your Python may not configured for TK. **

    So I tried this:

      >>> import _tkinter
    Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
    ImportError: DLL load failed while importing _tkinter: Das angegebene Modul wurd
    e nicht gefunden.

    So I it is a tkinter Problem and I tried this:

      >>> import _tkinter
    Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
    ImportError: DLL load failed while importing _tkinter: Das angegebene Modul wurd
    e nicht gefunden.

    How can I go gon, to make it work?





    *Von:* Thomas Passin <mailto:list1@tompassin.net> *Gesendet:* ‎Donnerstag‎, ‎10‎. ‎November‎ ‎2022 ‎03‎:‎00
    *An:* python-list@python.org <mailto:python-list@python.org>


    On 11/9/2022 7:02 PM, darkstone@o2online.de wrote:
      > Is there no one who can help?

    Is there a reason why you tried to install a 32-bit version?  Most personal computers are 64-bit ones these days. Also, I don't remember if you are running Windows or not.

    One problem for getting help from the list is that there have not been many details given. "Doesn't start" is not helpful.  Are there error messages displayed on the terminal?  How did you try to start it?  Does Python run at all?

    A Python installation normally includes a batch file that launches idle.
        This batch file may not be on your path for one reason or another.  If
    so, it would not run when you type "idle" at a command line.

    So the first thing to do is to figure out if you have either the Python program idle.py or idle.pyw, or the batch file idle.bat (for Windows)
    On Linux Mint, when I typed "idle" at a terminal, I got this message:

    "Command 'idle' not found, but can be installed with:

    sudo apt install idle"

    So that's how you would get it with that flavor of Linux.

    I'm going to walk through what I would probably do if I had the same problem on Windows (I'm going to assume that you are running Windows). It's a little long to write out, but not really that hard.  Basically, there are only a few steps:

    1. Find your Python installation;
    2. Look in the installation location to see if the idle program is there; 3.  If it is, try to run it and note any error messages.

    First you need to find out where your Python installation is located on your system disk. If you don't know, one way to find out is to run the following command in a console window:

    where /R %USERPROFILE% python.exe

    You may be surprised that there more several ones that you didn't
    expect, such as (on my computer):


    C:\Users\tom\AppData\Local\Microsoft\WindowsApps\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\python.exe

    It seems that Windows has its own Python installation; that's not the
    one you want.  You are looking for one that looks like this (with your own user name, of course, instead of mine):

    C:\Users\tom\AppData\Local\Programs\Python\Python310\python.exe

    Appdata\Local\Programs is where Python3 usually gets installed.  Now we know that I have Python 3.10 at C:\Users\tom\AppData\Local\Programs\Python.  You may be using a
    different version of Python; if so, just use that version instead.

    Idle is normally installed in the directory tree under python.  Let's call the top of that tree %PYTH0N%.  On my system, as we see above, that is C:\Users\tom\AppData\Local\Programs\Python\Python310.  Idle should
    be at

    %PYTHON%\Lib\idlelib

    Open Windows explorer, and navigate to that directory. If you have that directory, then you should be able to run idle.  If it doesn't exist, That's a problem and needs to be fixed, probably by a fresh install of Python.  If it does, you will see the batch file idle.bat.  Double-click it, and idle should run.  If it does not, see below.

    That's not a convenient way to run idle time after time.  Either you
    need to get idle on your path, or perhaps it will be available using the windows Start menu.  Check that out by tapping the Windows key, then typing "idle" (without the quotes).  It may be there.  But look closely, for it may be the idle associated with a different version of Python
    than the one you want to use.  For example, on my system I have Idle in the Start Menu, but only for Python 3.7 and not Python 3.10 which is the most recent version I have.

    If you double-clicked on the idle batch file but it failed to run, then you need to get any error messages.  You need to run it from a console
    so you can see any output.  Open a console. you want to run idle using python and not pythonw (because pythonw will not open a window).  So in the console, type "python " (without quotes but with the space), then
    the path to the file.

    The path to the file is a lot to type, and it's easier to just drag the icon for the file (remember, it's idle.py) into the console window.
    Press the <ENTER> key and idle should run.  If it doesn't, note any
    error messages.  Then come back here and tell us what they were.

    It's possible that the "where" program didn't find your python installation.  That would be because it's installed somewhere outside of your user tree, like Program Files.  You can look again in the entire disk (assuming it's on the c: drive, which is almost certainly so):

    where /R c:\% python.exe

      > Von: darkstone@o2online.de
      > Gesendet: ‎Freitag‎, ‎4‎. ‎November‎ ‎2022 ‎15‎:‎10
      > An: Eryk Sun
      > Cc: python-list@python.org
      >
      >
      >
      >
      >
      > Yes, there is always the message “modified successfull”, “installed
    sucessfully”, but IDLE does’t start. I tried it with the newer Version,
    too. Ist 3.11.0 for 32 bit, but it also doesn’t work. Do you have other suggetions, that it works?
      >
      >
      >
      >
      >
      >
      >
      > Von: Eryk Sun
      > Gesendet: ‎Donnerstag‎, ‎3‎. ‎November‎ ‎2022 ‎22‎:‎50
      > An: darkstone@o2online.de
      > Cc: python-list@python.org
      >
      >
      >
      >
      >
      > On 11/3/22, darkstone@o2online.de <darkstone@o2online.de> wrote:
      >> Is there a reason, why it is not installed? Its the same check mark
    in the
      >> installer like IDLE…
      >
      > Did you try what I suggested? Modify the installation to remove the
      > tkinter/IDLE component. Then modify it again to select the component
      > to be reinstalled. Also, try to repair the installation. This may
      > reset any DLLs or extension modules that were missing or that were the
      > wrong version.
      >
      > Ignore the suggestion from Nithish to install tkinter via pip. tkinter
      > is part of the standard library and cannot be installed via pip. There
      > is no tkinter package on the Python package index (pypi.org).

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



    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eryk Sun@21:1/5 to darkstone@o2online.de on Sat Nov 12 13:47:00 2022
    On 11/12/22, darkstone@o2online.de <darkstone@o2online.de> wrote:

    import _tkinter
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    ImportError: DLL load failed while importing _tkinter: Das angegebene Modul wurd
    e nicht gefunden.

    Loading the extension module "_tkinter.pyd" tries to load two TCL/Tk
    DLL files that should be in the same directory: "tcl86t.dll" and
    "tk86t.dll". Previously I asked you to look for these two files, and
    you said they were there, but maybe one is corrupt.

    Please try the following in the interactive shell:

    import os, sys, ctypes
    tcl86 = os.path.join(sys.prefix, 'DLLs', 'tcl86t.dll')
    tk86 = os.path.join(sys.prefix, 'DLLs', 'tk86t.dll')

    Run the following two statements one after the other in the shell:

    ctypes.CDLL(tcl86)
    ctypes.CDLL(tk86)

    Either or both will fail if the DLL or one of its dependencies can't
    be found or loaded.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)