473,511 Members | 12,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

py2exe (or other exe builder) on Vista system for Vista/XP install targets.

I'm trying to build a exe on a vista system using py2exe. It will
deploy to vista and XP systems. If it matters, the application uses
pyserial, as well. I have VS Studio 2005 installed on this laptop as
well. I've found this so far that seems to be identical to what I'm
seeing (for non-python programs): http://www.thescripts.com/forum/thread611031.html

When I attempt to run, I get "The procedure entry point
_except_handler4_common could not be located in the dynamic link
library mscvrt.dll." Apparently vista has one more
_except_handler#_common function than XP does.

I've used py2exe several times before (however not recenty, as it was
before Vista came out). I'm using a very basic setup file right now:
from distutils.core import setup
import py2exe

setup(console=['responderbot.py'])

Are there any ways to either py2exe work or any other exe builder for
my build environment and deployment scenario? I don't really want to
dig around in py2exe/pyserial internals to force it to use the dll's
that the MS support person said it should be using. Will any automated
exe builder work where I am?

I've heard IronPython can compile down to an exe....is it a valid
alternative? Should my CPython utility be compatible with ipy? I only
use the random,time,sys, and serial modules. I really know very little
about ipy.

--Michael

Oct 31 '07 #1
5 6530
Michael wrote:
[py2exe on Vista and XP]
When I attempt to run, I get "The procedure entry point
_except_handler4_common could not be located in the dynamic link
library mscvrt.dll." Apparently vista has one more
_except_handler#_common function than XP does.
Strange -- it works for me. I compile in Vista and deploy in Vista
and XP (SP2). I'm using Twisted 2.5 and wxWidgets 2.8.

I'm sorry that I cannot help more. I dropped py2exe recently because
I had a similar missing symbol problem with a Windows 2000
computer; so I installed Python and the modules directly on all my
machines.

Regards,
Björn

--
BOFH excuse #223:

The lines are all busy (busied out, that is -- why let them in to
begin with?).

Oct 31 '07 #2
Björn, what library files end up being in your dist directory for that
project? Would you mind posting a copy of the output of dir?

I'm curious to see if there is a discrepancy.

--Michael

On Oct 31, 9:22 am, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n...@spamgourmet.comwrote:
Michael wrote:

[py2exe on Vista and XP]
When I attempt to run, I get "The procedure entry point
_except_handler4_common could not be located in the dynamic link
library mscvrt.dll." Apparently vista has one more
_except_handler#_common function than XP does.

Strange -- it works for me. I compile in Vista and deploy in Vista
and XP (SP2). I'm using Twisted 2.5 and wxWidgets 2.8.

I'm sorry that I cannot help more. I dropped py2exe recently because
I had a similar missing symbol problem with a Windows 2000
computer; so I installed Python and the modules directly on all my
machines.

Regards,

Björn

--
BOFH excuse #223:

The lines are all busy (busied out, that is -- why let them in to
begin with?).

Oct 31 '07 #3
On 10 31 , 8 08 , Michael <michael.langf...@gmail.comwrote:
I'm trying to build a exe on a vista system using py2exe. It will
deploy to vista and XP systems. If it matters, the application uses
pyserial, as well. I have VS Studio 2005 installed on this laptop as
well. I've found this so far that seems to be identical to what I'm
seeing (for non-python programs):http://www.thescripts.com/forum/thread611031.html

When I attempt to run, I get "The procedure entry point
_except_handler4_common could not be located in the dynamic link
library mscvrt.dll." Apparently vista has one more
_except_handler#_common function than XP does.
I use pyinstaller to create the single execution file. However, if you
have some DLLs which built from VC2005. You may need to include the
VC2005 redistribution files in your execution file. Here are the files
which I get from VC2005's redistributed package and include in my
execution file.

Microsoft.VC80.CRT.manifest
msvcm80.dll
msvcp80.dll
msvcr80.dll
Nov 1 '07 #4
On Oct 31, 7:08 am, Michael <michael.langf...@gmail.comwrote:
I'm trying to build a exe on a vista system using py2exe. It will
deploy to vista and XP systems. If it matters, the application uses
pyserial, as well. I have VS Studio 2005 installed on this laptop as
well. I've found this so far that seems to be identical to what I'm
seeing (for non-python programs):http://www.thescripts.com/forum/thread611031.html

When I attempt to run, I get "The procedure entry point
_except_handler4_common could not be located in the dynamic link
library mscvrt.dll." Apparently vista has one more
_except_handler#_common function than XP does.

I've used py2exe several times before (however not recenty, as it was
before Vista came out). I'm using a very basic setup file right now:
from distutils.core import setup
import py2exe

setup(console=['responderbot.py'])

Are there any ways to either py2exe work or any other exe builder for
my build environment and deployment scenario? I don't really want to
dig around in py2exe/pyserial internals to force it to use the dll's
that the MS support person said it should be using. Will any automated
exe builder work where I am?

I've heard IronPython can compile down to an exe....is it a valid
alternative? Should my CPython utility be compatible with ipy? I only
use the random,time,sys, and serial modules. I really know very little
about ipy.

--Michael
I use GUI2Exe, a wrapper of py2exe that I find easier to use. You can
find it here:

http://xoomer.alice.it/infinity77/main/GUI2Exe.html

There's also this interesting utility (that I've never used) from
Frederik Lundh:

http://effbot.org/zone/exemaker.htm

I've heard good things about PyInstaller (the one Gary mentioned). As
far as I know, py2exe doesn't use Visual Studio to do its compiling,
so I don't think that's relevant.

Mike

Nov 1 '07 #5
Michael wrote:
Björn, what library files end up being in your dist directory for
that project? Would you mind posting a copy of the output of dir?
Okay, sorry for the delay. Here the output of py2exe is, for
directory contents see below.

