Well, Thanks to some great instructions at http://starship.python.net/crew/kernr/ and a couple small patches I've manage to get Zope extensions to build as .pyd's on my NT machine using mingw. And surprisingly things work, almost. Zope running with ZODB2 is utter perfection, however I run into some problems (most certainly of my own making) trying to run ZODB3. I'm too lazy to type in the entire traceback (Windows is being picky about letting me copy and paste from my command window), but here is hopefully the important stuff: Traceback (innermost last): <snip> File "C:\mingw\Zope\Zope-2.0.0a3-src\lib\python\ZODB\Connection.py", line 118, in __init__ self._cache=cache=PickleCache(self,cache_size, cache_deactivate_after) TypeError: function requires at most 2 arguments; 3 given. So I poke around a little bit and decide (as an experiment), in Connection.py, to try changing from cPickleCache import PickleCache to from BoboPOS.PickleCache import PickleCache since the PickleCache there has three arguments (for the __init__ function, that is). Rerunning Zope I get _almost_ exactly the same error message: Traceback (innermost last): <snip> File "C:\mingw\Zope\Zope-2.0.0a3-src\lib\python\ZODB\Connection.py", line 118, in __init__ self._cache=cache=PickleCache(self,cache_size, cache_deactivate_after) TypeError: function requires at most 3 arguments; 4 given. Harumph, I know not at all what to make of this. Any hints on what may be causing this? TIA, John
On Wed, 7 Jul 1999, Miller, John M. wrote: Great! I picked this up as well! Note, the error you desribe is fixed by the BoboPOS patch included in my old version (the one on the webpage). New versions of Zope for Windows will be based on mingw32. However, you may wish to pick up cywin for patch and diff. The cygnus full.exe (20.1) includes mingw32 so you can target both cygwin and mingw32 (Microsoft C library). Good luck, Anthony Pfrunder
participants (2)
-
Anthony Pfrunder -
Miller, John M.