TclError: Can't find a usable init.tcl in the following directories:

riso riso at softstar.net.cn
Thu Jan 23 10:45:45 EST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I reinstall tcl (use rpm -ivh tcl-8.3.3-21mdk.rpm), but the error exist...
So, I "locate" the file "init.tcl", it seems the file`s location is right:
[riso at riso-nb client]$ locate init.tcl
/usr/share/tuxracer/courses/common/courseinit.tcl
/usr/share/tuxracer/tuxracer_init.tcl
/usr/lib/tcl8.3/init.tcl                                 <== here
/usr/lib/pentaxpj/BWidget-1.3.1/init.tcl

Why python/tkinter can`t find init.tcl?

thanks.

Nicolas Boretos wrote:
> riso wrote:
> > When I run IDLE , I get the following error:
> >
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.2/site-packages/idle/idle.py", line 4, in ?
> >     PyShell.main()
> >   File "/usr/lib/python2.2/site-packages/idle/PyShell.py", line 747, in
> > main root = Tk(className="Idle")
> >   File "/usr/lib/python2.2/lib-tk/Tkinter.py", line 1487, in __init__
> >     self.tk = _tkinter.create(screenName, baseName, className)
> > TclError: Can't find a usable init.tcl in the following directories:
> >     /usr/lib/tcl8.3
> >
> > I use Mandrake Rpms: (Mandrake 9.0)
> > tcl-8.3.3-21mdk.rpm
> > tk-8.3.3-21mdk.rpm
> > tkinter-2.2.1-14.2mdk.rpm
> > python-2.2.1-14.2mdk.rpm
> >
> > I can`t find how to set the tkinter search path, can someone tell me how
> > to resolve these errors?
> >
> > Thanks
>
> Hi,
>
> This error is usually due to an "incomplete", or non-standard
> installation. Did you compile tcl yourself, if so, make install puts
> things in the right places.
>
> regards,
> nicolas boretos
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+MA421y4kFiS1f1ARAuoXAKCVSZ2h49fvd2p7SDkXTmMr5xGaqgCfUDeg
95sBg4uJajEim0eqkzZCd9U=
=jnng
-----END PGP SIGNATURE-----






More information about the Python-list mailing list