[Zope] Problem with Python Win32 Extensions

volker.wend@efgbsh.de volker.wend@efgbsh.de
Wed, 2 Apr 2003 21:37:34 +0200


I do not agreee with Dieter :-),  I just installed Zope on a windows machine
and I got the following modules:

[c:\program files\zope\bin]dir win32*.* /s1b
C:\Program Files\Zope\bin\lib\win32
C:\Program Files\Zope\bin\lib\win32\win32api.pyd
C:\Program Files\Zope\bin\lib\win32\win32clipboard.pyd
C:\Program Files\Zope\bin\lib\win32\win32event.pyd
[...]
C:\Program Files\Zope\bin\lib\win32\lib\win32serviceutil.py
C:\Program Files\Zope\bin\lib\win32\lib\win32serviceutil.pyc
C:\Program Files\Zope\bin\lib\win32\lib\win32traceutil.py
C:\Program Files\Zope\bin\lib\win32\lib\win32traceutil.pyc


Perhaps Igor made an upgrade from an older Version and his z2.py got
overwritten. I had the same problem. The install progam modified the swhome
and the update not.

# This is required path hackery for the win32 binary distribution
# that ensures that the bundled python libraries are used. In a
# win32 binary distribution, the installer will have replaced the
# marker string with the actual software home. If that has not
# happened, then the path munging code is skipped.
swhome=r'C:\Program Files\Zope'
if swhome != 'INSERT_SOFTWARE_HOME':
    import sys
    sys.path.insert(0, '%s/lib/python' % swhome)
    sys.path.insert(1, '%s/bin/lib' % swhome)
    sys.path.insert(2, '%s/bin/lib/plat-win' % swhome)
    sys.path.insert(3, '%s/bin/lib/win32' % swhome)
    sys.path.insert(4, '%s/bin/lib/win32/lib' % swhome)
    sys.path.insert(5, '%s' % swhome)

Kind regards,
Volker

-----Original Message-----
From: Dieter Maurer [mailto:dieter@handshake.de] 
Sent: Mittwoch, 2. April 2003 20:56
To: Igor Leturia
Cc: zope@zope.org
Subject: Re: [Zope] Problem with Python Win32 Extensions


Igor Leturia wrote at 2003-4-2 08:49 +0200:
 > ....
 >   The problem is that the piece of code works properly if I run it in
 > ActivePython or in Python+Python Win32 Extensions, but not if I run it  >
in the Python version that comes with Zope. Doesn't Zope's Python  > include
Python Win32 Extensions.

I do not think so.

Use one of the other Python's to run Zope.


Dieter

_______________________________________________
Zope maillist  -  Zope@zope.org http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )