473,748 Members | 4,065 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_handler 4_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.p y'])

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 6543
Michael wrote:
[py2exe on Vista and XP]
When I attempt to run, I get "The procedure entry point
_except_handler 4_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.c omwrote:
Michael wrote:

[py2exe on Vista and XP]
When I attempt to run, I get "The procedure entry point
_except_handler 4_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.comwro te:
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_handler 4_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.comwro te:
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_handler 4_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.p y'])

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.Generato r', 'email.Iterator s',
| '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\syst em32\OLEAUT32.d ll
| USER32.dll - C:\windows\syst em32\USER32.dll
| SHELL32.dll - C:\windows\syst em32\SHELL32.dl l
| ole32.dll - C:\windows\syst em32\ole32.dll
| comdlg32.dll - C:\windows\syst em32\comdlg32.d ll
| WSOCK32.dll - C:\windows\syst em32\WSOCK32.dl l
| COMCTL32.dll - C:\windows\syst em32\COMCTL32.d ll
| ADVAPI32.dll - C:\windows\syst em32\ADVAPI32.d ll
| GDI32.dll - C:\windows\syst em32\GDI32.dll
| WS2_32.dll - C:\windows\syst em32\WS2_32.dll
| MSVCP71.dll - C:\Program Files\Python25\ lib\site-packages\
| wx-2.8-msw-unicode\wx\MSVC P71.dll
| WINMM.dll - C:\windows\syst em32\WINMM.dll
| KERNEL32.dll - C:\windows\syst em32\KERNEL32.d ll
| gdiplus.dll - C:\Program Files\Python25\ lib\site-packages\
| wx-2.8-msw-unicode\wx\gdip lus.dll
| RPCRT4.dll - C:\windows\syst em32\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.d ll
| 07.08.2007 20:50 708.608 wxmsw28uh_adv_v c.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
7880
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 Assemblies.
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 member by using the properties windows. But I choose the DinamicProperties, the wizard created into the "InitializeComponents" two assignations of the ServiceInstaller properties by instanciating the System.Configuration.AppSettingsReader this...
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 thing is that my version doesn't recognize the attribute RunInstaller Specs: * Microsoft Dev. Env. 2003 / 7.1.308 * .NET Framework / 1.1.432 Thanks Tom.
1
4015
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 admin. I did install the LLTD patch on my XP machines and all of my pc's have the same identical account with identical passwords and all are on the same workgroup.I did turn off all firewalls and I don't have any 3rd party firewalls. I also turned...
3
1246
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 appreaciated. Thandk Vamsi
0
1138
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 websites, much like a "Net Nanny" would restrict children from accessing certain video games or adult websites. In my very limited experience, System Hooks and Win32 coding could be used to accomplish this in XP. I had a lot of trouble learning what...
2
3320
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 loaded system and install XP. How can I do that. Please help
0
2315
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, the resulting MSI successfully executes the code inside my Installer classe Install and Uninstall methods... My problem is distinguishing a patch from a fresh install and following a different execution path in my Installer class depending on...
1
2285
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 see that I have 2.0 (Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053), but I've downloaded and successfully executed dotnetfx35setup.exe, which is the "3.5 SP1". Yet, I am still seeing that it's...
0
8987
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8826
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9534
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9366
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8239
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6073
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4597
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3303
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 we have to send another system
2
2777
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.