472,799 Members | 1,611 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,799 software developers and data experts.

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 2479
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...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.