473,406 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

py2exe -> error in PYTHON23.DLL

Using py2exe under WinMe, I bundled up a python program
containing a single line:

print "hello world"

When I zip up the dist directory and move it to another WinMe
machine, trying to run hello.exe either reboots or pops up a
dialog box that says

Hello has caused an error in PYTHON23.DLL
Hello will now close

If you continue to experience problems,
try restarting your computer.

Any ideas on what the problem might be?

It runs find on the machine where I did the bundling and on
another XP machine.

The machine where I bundled up things is using py2exe 0.5.1a1
and running

ActivePython 2.3.2 Build 232 (ActiveState Corp.) based on
Python 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC v.1200 32 bit (Intel)] on win32

--
Grant Edwards grante Yow! These PRESERVES
at should be FORCE-FED to
visi.com PENTAGON OFFICIALS!!
Jul 18 '05 #1
5 1893
Grant Edwards <gr****@visi.com> writes:
Using py2exe under WinMe, I bundled up a python program
containing a single line:

print "hello world"

When I zip up the dist directory and move it to another WinMe
machine, trying to run hello.exe either reboots or pops up a
dialog box that says

Hello has caused an error in PYTHON23.DLL
Hello will now close

If you continue to experience problems,
try restarting your computer.

Any ideas on what the problem might be?

It runs find on the machine where I did the bundling and on
another XP machine.

The machine where I bundled up things is using py2exe 0.5.1a1
and running

ActivePython 2.3.2 Build 232 (ActiveState Corp.) based on
Python 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC v.1200 32 bit (Intel)] on win32


Most of the time (but not always) the problem is that py2exe copies
system specific dlls to the dist folder. What files do you have there?
Or could it be that the target machine doesn't have msvcrt.dll (which is
needed by the Python dll, but not copied by py2exe).

(Un?)fortunately I have no access to winME...

Thomas
Jul 18 '05 #2
On 2004-07-02, Thomas Heller <th*****@python.net> wrote:
Most of the time (but not always) the problem is that py2exe
copies system specific dlls to the dist folder. What files do
you have there?
$ ls -l
total 1292
-rw-r--r-- 1 grante grante 45056 Jul 2 13:16 hello.exe
-rw-r--r-- 1 grante grante 208795 Jul 2 13:14 library.zip
-rw-r--r-- 1 grante grante 974929 Nov 13 2003 python23.dll
-rw-r--r-- 1 grante grante 57421 Nov 13 2003 _sre.pyd
-rw-r--r-- 1 grante grante 16384 Nov 13 2003 w9xpopen.exe
Or could it be that the target machine doesn't have msvcrt.dll
(which is needed by the Python dll, but not copied by py2exe).
The destination system has two copies of msvcrt.dll in

C:\WINDOWS\SYSTEM
C:\Program files\Aladdin Systems\StuffIt Standard
(Un?)fortunately I have no access to winME...


The failure seems to be intermittent. About 1 of 3 tries it
will run. Other times it fails with failures equally divided
between reboots and error dialogs.

The flakey machine had a fresh install of WinMe done about two
months ago with nothing much besides Cygwin installed since
then. I guess I'll just write it off to standard Windows
flakiness. Why people put up with that sort of behavior in an
OS baffles me.

--
Grant Edwards grante Yow! Mary Tyler Moore's
at SEVENTH HUSBAND is wearing
visi.com my DACRON TANK TOP in a
cheap hotel in HONOLULU!
Jul 18 '05 #3

"Grant Edwards" <gr****@visi.com> wrote in message
news:sl*******************@grante.rivatek.com...
Using py2exe under WinMe, I bundled up a python program
containing a single line:

print "hello world"

When I zip up the dist directory and move it to another WinMe
machine, trying to run hello.exe either reboots or pops up a
dialog box that says

Hello has caused an error in PYTHON23.DLL
Hello will now close

If you continue to experience problems,
try restarting your computer.

Any ideas on what the problem might be?


I had a problem with py2exe on WinMe & Win98 because
it needed a unicode extension called unicows. That fixed it.

Patrick
Jul 18 '05 #4
Thomas Heller wrote:
Grant Edwards <gr****@visi.com> writes:

Using py2exe under WinMe, I bundled up a python program
containing a single line:

print "hello world"

When I zip up the dist directory and move it to another WinMe
machine, trying to run hello.exe either reboots or pops up a
dialog box that says

Hello has caused an error in PYTHON23.DLL
Hello will now close

If you continue to experience problems,
try restarting your computer.

Any ideas on what the problem might be?

It runs find on the machine where I did the bundling and on
another XP machine.

The machine where I bundled up things is using py2exe 0.5.1a1
and running

ActivePython 2.3.2 Build 232 (ActiveState Corp.) based on
Python 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC v.1200 32 bit (Intel)] on win32

Most of the time (but not always) the problem is that py2exe copies
system specific dlls to the dist folder. What files do you have there?
Or could it be that the target machine doesn't have msvcrt.dll (which is
needed by the Python dll, but not copied by py2exe).

(Un?)fortunately I have no access to winME...

Thomas


Surely py2exe should be able to handle this a bit more gracefully than
crashing / restarting the machine? Maybe a check for the dll would be in
order....

David
Jul 18 '05 #5
On 2004-07-03, RPM1 <rp**********@direcway.com> wrote:

"Grant Edwards" <gr****@visi.com> wrote in message
news:sl*******************@grante.rivatek.com...
Using py2exe under WinMe, I bundled up a python program
containing a single line:

print "hello world"

When I zip up the dist directory and move it to another WinMe
machine, trying to run hello.exe either reboots or pops up a
dialog box that says

Hello has caused an error in PYTHON23.DLL
Hello will now close

If you continue to experience problems,
try restarting your computer.

Any ideas on what the problem might be?


I had a problem with py2exe on WinMe & Win98 because
it needed a unicode extension called unicows. That fixed it.


AFAICT, it's py2exe that needs unicows.dll, not the resulting
application package. IOW, you need unicows.dll on the
development machine but not on the target machines.

--
Grant Edwards grante Yow! Darling, my ELBOW
at is FLYING over FRANKFURT,
visi.com Germany...
Jul 18 '05 #6

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

Similar topics

1
by: | last post by:
I want a binnary file to my aplicattion, but py2exe don't match the xmll.sax module. the py2exe shows this errors: warning: py2exe:...
8
by: Kathleen Kudzma | last post by:
Does anyone know how to resolve the following problem that I'm getting in Python 2.2 and 2.3? PROBLEM: When I try to create a classReader object I get an exception: "SAXReaderNotAvailable: No...
0
by: Steven Bell | last post by:
I am trying to build an executable from a python script. Using python 2.3, SOAPpy 0.10.3, Py2exe 0.4.2. Build command: python setup.py py2exe -w --includes xml.sax.drivers2.drv_py I get the...
0
by: Jimmy Retzlaff | last post by:
py2exe 0.6.4 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python...
0
by: Jimmy Retzlaff | last post by:
py2exe 0.6.5 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python...
0
by: Jimmy Retzlaff | last post by:
py2exe 0.6.6 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python...
5
by: Doug Morse | last post by:
Hi, I have an application that runs just fine using the standard Python distro interpreter (v2.5.1 on WinXP) but throws the following exception when run as an executable built with py2exe. My...
1
by: Jimmy Retzlaff | last post by:
py2exe 0.6.8 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python...
0
by: Larry Bates | last post by:
Jimmy Retzlaff wrote: Everyone, Thanks for all your hard work on py2exe, it is greatly appreciated. -Larry Bates
0
by: Jimmy Retzlaff | last post by:
py2exe 0.6.9 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.