[Zope] Zope + _mysql + mysql database adapter ..
Jørgen Skogstad
jorgen.skogstad@norway.sun.com
Fri, 28 Jul 2000 15:36:38 +0200
Kindest..
I've compiled the "ZMySQLDA-1.2.0.tar.gz" for Zope v2.2 and
mysql with success. No errors occur exept after I restart Zope.
I have two python instances on my machine .. one in the
Zope dir (bundled with Zope) .. and the ordinary in
/usr/local/bin/python .. the Zope python instance does not
recognize the _mysql module, but the /usr/local/bin/python
does;
15:32 root@nexus [ /home/kroot > /usr/local/bin/python
Python 1.5.2 (#1, Jul 13 2000, 23:33:39) [GCC 2.95.2 19991024
(release)] on sunos5
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import _mysql
>>> ^D
15:32 root@nexus [ /home/kroot >
15:31 root@nexus [ /service/zope >
/local/zope/Zope-2.2.0-solaris-2.6-sparc/bin/python
Python 1.5.2 (#8, Nov 16 1999, 10:05:41) [GCC 2.8.1] on sunos5
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import _mysql
Traceback (innermost last):
File "<stdin>", line 1, in ?
ImportError: No module named _mysql
>>> ^D
15:31 root@nexus [ /service/zope > ^D
How can I make sure that the Zope bundled python instance
also gets access to the _mysql python module? I am sure this
is just a matter of arguments or possibly some env variables..
.. but as of right now; I am lost. ;)
Would apriciate any input! ;)
--
Med vennlig hilsen,
Jørgen Skogstad