[ZCM] [ZC] 1763/ 5 Comment "3 PyWin problems with Zope 2.7.6.B2"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Tue Jul 19 14:58:17 EDT 2005


Issue #1763 Update (Comment) "3 PyWin problems with Zope 2.7.6.B2"
 Status Pending, Zope/bug critical
To followup, visit:
  http://www.zope.org/Collectors/Zope/1763

==============================================================
= Comment - Entry #5 by mgf on Jul 19, 2005 2:57 pm

I also needed to remove pywintypes23.dll from the Zope\bin directory (where an earlier installation put it). Now it seems to work fine. 

Martin
________________________________________
= Comment - Entry #4 by tim_one on Jun 5, 2005 1:19 pm

Mark Hammond checked in a patch today, on the Zope 2.7 branch, that should at least repair the problem with PySECURITY_ATTRIBUTES.

It's possible you can work around the problem by uninstalling other installations of pywin32, or maybe just by removing pywintypes23.dll from your system32 directory.
________________________________________
= Comment - Entry #3 by tim_one on May 7, 2005 12:37 pm

The .bmp shows the bizarre message you get if an older installation of pywin32 gets picked up.  It looks like Mark Hammond's patches to improve Zope operations on Windows made it into 2.7.6, but not his patches to build the Zope Windows installer with the correct corresponding build (204) of pywin32.  If so, it's a problem in how the Windows installer build process got done.

I'll note that you can also get this message even if Zope ships with build 204 of pywin32, and properly packaged:  if you have an older installation of pywin32 of your own (for example, you have your own Python installation and installed an older pywin32 for that), Zope may pick that one up first.  In that case, you'll need to (as the messages you saw said):

"""
Please install (or upgrade) your pywin32 installation (https://sf.net/projects/pywin32) 
"""

________________________________________
= Comment - Entry #2 by d2m on May 3, 2005 9:50 am

Experienced a similar problem (but with Zope 2.7.6-final on Win2K):

------
2005-05-03T12:10:36 INFO(0) ZServer HTTP server started at Tue May 03 12:10:36 2005
	Hostname: SUPERVISOR
	Port: 8080
------
2005-05-03T12:10:49 PROBLEM(100) Z2 Can not install signal handlers.  Please install (or upgrade) your pywin32 installation (https://sf.net/projects/pywin32)
------
2005-05-03T12:10:49 INFO(0) Zope Ready to handle requests

This is the windows binary release, plain install without extra products, i did not change the included python interpreter. Zope is not installed as a service and started by INSTANCEFOLDER/bin/runzope.bat
________________________________________
= Request - Entry #1 by mgf on Apr 24, 2005 11:02 am


Uploaded:  "zerror.bmp"
 - http://www.zope.org/Collectors/Zope/1763/zerror.bmp/view
As you requested, I tested Zope 2.7.6.B2 with Quantax on Windows (XP Prof SP2).

During startup, I get the following log:

2005-04-24T15:41:43 DEBUG(-200) FileStorage create storage C:\Program Files\Quantax/var/Data.fs
------
2005-04-24T15:41:43 INFO(0) ZODB Opening database for mounting: '29646624_1012593029.100000'
------
2005-04-24T15:41:43 DEBUG(-200) TemporaryStorage create storage TemporaryStorage
------
2005-04-24T15:41:43 INFO(0) ZODB Mounted database '29646624_1012593029.100000' at /temp_folder
------
2005-04-24T15:41:43 PROBLEM(100) Z2 Can not install signal handlers.  Please install (or upgrade) yo
ur pywin32 installation (https://sf.net/projects/pywin32 <https://sf.net/projects/pywin32> )
------
2005-04-24T15:41:43 INFO(0) Zope Ready to handle requests


When I upgrade the Pytonwin Installation to release 204 and changed sitecustomize.py to point to it (see Collector 1711), 

I got the following error during statup:

 C:\Program Files\Quantax\etc>"C:\Program Files\Zope\bin\python.exe" -O "C:\Program Files\Zope\lib\python\Zope\Startup\run.py" -C "C:\Program Files\Quantax\etc\zope.conf"
 Traceback (most recent call last):
  File "C:\Program Files\Zope\lib\python\Zope\Startup\run.py", line 50, in ?
    run()
  File "C:\Program Files\Zope\lib\python\Zope\Startup\run.py", line 19, in run
    start_zope(opts.configroot)
  File "C:\Program Files\Zope\lib\python\Zope\Startup\__init__.py", line 53, in start_zope
    starter.registerSignals()
  File "C:\Program Files\Zope\lib\python\Zope\Startup\__init__.py", line 103, in registerSignals
    Signals.registerZopeSignals()
  File "C:\Program Files\Zope\lib\python\Signals\Signals.py", line 117, in registerZopeSignals
    SignalHandler.registerHandler(SIGTERM, shutdownFastHandler)
  File "C:\Program Files\Zope\lib\python\Signals\WinSignalHandler.py", line 222, in egisterHandler
    hevent = win32event.CreateEvent(sa, 0, 0, event_name)
 TypeError: The object is not a PySECURITY_ATTRIBUTES object

After it started with the new build, it issued a complaint as attached when trying to launch Excel as a COM object.

All this worked fine with 2.7.5. So I conclude that something with the installation of PyWin is wrong.

Best regards, Martin

==============================================================



More information about the Zope-Collector-Monitor mailing list