_except_handler4_common could not be located in the dynamic link

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • w8kk
    New Member
    • Mar 2008
    • 1

    _except_handler4_common could not be located in the dynamic link

    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.

    See http://www.thescripts. com/forum/thread730751.ht ml

    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.
  • jlm699
    Contributor
    • Jul 2007
    • 314

    #2
    Originally posted by w8kk
    The extra DLL is named: MSWSOCK.DLL
    [code=python]
    setup(
    options = {"py2exe": { "dll_exclud es": ["MSWSOCK.DL L"]}},
    ...
    )[/code]
    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.

    Comment

    Working...