3 PyWin problems with Zope 2.7.6.B2

Bug #143383 reported by Martin Gfeller
2
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Critical
Unassigned

Bug Description

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

Tags: bug zope
Revision history for this message
Michael Haubenwallner (d2m) wrote :

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

Revision history for this message
Tim Peters (tim-one) wrote :

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)
"""

Revision history for this message
Tim Peters (tim-one) wrote :

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.

Revision history for this message
Martin Gfeller (martin-gfeller) wrote :

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

Revision history for this message
Martin Gfeller (martin-gfeller) wrote :

> Now it seems to work fine.
Using 2.7.7 I mean.

Revision history for this message
Tim Peters (tim-one) wrote :

Status: Pending => Resolved

I'm closing this now, since the problems appear to have been fixed in 2.7.7. If someone still has a problem, better to open a new report anyway, since several relevant things that were done wrongly before 2.7.7 did get fixed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.