[Zope] Accesing python module

Leticia Larrosa LETICIA at tesla.cujae.edu.cu
Sun Jun 5 17:33:49 EDT 2005


Thanks to Tino Wildenhain.

Tino Wildenhain wrote:
> Zope on windows is packaged with own and right version 
> of python, which is 2.3 for all current Zopes.

Zope on Debian (for example) too?


-----Original Message-----
From: Tino Wildenhain <tino at wildenhain.de>
To: Leticia Larrosa <LETICIA at tesla.cujae.edu.cu>
Cc: zope at zope.org
Date: Sun, 05 Jun 2005 23:13:06 +0200
Subject: Re: [Zope] Accesing python module

> Am Sonntag, den 05.06.2005, 16:39 -0400 schrieb Leticia Larrosa:
> > Hi:
> >  I installed the "PyXml" package, and appear in the "c:\Python24\Lib
> > \site-packages" folder and i want to import a module of that library
> > from an external method:
> > "import xml.dom.ext"
> > But i can't import from an external method any of the modules that
> are
> > in the "Lib\site-packages" folder of my python instalation.
> > Why can't import them?
> > By default an external method have acces to modules that are in "Lib
> > \site-packages" of a Python installation?
> > I use Zope 2.7.6 
> > for windows and Python2.4 ("c:\Python24\Lib\site-packages" !)
> > The error that i get is:
> ...
> 
> Zope on windows is packaged with own and right version 
> of python, which is 2.3 for all current Zopes.
> 
> So you need to use the package for python 2.3
> and not 2.4. Next, since zope has own python,
> you either copy the module to zopes python
> or change startzope.bat to refer to your
> installed python2.3.
> 
> You cannot just point to or use 2.4, since 
> zopes extension classes are compiled for 2.3.
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope at 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 )
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20050605/1e542af6/attachment.htm


More information about the Zope mailing list