473,498 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tix + Python + Windows?

I've been trying to get Tix running with Python on Windows. Since
there is no binary distributions of Tix for Windows, it seems the
easiest way to install Tix is through IDiscovery's IDEStudio 1.9
(http://starship.python.net/crew/mike/Idle/). This went fine and I
ran the "Install Tix into Python" option at the end of the
installation, with the target Python installation being the Python 2.2
I just mentioned. I also ran the "Run Tix demos" option at the end of
the installation, which also worked fine and presented the usual
tixwidgets.py demo. However, when I tried running
import Tix
root = Tix.Tk()


from a Python 2.2 prompt, I got the following error:

error reading package index file
C:/Python22/tcl/tix8.1/pkgIndex.tcl: invalid command name
"lt}]}"

The only mention of this problem I can find is at:

http://issues.bigasterisk.com/hiss/issue36

but there doesn't seem to be a clear resolution put forth. By the
way, IDEStudio 1.9 comes with a stand-alone Python 2.1 binary and the
Tix demo it ran at the end of installation was actually just a batch
file containing

tix8183.exe ..\..\Demos\Tcl\tixwidgets.tcl

Has anyone else had any problems with this? Any suggestions?

Thanks,
josh
Jul 18 '05 #1
2 5243
Yea - same problem some weeks ago. It seems to be a corrupted TCL script of
just minor significance.
I just deleted that line and the next braced section....
You need no tcl knowledge for that - just some feeling ;-)
No problem so far, but I do not use TIX tjat often - it was a try with PAGE
GUI-Builder

Kndly
Michael P

"Josh" <pu*****@media.mit.edu> schrieb im Newsbeitrag
news:8b**************************@posting.google.c om...
I've been trying to get Tix running with Python on Windows. Since
there is no binary distributions of Tix for Windows, it seems the
easiest way to install Tix is through IDiscovery's IDEStudio 1.9
(http://starship.python.net/crew/mike/Idle/). This went fine and I
ran the "Install Tix into Python" option at the end of the
installation, with the target Python installation being the Python 2.2
I just mentioned. I also ran the "Run Tix demos" option at the end of
the installation, which also worked fine and presented the usual
tixwidgets.py demo. However, when I tried running
import Tix
root = Tix.Tk()


from a Python 2.2 prompt, I got the following error:

error reading package index file
C:/Python22/tcl/tix8.1/pkgIndex.tcl: invalid command name
"lt}]}"

The only mention of this problem I can find is at:

http://issues.bigasterisk.com/hiss/issue36

but there doesn't seem to be a clear resolution put forth. By the
way, IDEStudio 1.9 comes with a stand-alone Python 2.1 binary and the
Tix demo it ran at the end of installation was actually just a batch
file containing

tix8183.exe ..\..\Demos\Tcl\tixwidgets.tcl

Has anyone else had any problems with this? Any suggestions?

Thanks,
josh

Jul 18 '05 #2
I too have had this problem on my Win machines (Linux doesn't have the
problem). (I actually got the message twice in a row every time I
instantiated Tk()).
So I commented out lines 30-37 of pkgIndex.tcl as follows:

....
# lt}]} {
# set tail [file join [pwd] $tail]
# break
# }
# }
# cd $pwd
# package ifneeded Tix 8.1[list load $tail Tix]
# unset dirs pwd elt tail
....
It seems to work fine now for me too (no error message). We'll see if
any new errors crop up.
The question is, does anyone have a current version of pkgIndex.tcl
without the obvious typo?

"Michael Peuser" <mp*****@web.de> wrote in message news:<bh*************@news.t-online.com>...
Yea - same problem some weeks ago. It seems to be a corrupted TCL script of
just minor significance.
I just deleted that line and the next braced section....
You need no tcl knowledge for that - just some feeling ;-)
No problem so far, but I do not use TIX tjat often - it was a try with PAGE
GUI-Builder

Kndly
Michael P

"Josh" <pu*****@media.mit.edu> schrieb im Newsbeitrag
news:8b**************************@posting.google.c om...
I've been trying to get Tix running with Python on Windows. Since
there is no binary distributions of Tix for Windows, it seems the
easiest way to install Tix is through IDiscovery's IDEStudio 1.9
(http://starship.python.net/crew/mike/Idle/). This went fine and I
ran the "Install Tix into Python" option at the end of the
installation, with the target Python installation being the Python 2.2
I just mentioned. I also ran the "Run Tix demos" option at the end of
the installation, which also worked fine and presented the usual
tixwidgets.py demo. However, when I tried running
>> import Tix
>> root = Tix.Tk()


from a Python 2.2 prompt, I got the following error:

error reading package index file
C:/Python22/tcl/tix8.1/pkgIndex.tcl: invalid command name
"lt}]}"

The only mention of this problem I can find is at:

http://issues.bigasterisk.com/hiss/issue36

but there doesn't seem to be a clear resolution put forth. By the
way, IDEStudio 1.9 comes with a stand-alone Python 2.1 binary and the
Tix demo it ran at the end of installation was actually just a batch
file containing

tix8183.exe ..\..\Demos\Tcl\tixwidgets.tcl

Has anyone else had any problems with this? Any suggestions?

Thanks,
josh

Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2276
by: Will | last post by:
I just discovered Python and looked briefly at one of the tutorials for beginners... It looks a lot like the old Command line Basic... I'm sure it does much more but... 1 - Can you create...
0
1426
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 407 open ( +3) / 3393 closed (+17) / 3800 total (+20) Bugs : 888 open (+28) / 6145 closed (+14) / 7033 total (+42) RFE : 232 open...
24
6052
by: Joe Salmeri | last post by:
I just upgraded from Python 2.4.2 to Python 2.5.1 and have found some unexpected behavior that appears to be a bug in the os.stat module. My OS is Windows XP SP2 + all updates. I have several...
0
7125
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7002
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7165
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5462
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4908
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1417
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
290
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.