FAQ
----- Original Message -----
From: "Bjorke" <bjorke at botzilla.com>
Newsgroups: comp.lang.python
To: <python-list at python.org>
Sent: Thursday, March 23, 2000 2:09 AM
Subject: Tkinter (Win98) Bombs but Tcl/Tk is OK

I've got two Win machines, with identical vrsions of Tcl/Tk and Python.
The Win98 laptop fails to run tkinter -- i can do this:

import _tkinter
import Tkinter

no problem, but when I hit

Tkinter._test()

it fails (as do all Tkinter programs), bombing in _tkinter.create()
saying:

TclError: Can't find a usable init.tcl in the following directories:
() ./lib/tcl8.0 C:/tcl8.0/library {C:/Program Files/library}

Where is it getting this? I have tcl installed in C:\Program Files\Tcl
and it works flawlessly. I've uninstalled, re-installed, changed
installation ordering, made sure that the autoexec paths are correct...
???

As I say, Tcl/Tk DOES work fine -- I use it for development on that
laptop regularly, and the Tcl version is a new one
Does it work with version 8.0.5 that comes with the Win installer?

Search Discussions

  • Jide2time at Mar 24, 2000 at 12:32 pm
    You probably have old versions of the tcl80.dll and tk80.dll sitting in
    the C:/Windows/System area. Windows (certainly win95) searches this
    area for dLLs first, and will try and use those dlls instead of the
    ones that come with your Tcl/Tk distribution. If you delete the ones
    in your C:/Windosw/System area, the problem should be fixed...

    I had a similar problem on Win95, and got a fix after writing in to
    this newsgroup - This is my first chance to pass the knowledge on :-)


    In article <01a101bf9534$df0a5ea0$933dfc80 at fredicus>,
    "David Fisher" wrote:
    ----- Original Message -----
    From: "Bjorke" <bjorke at botzilla.com>
    Newsgroups: comp.lang.python
    To: <python-list at python.org>
    Sent: Thursday, March 23, 2000 2:09 AM
    Subject: Tkinter (Win98) Bombs but Tcl/Tk is OK
    I've got two Win machines, with identical vrsions of Tcl/Tk and
    Python.
    The Win98 laptop fails to run tkinter -- i can do this:

    import _tkinter
    import Tkinter

    no problem, but when I hit

    Tkinter._test()

    it fails (as do all Tkinter programs), bombing in _tkinter.create()
    saying:

    TclError: Can't find a usable init.tcl in the following directories:
    () ./lib/tcl8.0 C:/tcl8.0/library {C:/Program Files/library}

    Where is it getting this? I have tcl installed in C:\Program
    Files\Tcl
    and it works flawlessly. I've uninstalled, re-installed, changed
    installation ordering, made sure that the autoexec paths are
    correct...
    ???

    As I say, Tcl/Tk DOES work fine -- I use it for development on that
    laptop regularly, and the Tcl version is a new one
    Does it work with version 8.0.5 that comes with the Win installer?

    Sent via Deja.com http://www.deja.com/
    Before you buy.
  • Bjorke at Mar 26, 2000 at 7:53 am
    In article <8bfn87$gh9$1 at nnrp1.deja.com>,
    jide2time at my-deja.com wrote:
    You probably have old versions of the tcl80.dll and tk80.dll sitting in
    the C:/Windows/System area.
    Perfect! That was exactly it, thanks. The rogue TCL80.DLL was
    mysteriously much older than the laptop itself :)

    -----------

    kb
    LT Supv
    Final Fantasy
    http://www.finalfantasy.com/


    Sent via Deja.com http://www.deja.com/
    Before you buy.
  • Fredrik Lundh at Mar 27, 2000 at 9:32 pm

    Bjorke wrote:
    I've got two Win machines, with identical vrsions of Tcl/Tk and Python.
    The Win98 laptop fails to run tkinter -- i can do this:

    import _tkinter
    import Tkinter

    no problem, but when I hit

    Tkinter._test()

    it fails (as do all Tkinter programs), bombing in _tkinter.create()
    saying:

    TclError: Can't find a usable init.tcl in the following directories:
    this might help:
    http://www.pythonware.com/people/fredrik/fyi/fyi02.htm

    </F>

    <!-- (the eff-bot guide to) the standard python library:
    http://www.pythonware.com/people/fredrik/librarybook.htm
    -->

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedMar 24, '00 at 2:00a
activeMar 27, '00 at 9:32p
posts4
users4
websitepython.org

People

Translate

site design / logo © 2022 Grokbase