1.5.2 NT install question(s)

David Oppenheimer davidopp at megsinet.net
Tue Sep 7 20:23:59 EDT 1999


I would strongly recommend installing Python in a pathway without spaces, as
recommended by Robert Kern.  Additionally the following may help:

It can't find the module because it's not on the PYTHONPATH.  Execute this
python code to see what directories are in your PYTHONPATH:

At a python command line:

>>> import sys
>>> print sys.path

To fix it add this to your autoexec.bat:

set PYTHONPATH=c:\Tcl\bin

(This is after you go back and install Tcl to the pathway C:\)

or add the directory to the value in the Registry at

HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\1.5\PythonPath

or as a subkey.

Hope that helps,

David Oppenheimer

Mark Jackson wrote:

> I've done this twice recently and encountered problems both times.
>
> On a fresh system (never had Python or Tcl/Tk) things (for example,
> PySol) seem to work, but whenever I use Tkinter (specifically, when
> _tkinter is imported) I get a warning box about not being able to find
> tcl80.dll in the specified path.  (tcl80.dll is present, in Program
> Files\Tcl\bin.) What's wrong, and how do I put it right?
>
> On a system where 1.5.1 (with Tcl/Tk) had previously been installed, I
> carefully uninstalled both before installing 1.5.2.  Here both "import
> _tkinter" and "inport Tkinter" are OK, but Tkinter._test() yields:
>
>     TclError: Can't find a usable init.tcl in the following directories:
>         {} ./lib/tcl8.0 D:/tc18.0/library {D:/Program Files/library}
>
>     This probably means that Tcl wasn't installed properly.
>
> (init.tcl is present, in Program Files\Tcl\lib\tcl8.0.)  What's wrong,
> and how do I put it right?
>
> Thanks in advance.  Sorry to be asking such trivial-seeming questions,
> but I found nothing helpful through python.org.  And I haven't dealt
> with the innards of NT enough for its design coherence to become
> manifest (yeah, right).
>
> --
> Mark Jackson - http://www.alumni.caltech.edu/~mjackson
>         Spend the optimal amount of time on each decision
>         and pretty soon you run out of life.
>                                 - Steven Waldman





More information about the Python-list mailing list