473,460 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Python/Tkinter DLL conflicts on Windows

I have some Tkinter programs that I run on two different machines. On
Machine W, which runs Python 2.5.1 on Windows XP, these programs run fine.
On Machine H, which runs Python 2.5.1 on Windows XP, however, the same
programs crash regularly. The crashes are not Python exceptions, but rather
are reported by Windows as errors in pythonw.exe. (Of course, the error
messages themselves contain absolutely no useful information.) This happens
whether I run them from the command prompt or from IDLE (although IDLE
itself never crashes). Further, the crashes occur at unpredictable times;
sometimes the program will crash almost immediately upon startup, while at
other times it will run for a while and then crash.

Also, I'm not sure whether this has anything to do with my problem, but
Machine H also has Python 2.2 installed on it, while Machine W does not.

I recall seeing a message at some point that suggested that conflicts in the
MS VC runtime DLLs might cause this sort of problem, but I haven't been able
to find that information through a search, so I'm not sure which particular
DLLs to look for. Any help in tracking down the source of this problem
would be appreciated.

Russ

Dec 26 '07 #1
2 2523
On Dec 26, 1:03 pm, "Russell Blau" <russb...@hotmail.comwrote:
I have some Tkinter programs that I run on two different machines. On
Machine W, which runs Python 2.5.1 on Windows XP, these programs run fine.
On Machine H, which runs Python 2.5.1 on Windows XP, however, the same
programs crash regularly. The crashes are not Python exceptions, but rather
are reported by Windows as errors in pythonw.exe. (Of course, the error
messages themselves contain absolutely no useful information.) This happens
whether I run them from the command prompt or from IDLE (although IDLE
itself never crashes). Further, the crashes occur at unpredictable times;
sometimes the program will crash almost immediately upon startup, while at
other times it will run for a while and then crash.

Also, I'm not sure whether this has anything to do with my problem, but
Machine H also has Python 2.2 installed on it, while Machine W does not.

I recall seeing a message at some point that suggested that conflicts in the
MS VC runtime DLLs might cause this sort of problem, but I haven't been able
to find that information through a search, so I'm not sure which particular
DLLs to look for. Any help in tracking down the source of this problem
would be appreciated.

Russ
Hi,

In the programs I write and package, I usually distribute msvcp71.dll
and MSVCR71.dll. I include them in the directory that the Python exe
I've created is running from. However, it sounds like you are running
pure code, not something packaged with py2exe.

You might run sfc and see if your dlls are ok. See http://support.microsoft.com/kb/310747

A friend of mine swears by this: http://wiki.djlizard.net/Dial-a-fix

Of course, it might be as simple as just uninstalling and reinstalling
Python.

Mike
Dec 26 '07 #2
Any help in tracking down the source of this problem
would be appreciated.
You could try installing a debugger on machine H, hoping
that the debugger gets entered when pythonw crashes. The
stack trace may provide some insight on what precisely fails.

HTH,
Martin
Dec 26 '07 #3

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

Similar topics

10
by: Andrew Dalke | last post by:
Is there an author index for the new version of the Python cookbook? As a contributor I got my comp version delivered today and my ego wanted some gratification. I couldn't find my entries. ...
44
by: jiang.haiyun | last post by:
Now i began to learn GUI programming. There are so many choices of GUI in the python world, wxPython, pyGTK, PyQT, Tkinter, .etc, it's difficult for a novice to decide, however. Can you draw a...
40
by: =?iso-8859-1?B?QW5kcuk=?= | last post by:
I'm really annoyed at Python - and not for the reasons already mentioned on this list. Everyone know that programming is supposed to be a dark art, nearly impossible to learn. Computer code is...
13
by: Daniel Fetchinson | last post by:
Was looking at PEP 3108, http://www.python.org/dev/peps/pep-3108/ , Is it just me or others also think that it would be a major loss to remove tkinter from the python core? PEP 3108 starts off...
8
by: karthikbalaguru | last post by:
Hi, One of my python program needs tkinter to be installed to run successfully. I am using Redhat 9.0 and hence tried installing by copying the tkinter-2.2.2-36.i386.rpm alone from the CD 3 to...
2
by: Dudeja, Rajat | last post by:
Hi, So, now I've finally started using Eclipse and PyDev as an IDE for my GUI Application. I just wrote some sample programs as an hands on. Now I would like to take up Tkinter. I'm using...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.