[Zope-dev] Re: [Zope-Checkins] CVS: Packages/Signals - WinSignalHandler.py:1.1.2.2

Tim Peters tim.peters at gmail.com
Tue Jun 7 15:03:49 EDT 2005


[Mark Hammond]
> Update of /cvs-repository/Packages/Signals
> In directory cvs.zope.org:/tmp/cvs-serv23505
>
> Modified Files:
>      Tag: Zope-2_7-branch
>        WinSignalHandler.py
> Log Message:
> As at pywin32-204, we must ensure pywintypes is the first win32 module
> imported in our process, otherwise we can end up with 2 pywintypesxx.dll
> instances in our process resulting in:
> TypeError: The object is not a PySECURITY_ATTRIBUTES object

Mark, should Zope's nt_svcutils/service.py also be changed to import
pywintypes first?  Its import block looks like this now:

import sys, os, time, threading, signal
import win32api, win32event, win32file, win32pipe, win32process, win32security
import win32service, win32serviceutil, servicemanager
import pywintypes, winerror, win32con

I had "funny problems" getting the Windows ZRS installer to register
the ZRS service on older machines, primarily the

     python.exe - Entry Point Not Found

     The procedure entry point
     ?PyWinObject_AsDEVMODE@@YAHPAU_object@@PAPAU_devicemodeA@@H at Z could
     not be located in the dynamic link library pywintypes23.dll

popup box on a machine with an older pywintypes23.dll in the system32 directory.


More information about the Zope-Dev mailing list