[Python-bugs-list] [ python-Bugs-814654 ] 'import Tkinter' causes windows missing-DLL popup

SourceForge.net noreply at sourceforge.net
Sun Oct 5 12:44:56 EDT 2003


Bugs item #814654, was opened at 2003-09-29 15:01
Message generated for change (Comment added) made by tjreedy
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=814654&group_id=5470

Category: Tkinter
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Cory Dodt (xant)
Assigned to: Martin v. Löwis (loewis)
Summary: 'import Tkinter' causes windows missing-DLL popup

Initial Comment:
Python.org's official windows installer makes

installing Tkinter optional; there is a component you

can uncheck during installation.  If this box is

unchecked, tk84.dll and friends are not installed but

Tkinter.py, _tkinter.pyd and a few others are installed.



This makes it difficult to write code that does:



.try:

.    import Tkinter

.except ImportError:

.    # fallback to textmode operation





When 'import Tkinter' executes on Windows, Windows

attempts to load tk84.dll, and the result is a popup

error saying

.    "The dynamic link library tk84.dll could not be

found in the specified path (...my system path...)"



I recommend that Tkinter.py and friends not be

installed when that box is unchecked, since they can't

do anything useful anyway.

----------------------------------------------------------------------

Comment By: Terry J. Reedy (tjreedy)
Date: 2003-10-05 12:44

Message:
Logged In: YES 
user_id=593130

I believe that one reason to uncheck the load tk84 box is if 

one already has it loaded and running.  If so, not loading 

Tkinter.py is exactly the wrong thing to do, and the needed 

fix is for the Tkinter import to somehow catch the Windows 

error (no idea how) and convert it to Python ImportError.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=814654&group_id=5470



More information about the Python-bugs-list mailing list