RE: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ preparing 2.8.0 release for tomorrow
[Tim Peters, having trouble with 2.8b2 on Windows, ending with Files\Zope-2.8.0-b2\lib\python\Signals\WinSignalHandler.py, line 203, in registerHandler hevent = win32event.CreateEvent(sa, 0, 0, event_name) TypeError: The object is not a PySECURITY_ATTRIBUTES object That sounds alot like duplicate copies of pywintypes23.dll have been loaded into the process, with the module 'pywintypes' being one instance explicitly loaded by Python, and the other being implicitly loaded by win32event.pyd etc dependencies. ... I've managed to reproduce this, and that does seem to be the problem. I think it will only happen when you have an existing pywintypes23.dll in your system32. A work-around is to ensure pywintypes is the first win32 module imported. I've attached a patch (SVN seems down at the moment) which seems to work for me. I'll try and come up with a decent fix for pywin32, but the patch should be fine to get this release out. [Actually, I'll just forward the patch to Tim. I've checked it in to 2.7.] Mark ___ 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 )
Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ preparing 2.8.0 release for tomorrow
There's a (another) new Zope-2.8.0-b2-win32.exe available for download at http://www.zope.org/Products/Zope/2.8.0b2/ and all Windows users are urged to try it. I don't know whether it will help with error popups if you happen to have an older (than build 204) version of pywin32/win32all installed, but it does repair the catastrophic problems with PySECURITY_ATTRIBUTES on my box. [Tim Peters, having trouble with 2.8b2 on Windows, ending with Files\Zope-2.8.0-b2\lib\python\Signals\WinSignalHandler.py, line 203, in registerHandler hevent = win32event.CreateEvent(sa, 0, 0, event_name) TypeError: The object is not a PySECURITY_ATTRIBUTES object ] [Mark Hammond] That sounds alot like duplicate copies of pywintypes23.dll have been loaded into the process, with the module 'pywintypes' being one instance explicitly loaded by Python, and the other being implicitly loaded by win32event.pyd etc dependencies. All obvious to the most casual observer wink. ... I've managed to reproduce this, and that does seem to be the problem. I think it will only happen when you have an existing pywintypes23.dll in your system32. That was certainly the case on my box, as I have many Pythons installed independent of Zope/ZODB/ZRS, and installed pywin32 (build 204) for them too. A work-around is to ensure pywintypes is the first win32 module imported. I've attached a patch (SVN seems down at the moment) which seems to work for me. I'll try and come up with a decent fix for pywin32, but the patch should be fine to get this release out. [Actually, I'll just forward the patch to Tim. I've checked it in to 2.7.] Thank you, Mark! I'll get it merged into Zope trunk, Zope 2.8 branch, and (although this is evil, I don't see a sane alternative -- checkins should never be made to a tag) the 2.8b2 tag. Andreas and Brian, Zope 2.7.6 is broken on Windows in the same way, as noted in the bug report I referenced yesterday: http://www.zope.org/Collectors/Zope/1763 IOW, a 2.7.7 release is needed, at least for Windows. If anyone pursues that, please let me know in advance so I can coordinate another ZODB 3.2 bugfix release to go along with it. ___ 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 )
Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ preparing 2.8.0 release for tomorrow
--On 5. Juni 2005 12:59:12 -0400 Tim Peters [EMAIL PROTECTED] wrote: There's a (another) new Zope-2.8.0-b2-win32.exe available for download at http://www.zope.org/Products/Zope/2.8.0b2/ and all Windows users are urged to try it. I don't know whether it will help with error popups if you happen to have an older (than build 204) version of pywin32/win32all installed, but it does repair the catastrophic problems with PySECURITY_ATTRIBUTES on my box. Run Zope in console fails for me with application has failed to start because pywintypes23.dll was not found... -aj pgp1BkhbLoEIX.pgp Description: PGP signature ___ 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 )
Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ preparing 2.8.0 release for tomorrow
--On 5. Juni 2005 19:14:52 +0200 Andreas Jung [EMAIL PROTECTED] wrote: Run Zope in console fails for me with application has failed to start because pywintypes23.dll was not found... After copying PyWintypes32.dll to $INSTANCE_HOME/bin I now get this PySECURITY_ATTRIBUTES error :-/ crap -aj pgpesGOlWlvtf.pgp Description: PGP signature ___ 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 )
[Zope-dev] Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ preparing 2.8.0 release for tomorrow
Andreas Jung wrote: --On 5. Juni 2005 19:14:52 +0200 Andreas Jung [EMAIL PROTECTED] wrote: Run Zope in console fails for me with application has failed to start because pywintypes23.dll was not found... After copying PyWintypes32.dll to $INSTANCE_HOME/bin I now get this PySECURITY_ATTRIBUTES error :-/ crap Must be yesterdays version then (i had just that error message, after removing an ancient pywintypes23.dll from C:\WINNT\system32). There are 2 pywintypes23.dlls now: $ZOPE_HOME\bin\PyWinTypes23.dll $ZOPE_HOME\bin\Lib\site-packages\pywin32_system32\pywintypes23.dll Zope starts fine now (although there are no messages in the console window anymore). Michael -- http://zope.org/Members/d2m http://planetzope.org ___ 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 )
Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ preparing 2.8.0 release for tomorrow
--On 5. Juni 2005 19:27:08 +0200 Michael Haubenwallner [EMAIL PROTECTED] wrote: Zope starts fine now (although there are no messages in the console window anymore). hm...I retried again...with the same error? What is the md5sum of the .exe file? I have fb9...b798df6. -aj pgptQODHL4SvC.pgp Description: PGP signature ___ 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 )
Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ preparing 2.8.0 release for tomorrow
[Tim Peters] There's a (another) new Zope-2.8.0-b2-win32.exe available for download at http://www.zope.org/Products/Zope/2.8.0b2/ and all Windows users are urged to try it. I don't know whether it will help with error popups if you happen to have an older (than build 204) version of pywin32/win32all installed, but it does repair the catastrophic problems with PySECURITY_ATTRIBUTES on my box. [Andreas Jung] Run Zope in console fails for me with application has failed to start because pywintypes23.dll was not found... Works for me (WinXP Pro SP2), although it's saner to open a DOS box, cd to your instance's bin/ directory, and type runzope there (I don't know why we install a Run Zope in console link -- I can't imagine that any serious user would start Zope that way, because the teensy DOS box it pops up simply vanishes if anything goes wrong). Please check the md5 on the installer you used, to make sure it's the _current_ installer. It should be $ md5sum Z* fb9aec9e3a0e5b3487752d5b7b798df6 *Zope-2.8.0-b2-win32.exe If that's not what you get, you have an older version. ___ 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 )
Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ preparing 2.8.0 release for tomorrow
--On 5. Juni 2005 13:43:39 -0400 Tim Peters [EMAIL PROTECTED] wrote: [Tim Peters] There's a (another) new Zope-2.8.0-b2-win32.exe available for download at http://www.zope.org/Products/Zope/2.8.0b2/ and all Windows users are urged to try it. I don't know whether it will help with error popups if you happen to have an older (than build 204) version of pywin32/win32all installed, but it does repair the catastrophic problems with PySECURITY_ATTRIBUTES on my box. [Andreas Jung] Run Zope in console fails for me with application has failed to start because pywintypes23.dll was not found... Works for me (WinXP Pro SP2), although it's saner to open a DOS box, cd to your instance's bin/ directory, and type runzope there (I don't know why we install a Run Zope in console link -- I can't imagine that any serious user would start Zope that way, because the teensy DOS box it pops up simply vanishes if anything goes wrong). Same result... Please check the md5 on the installer you used, to make sure it's the _current_ installer. It should be $ md5sum Z* fb9aec9e3a0e5b3487752d5b7b798df6 *Zope-2.8.0-b2-win32.exe That's what I have. My box (vmware) is pretty much a new XP installation with no old Python installation except a local Zope installation which its own Python (but not registered anywhere in the registry). -aj pgppB0v4SglP2.pgp Description: PGP signature ___ 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 )
Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ preparing 2.8.0 release for tomorrow
[Michael Haubenwallner, to Andreas Jung] Must be yesterdays version then (i had just that error message, after removing an ancient pywintypes23.dll from C:\WINNT\system32). There are 2 pywintypes23.dlls now: $ZOPE_HOME\bin\PyWinTypes23.dll $ZOPE_HOME\bin\Lib\site-packages\pywin32_system32\pywintypes23.dll Zope starts fine now (although there are no messages in the console window anymore). Ya, I noticed that too. I don't know what's _intended_ here. The instance's event.log and Z2.log appear to be fine, and event.log in particular shows that you can shut down Zope cleanly now by hitting Ctrl+C in the DOS box from which you launched Zope; e.g., ... 2005-06-05T13:44:39 INFO ZServer HTTP server started at Sun Jun 05 13:44:39 2005 Hostname: FATDESK Port: 8080 -- 2005-06-05T13:44:41 INFO Zope Ready to handle requests [... here I played with Zope for a brief time, then hit Ctrl+C ...] -- 2005-06-05T13:46:01 INFO WinSignalHandler Caught signal SIGINT -- 2005-06-05T13:46:01 INFO Z2 Shutting down -- 2005-06-05T13:46:01 INFO ZServer closing HTTP to new connections ___ 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 )
Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ preparing 2.8.0 release for tomorrow
[Tim Peters] Please check the md5 on the installer you used, to make sure it's the _current_ installer. It should be $ md5sum Z* fb9aec9e3a0e5b3487752d5b7b798df6 *Zope-2.8.0-b2-win32.exe [Andreas Jung] That's what I have. My box (vmware) is pretty much a new XP installation with no old Python installation except a local Zope installation which its own Python (but not registered anywhere in the registry). I'm not sure what local Zope installation (LZI) means. Running a Windows Zope installer always writes registry keys, so if your LZI was created by running a Windows Zope installer, you do have stuff in the registry pointing at it. I don't know why that would matter, but maybe it does. ___ 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 )
Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ preparing 2.8.0 release for tomorrow
--On 5. Juni 2005 14:07:52 -0400 Tim Peters [EMAIL PROTECTED] wrote: [Tim Peters] Please check the md5 on the installer you used, to make sure it's the _current_ installer. It should be $ md5sum Z* fb9aec9e3a0e5b3487752d5b7b798df6 *Zope-2.8.0-b2-win32.exe [Andreas Jung] That's what I have. My box (vmware) is pretty much a new XP installation with no old Python installation except a local Zope installation which its own Python (but not registered anywhere in the registry). I'm not sure what local Zope installation (LZI) means. Running a Windows Zope installer always writes registry keys, so if your LZI was created by running a Windows Zope installer, you do have stuff in the registry pointing at it. I don't know why that would matter, but maybe it does. So what would be the solution to get b2 running without touching this installation (which I need for my work)? Andreas pgpioaBM0simE.pgp Description: PGP signature ___ 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 )
Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ preparing 2.8.0 release for tomorrow
[Andreas Jung] That's what I have. My box (vmware) is pretty much a new XP installation with no old Python installation except a local Zope installation which its own Python (but not registered anywhere in the registry). [Tim Peters] I'm not sure what local Zope installation (LZI) means. Running a Windows Zope installer always writes registry keys, so if your LZI was created by running a Windows Zope installer, you do have stuff in the registry pointing at it. I don't know why that would matter, but maybe it does. [Andreas Jung] So what would be the solution to get b2 running without touching this installation (which I need for my work)? I don't know -- I'm still not even sure what LZI means to you. Resolution probably depends on some detail I wouldn't be able to guess, and I have no experience trying to run more than one installed Zope on a Windows box. Anyone else? Whatever LZI is, if it were my box I'd uninstall it, and reinstall it later (the uninstall process would leave its Zope instance home alone). ___ 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 )
Re: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ preparing 2.8.0 release for tomorrow
--On 5. Juni 2005 14:30:53 -0400 Tim Peters [EMAIL PROTECTED] wrote: I don't know -- I'm still not even sure what LZI means to you. Resolution probably depends on some detail I wouldn't be able to guess, and I have no experience trying to run more than one installed Zope on a Windows box. Anyone else? Whatever LZI is, if it were my box I'd uninstall it, and reinstall it later (the uninstall process would leave its Zope instance home alone). I have to check this by tomorrow. The application we are building embeds Zope somehow but I don't know about the details how this is done since I am not in charge for building process and the distribtuion (so I basically started the installer and did my development without having to care about window details)...but I'll do some investigations ... Andreas pgp7YfssLumAD.pgp Description: PGP signature ___ 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 )
RE: [Zope-dev] Re: [Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ preparing 2.8.0 release for tomorrow
Run Zope in console fails for me with application has failed to start because pywintypes23.dll was not found... That is surprising :) The reason it *should* work is that pythonservice.exe, pythonw.exe and pywintypes23.dll are all in the same directory. One thing I ran into last night: I previously installed a Zope 2.8 build on my box and uninstalled it - however, the Instance Home for this installation was *not* manually removed. I then installed this b2 release - Zope itself was installed into a different directory, but the same Instance Home directory was used. As this Instance Home directory existed, Zope did *not* recreate certain key files in the Instance Home. Thus, zopeservice.py and runzope.bat pointed to the *old* Zope binary directory, not the new one. I could see how something like that could cause the problem. Mark ___ 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 )