Experiencing TypeError: The object is not a PySECURITY_ATTRIBUTES object
Hi Folks, I¹m experiencing the following error on windows XP SP2. The error is described at: http://mail.zope.org/pipermail/zope-checkins/2005-June/029495.html I¹ve installed: Zope 2.8.3-final for windows from the zope.org site Plone-2.1.1, just the products from the plone.org site Python 2.3.5 for windows from the python.org site Before installing Plone, and having just installed Zope and Python, I can start Zope without any error. Of course, this is without any Products in my instance directory. Then, when I stop Zope, then copy the Plone products over, then try to restart Zope from my $INSTANCE_HOME/bin/runzope.bat program, I get that PySECURITY_ATTRIBUTES error. I went to the Zope folder in my Program Files directory and then went to lib/python/Signals/WinSignalHandler.py, and I notice that the patch applied to fix this bug appears to have been applied to that file, however, I¹m still getting the error. Does anybody have any clue why? Thanks so much. Cheers, Chris ______________________________________________ Chris A. Mattmann Chris.Mattmann@jpl.nasa.gov Staff Member Modeling and Data Management Systems Section (387) Data Management Systems and Technologies Group _________________________________________________ Jet Propulsion Laboratory Pasadena, CA Office: 171-266B Mailstop: 171-246 _______________________________________________________ Disclaimer: The opinions presented within are my own and do not reflect those of either NASA, JPL, or the California Institute of Technology.
Hi Again, It seems that the plone.org site says that version 2.1.1 works with Zope-2.8.2, so maybe that¹s the error. I will try and install that version of Zope and see if the error goes away. Sorry about posting without checking that... Cheers, Chris On 10/25/05 9:24 AM, "Chris Mattmann" <chris.mattmann@jpl.nasa.gov> wrote:
Hi Folks,
I¹m experiencing the following error on windows XP SP2. The error is described at:
http://mail.zope.org/pipermail/zope-checkins/2005-June/029495.html
I¹ve installed:
Zope 2.8.3-final for windows from the zope.org site Plone-2.1.1, just the products from the plone.org site Python 2.3.5 for windows from the python.org site
Before installing Plone, and having just installed Zope and Python, I can start Zope without any error. Of course, this is without any Products in my instance directory. Then, when I stop Zope, then copy the Plone products over, then try to restart Zope from my $INSTANCE_HOME/bin/runzope.bat program, I get that PySECURITY_ATTRIBUTES error. I went to the Zope folder in my Program Files directory and then went to lib/python/Signals/WinSignalHandler.py, and I notice that the patch applied to fix this bug appears to have been applied to that file, however, I¹m still getting the error.
Does anybody have any clue why?
Thanks so much.
Cheers, Chris
______________________________________________ Chris A. Mattmann Chris.Mattmann@jpl.nasa.gov Staff Member Modeling and Data Management Systems Section (387) Data Management Systems and Technologies Group
_________________________________________________ Jet Propulsion Laboratory Pasadena, CA Office: 171-266B Mailstop: 171-246 _______________________________________________________
Disclaimer: The opinions presented within are my own and do not reflect those of either NASA, JPL, or the California Institute of Technology.
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
______________________________________________ Chris A. Mattmann Chris.Mattmann@jpl.nasa.gov Staff Member Modeling and Data Management Systems Section (387) Data Management Systems and Technologies Group _________________________________________________ Jet Propulsion Laboratory Pasadena, CA Office: 171-266B Mailstop: 171-246 _______________________________________________________ Disclaimer: The opinions presented within are my own and do not reflect those of either NASA, JPL, or the California Institute of Technology.
Hello all, Okay, I have reproduced the error even with Zope 2.8.2-final on win32. The same PySECURITY_ATTRIBUTES object error appears even with 2.8.2. Any ideas? Thanks, Chris On 10/25/05 9:37 AM, "Chris Mattmann" <chris.mattmann@jpl.nasa.gov> wrote:
Hi Again,
It seems that the plone.org site says that version 2.1.1 works with Zope-2.8.2, so maybe that¹s the error. I will try and install that version of Zope and see if the error goes away. Sorry about posting without checking that...
Cheers, Chris
On 10/25/05 9:24 AM, "Chris Mattmann" <chris.mattmann@jpl.nasa.gov> wrote:
Hi Folks,
I¹m experiencing the following error on windows XP SP2. The error is described at:
http://mail.zope.org/pipermail/zope-checkins/2005-June/029495.html
I¹ve installed:
Zope 2.8.3-final for windows from the zope.org site Plone-2.1.1, just the products from the plone.org site Python 2.3.5 for windows from the python.org site
Before installing Plone, and having just installed Zope and Python, I can start Zope without any error. Of course, this is without any Products in my instance directory. Then, when I stop Zope, then copy the Plone products over, then try to restart Zope from my $INSTANCE_HOME/bin/runzope.bat program, I get that PySECURITY_ATTRIBUTES error. I went to the Zope folder in my Program Files directory and then went to lib/python/Signals/WinSignalHandler.py, and I notice that the patch applied to fix this bug appears to have been applied to that file, however, I¹m still getting the error.
Does anybody have any clue why?
Thanks so much.
Cheers, Chris
______________________________________________ Chris A. Mattmann Chris.Mattmann@jpl.nasa.gov Staff Member Modeling and Data Management Systems Section (387) Data Management Systems and Technologies Group
_________________________________________________ Jet Propulsion Laboratory Pasadena, CA Office: 171-266B Mailstop: 171-246 _______________________________________________________
Disclaimer: The opinions presented within are my own and do not reflect those of either NASA, JPL, or the California Institute of Technology.
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
______________________________________________ Chris A. Mattmann Chris.Mattmann@jpl.nasa.gov Staff Member Modeling and Data Management Systems Section (387) Data Management Systems and Technologies Group
_________________________________________________ Jet Propulsion Laboratory Pasadena, CA Office: 171-266B Mailstop: 171-246 _______________________________________________________
Disclaimer: The opinions presented within are my own and do not reflect those of either NASA, JPL, or the California Institute of Technology.
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
______________________________________________ Chris A. Mattmann Chris.Mattmann@jpl.nasa.gov Staff Member Modeling and Data Management Systems Section (387) Data Management Systems and Technologies Group _________________________________________________ Jet Propulsion Laboratory Pasadena, CA Office: 171-266B Mailstop: 171-246 _______________________________________________________ Disclaimer: The opinions presented within are my own and do not reflect those of either NASA, JPL, or the California Institute of Technology.
[Chris Mattmann]
Okay, I have reproduced the error even with Zope 2.8.2-final on win32. The same PySECURITY_ATTRIBUTES object error appears even with 2.8.2. Any ideas?
Short of not using Plone <wink>, see this Collector item, which I expect is the same issue: http://www.zope.org/Collectors/Zope/1925 I believe what it says there. Until Mark Hammond can make a new release of pywin32, you'll have to search for code that: imports win32api [and] add a line above that: import pywintypes That's already been done in Zope.
[Chris Mattmann]
Okay, I have reproduced the error even with Zope 2.8.2-final on win32. The same PySECURITY_ATTRIBUTES object error appears even with 2.8.2. Any ideas?
Short of not using Plone <wink>, see this Collector item, which I expect is the same issue:
http://www.zope.org/Collectors/Zope/1925
I believe what it says there. Until Mark Hammond can make a new release of pywin32, you'll have to search for code that:
imports win32api [and] add a line above that: import pywintypes
That's already been done in Zope.
Thanks Tim! FYI, there is a new pywin32 build out now that should solve this problem without requiring any imports to be reordered. It would be great if whoever turns the crank for the next Zope/Windows builds (which may even turn out to be me! :) uses build 205. Sadly, I believe it is not trivial to install a new pywin32 build into a Zope binary. You could patch it up though by opening the pywin32 release executable in WinZip (or similar), then replacing 'pywintypes.py' and extracting a new "_win32sysloader.pyd" module. Finally, I believe another way to solve this problem would be to remove pywintypes23.dll from the system32 directory (the the underlying problem is that 2 copies of this DLL are being loaded into memory). However, doing this may prevent other things (such as your existing Python installation) from working correctly, so do this with caution. Zope does not install anything into system32, so presumably something else on your system is also using Python. Cheers, Mark
participants (3)
-
Chris Mattmann -
Mark Hammond -
Tim Peters