Problem with Tkinter

news.easynews.com chrisDOTplachta at teknovusDOTcom
Tue Apr 8 19:55:30 EDT 2003


I just managed to get Python configured to run with TK. I am running 
Python 2.2.2 with TCL/TK 8.3.5 on Redhat linux 8.0.

When I try to run the recommended TK test, I get the following error:


[chrisp at tampa /home/chrisp]% python
Python 2.2.2 (#1, Apr  8 2003, 15:21:03)
[GCC 3.2 20020903 (Red Hat Linux 8.0 3.2-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import Tkinter
 >>> Tkinter._test()
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/usr/local/src/Python-2.2.2/Lib/lib-tk/Tkinter.py", line 3099, 
in _test
     "iso-8859-1")
LookupError: no codec search functions registered: can't find encoding
 >>>

Any ideas or suggestions would be greatly appreciated.

Chris Plachta



Here is my PYTHONPATH variable setting:


 > echo $PYTHONPATH
/usr/local/src/Python-2.2.2/Lib:\
/usr/local/src/Python-2.2.2/Lib/lib-tk:\
/usr/local/src/Python-2.2.2/Lib/compiler:\
/usr/local/src/Python-2.2.2/Lib/curses:\
/usr/local/src/Python-2.2.2/Lib/distutils:\
/usr/local/src/Python-2.2.2/Lib/email:\
/usr/local/src/Python-2.2.2/Lib/encodings:\
/usr/local/src/Python-2.2.2/Lib/hotshot:\
/usr/local/src/Python-2.2.2/Lib/lib-old:\
/usr/local/src/Python-2.2.2/Lib/lib-tk:\
/usr/local/src/Python-2.2.2/Lib/plat-linux2





More information about the Python-list mailing list