By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,235 Members | 1,008 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,235 IT Pros & Developers. It's quick & easy.

_except_handler4_common could not be located in the dynamic link

P: 1
This error occurs when using py2exe on a vista machine and trying to run the resulting EXE on an XP machine. In looking into this in more detail, it seems that the Vista machine run adds in an additional DLL file that is not needed (at least in my case) and this additional DLL is the cause of the error.


I am using wxPython with pySerial. Then assembling everything with py2exe and using NSIS to build an install file. If I do the builds on the XP machine, the result will install and run on both XP and Vista, but if I do the builds on Vista, the result will install on both XP and Vista, but will only run on Vista.

The extra DLL is named: MSWSOCK.DLL

I assume this DLL has something to do with sockets, which I am not needing in my program. I am not sure why it gets included.
Mar 16 '08 #1
Share this Question
Share on Google+
1 Reply

P: 314
The extra DLL is named: MSWSOCK.DLL
Expand|Select|Wrap|Line Numbers
  1.  setup(
  2.         options = {"py2exe": { "dll_excludes": ["MSWSOCK.DLL"]}},
  3.         ...
  4.     )
I've experienced similar problems. Excluding Dlls is very common with py2exe since it most of the time tries to package dlls that will already be on the user's machine anyway.
Mar 17 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.