Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
Type "help", "copyright", "credits" or "license" for more information.

Dear Steven D'Aprano

I am most grateful for you directing me towards the file "graphics.py." I was able to download the file and inserted a copy into the directory containing Python. So far so good. I then run WIngIDE and typed "import python" into the editor followed by run in the Python shell. Below is a copy of the error message. It seems that files related to tkinter are not properly installed including Tcl. Can you please give me advice on how to correct this.

Below I have copied the full details of the message from Python and below that the details of my system.\:
>>>>>>>>>
import graphics
Traceback (most recent call last):
File "C:\Program Files (x86)\Wing_IDLE_PYTHON\Wing IDE 101 4.1\src\debug\tserver\_sandbox.py", line 1, in <module>
    # Used internally for debug sandbox under external interpreter
  File "C:\Program Files (x86)\graphics.py", line 168, in <module>
    _root = tk.Tk()
File "C:\Program Files (x86)\Lib\tkinter\__init__.py", line 1674, in __init__ self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
{C:\Program Files (x86)\tcl\tcl8.5} {C:/Program Files (x86)/lib/tcl8.5} C:/lib/tcl8.5 C:/lib/tcl8.5 C:/library C:/library C:/tcl8.5.9/library C:/tcl8.5.9/library

C:/Program Files (x86)/tcl/tcl8.5/init.tcl: version conflict for package "Tcl": have 8.5.9, need exactly 8.5.2
version conflict for package "Tcl": have 8.5.9, need exactly 8.5.2
    while executing
"package require -exact Tcl 8.5.2"
    (file "C:/Program Files (x86)/tcl/tcl8.5/init.tcl" line 20)
    invoked from within
"source {C:/Program Files (x86)/tcl/tcl8.5/init.tcl}"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list source $tclfile]"


This probably means that Tcl wasn't installed properly.

>>>>>>
System Information report written at: 09/19/10 18:02:13
System Name: IVOR-PC
[System Summary]

Item    Value
OS Name Microsoft Windows 7 Professional
Version 6.1.7600 Build 7600
Other OS Description    Not Available
OS Manufacturer Microsoft Corporation
System Name     IVOR-PC
System Manufacturer     MSI
System Model    MS-7636
System Type     x64-based PC
Processor Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz, 2668 Mhz, 4 Core(s), 4 Logical Processor(s)
BIOS Version/Date       American Megatrends Inc. V1.3, 21/12/2009
SMBIOS Version  2.6
Windows Directory       C:\Windows
System Directory        C:\Windows\system32
Boot Device     \Device\HarddiskVolume1
Locale  Australia
Hardware Abstraction Layer      Version = "6.1.7600.16385"
User Name       Ivor-PC\Ivor
Time Zone       W. Australia Standard Time
Installed Physical Memory (RAM) 4.00 GB
Total Physical Memory   3.96 GB
Available Physical Memory       2.81 GB
Total Virtual Memory    7.92 GB
Available Virtual Memory        6.24 GB
Page File Space 3.96 GB
Page File       C:\pagefile.sys

Kind regards and thank you agian for assistance

Ivor Surveyor
isurve...@vianet.net.au  
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to