| The following modules appear to be missing
| ['FCNTL', 'OpenSSL', 'email.Generator', 'email.Iterators',
| 'email.Utils', 'pywintypes', 'resource', 'win32api', 'win32con',
| 'win32event', 'win32file', 'win32pipe', 'win32process',
| 'win32security', 'wx.Timer']
|
| *** binary dependencies ***
| Your executable(s) also depend on these dlls which are not
| included, you may or may not need to distribute them.
|
| Make sure you have the license if you distribute any of them, and
| make sure you don't distribute files belonging to the operating
| system.
|
| OLEAUT32.dll - C:\windows\system32\OLEAUT32.dll
| USER32.dll - C:\windows\system32\USER32.dll
| SHELL32.dll - C:\windows\system32\SHELL32.dll
| ole32.dll - C:\windows\system32\ole32.dll
| comdlg32.dll - C:\windows\system32\comdlg32.dll
| WSOCK32.dll - C:\windows\system32\WSOCK32.dll
| COMCTL32.dll - C:\windows\system32\COMCTL32.dll
| ADVAPI32.dll - C:\windows\system32\ADVAPI32.dll
| GDI32.dll - C:\windows\system32\GDI32.dll
| WS2_32.dll - C:\windows\system32\WS2_32.dll
| MSVCP71.dll - C:\Program Files\Python25\lib\site-packages\
| wx-2.8-msw-unicode\wx\MSVCP71.dll
| WINMM.dll - C:\windows\system32\WINMM.dll
| KERNEL32.dll - C:\windows\system32\KERNEL32.dll
| gdiplus.dll - C:\Program Files\Python25\lib\site-packages\
| wx-2.8-msw-unicode\wx\gdiplus.dll
| RPCRT4.dll - C:\windows\system32\RPCRT4.dll

Output of dir in the dist directory follows:

| 01.11.2007 20:51 <DIR .
| 01.11.2007 20:51 <DIR ..
| 18.04.2007 07:51 77.824 bz2.pyd
| 01.11.2007 20:51 4.874.503 library.zip
| 29.06.2007 20:19 348.160 MSVCR71.dll
| 18.04.2007 07:51 135.168 pyexpat.pyd
| 18.04.2007 07:51 2.113.536 python25.dll
| 18.04.2007 07:51 7.680 select.pyd
| 18.04.2007 07:51 475.136 unicodedata.pyd
| 18.04.2007 07:51 4.608 w9xpopen.exe
| 07.08.2007 20:47 135.168 wxbase28uh_net_vc.dll
| 07.08.2007 20:47 1.327.104 wxbase28uh_vc.dll
| 07.08.2007 20:50 708.608 wxmsw28uh_adv_vc.dll
| 07.08.2007 20:50 3.158.016 wxmsw28uh_core_vc.dll
| 07.08.2007 20:51 479.232 wxmsw28uh_html_vc.dll
| 07.08.2007 21:12 909.312 _controls_.pyd
| 07.08.2007 21:09 950.272 _core_.pyd
| 07.08.2007 21:11 716.800 _gdi_.pyd
| 18.04.2007 07:52 323.584 _hashlib.pyd
| 07.08.2007 21:14 659.456 _misc_.pyd
| 18.04.2007 07:52 53.248 _socket.pyd
| 18.04.2007 07:52 655.360 _ssl.pyd
| 07.08.2007 21:11 647.168 _windows_.pyd
| 08.01.2007 15:49 9.216 _zope_interface_
| coptimizations.pyd

(my files, an exe and a data file, snipped)

Regards & HTH,
Björn

--
BOFH excuse #417:

Computer room being moved. Our systems are down for the weekend.

Nov 3 '07 #6

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

Similar topics

1
7838
by: Jim Mortimer | last post by:
I cannot see the System.Configuration.Install namespace on any of my VS .NET 2003 development machines. Does anybody know how I can get hold of it? The only thing in System.Configuration is...
0
533
by: Erick | last post by:
Hi, I have a Installer class used to install my windows service, it was created by the wizard that is in the VS, I just whent into the properties and set up the properties of the ServiceInstaller...
4
342
by: TT (Tom Tempelaere) | last post by:
Hi there It is very strange, there is no namespace System.Configuration.Install in my C# version, and of course since the namespace isn't there, the Installer class isn't there either. Another...
1
4005
by: =?Utf-8?B?UGF1bCBIYXllcw==?= | last post by:
I currently have a XP network and I just purchased a laptop running vista premium and after trying to network my new laptop to my existing network all I get is access denied and to contact my...
3
1236
by: krisvam | last post by:
Hi, I have build the msi file using the windows xp version. When I am trying to install the msi file on windows vista system it is giving me exceptional error. Any help will be greatly...
0
1127
by: Jared Goralnick | last post by:
Hi, I'm in the process of developing some high-level specs for an application. Some of the functionality of this application involves intercepting Windows access to certain applications or...
2
3307
by: job8663 | last post by:
Hi, I tried to install XP on a Pre-loaded VISTA system and it is showing no Hard Drive attached, where as the same system is running in VISTA without any trouble. Now I want to format a vista...
0
2297
by: JDeats | last post by:
I have a new Installer class (derived from System.Configuration.Install.Installer) and I have override methods for Install, Uninstall, Commit. The MSI builder tool I'm using is Advanced Installer,...
1
2272
by: Lara | last post by:
Hi all, I've searched the groups, searched the net but can't find a solution to what I assume is something very simple. I have Vista with SP1. I have also installed Visual Studio 2008. I...
0
7251
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
7148
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
7367
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,...
1
7089
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
7517
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...
1
5072
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
4743
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
3217
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1581
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 ...

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.