Hello, In order to manage m$ office documents from Zope (2.5.1 win32) I've downloaded the win32all-151 installer (for python 2.1) so I can use COM from Zope. My problem is that I'm unable to install it since I have no python interpreter installed (apart from zope's python), the package installer complains about "python 2.1 does not appear to be installed on this computer.". * someone has managed to install this package into zope? * if not: it's safe to download/install python 2.1, install win32all-151 and finally copy the package into the zope tree? * if not: can I import the win32com package from an script running under zope control if it is installed outside of the zope tree (in a "standard place")? Playing with PYTHONPATH or sys.path? TIA -- //// (@ @) ---------------------------oOO----(_)----OOo------------------------ Los pecados de los tres mundos desapareceran conmigo. Alexis Roda - Universitat Rovira i Virgili - Reus, Tarragona (Spain) --------------------------------------------------------------------
On Tue, 2003-05-27 at 09:11, Alexis Roda wrote:
Hello, In order to manage m$ office documents from Zope (2.5.1 win32) I've downloaded the win32all-151 installer (for python 2.1) so I can use COM from Zope. My problem is that I'm unable to install it since I have no python interpreter installed (apart from zope's python), the package installer complains about "python 2.1 does not appear to be installed on this computer.".
* someone has managed to install this package into zope?
Yes, add PythonPath and InstallPath values to your registry http://www.google.ca/search?q=InstallPath+python+registry
* if not: it's safe to download/install python 2.1, install win32all-151 and finally copy the package into the zope tree?
Yes. Or use that python 2.1.3 instead of the one with Zope, see the Zope Book 2.6 on z2.py.
* if not: can I import the win32com package from an script running under zope control if it is installed outside of the zope tree (in a "standard place")? Playing with PYTHONPATH or sys.path?
Yes. Cheers. -- Andy McKay
Hello, In order to manage m$ office documents from Zope (2.5.1 win32) I've downloaded the win32all-151 installer (for python 2.1) so I can use COM from Zope. My problem is that I'm unable to install it since I have no python interpreter installed (apart from zope's python), the package installer complains about "python 2.1 does not appear to be installed on this computer.".
* someone has managed to install this package into zope? I had the same problem with another package which also required python2.1 and was unable to detect it. I'm not sure it's a straight way to do it but it worked for me
I assumed that the package installer looks for installed python in registry, so I did the following: - Installed python 2.1.3 to a directory c:\python21. - From registry I exported HKLM/SOFTWARE/Python/PythonCore/2.1 to the text file - In the file I replaced all instances of c:\python21 with the zope binary path (in my case: c:\program files\ZopeTest\bin) - Then imported updated file back to registry. After that I run the package installer again and this time it successfully installed a package. Regards, Dmitry
participants (3)
-
Alexis Roda -
Andy McKay -
Dmitry Dembinsky