Python 2.4 Tix failing on Windows XP

J

j vickroy

Hello,

I've just installed (accepted all installation defaults) Python 2.4 (final)
import sys
sys.version '2.4 (#60, Nov 30 2004, 11:49:19) [MSC v.1310 32 bit (Intel)]'
import Tix
root = Tix.Tk()
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python24\lib\lib-tk\Tix.py", line 210, in __init__
self.tk.eval('package require Tix')
TclError: couldn't load library "tix8184.dll": this library or a dependent
library could not be found in library path
import os
os.environ['TIX_LIBRARY'] 'C:\\Python24\\tcl\\tix8.1'


"tix8184.dll" is definitely not in the 'C:\Python24\tcl\tix8.1' folder; its
in the 'C:\Python24\DLLs' folder. I placed a copy of "tix8184.dll" in the
'C:\Python24\tcl\tix8.1' folder, but I still get the same error.

I next tried:
os.environ['TIX_LIBRARY'] = 'C:\\Python24\\DLLs'

but I still get the same error.

Could someone tell me what I am doing incorrectly?

Thanks.
 
M

Michael Auerswald

j said:
Could someone tell me what I am doing incorrectly?

All I can tell you is that I have the exact same problem (which I did
not have with 2.3).
Not much of a help, I know...
 
M

Michael Auerswald

Ok, problem solved, more or less. What happens is that Tcl isnt looking
for the Tix DLL along the python path nor is it looking along the
os.environ path, but instead it just checks the normal Windows path. So,
if your add python24\DLLs to your path the error is gone.

Strangely enough the whole problem only turns up inside PythonWin,
whereas if I try it from the command line everything works fine.

Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top