[Zope] dd

Patrick Miller pert@tas.tas-kc.com
Sun, 4 Mar 2001 07:01:38 -0600 (CST)


how do I tell zope which python to use. and add the zmysqlda to it?

mysql module wanted something newer than 1.5 -- as currently setup 1.5 is in the zope seen at the bottom -- I
added python 2.x to the system from the TAR ball, and made sure the mysql module was upto date (as seen in the
top half below).


MySQL-python-0.3.3# python setup.py install
running install
running build
running build_py
not copying MySQLdb.py (output up-to-date)
not copying CompatMysqldb.py (output up-to-date)
running build_ext
skipping '_mysql' extension (up-to-date)
running install_lib
copying build/lib.linux-i486-2.0/MySQLdb.py -> /usr/local/lib/python2.0/site-packages
copying build/lib.linux-i486-2.0/CompatMysqldb.py -> /usr/local/lib/python2.0/site-packages
copying build/lib.linux-i486-2.0/_mysql.so -> /usr/local/lib/python2.0/site-packages
byte-compiling /usr/local/lib/python2.0/site-packages/MySQLdb.py to MySQLdb.pyc
byte-compiling /usr/local/lib/python2.0/site-packages/CompatMysqldb.py to CompatMysqldb.pyc
tas:/tmp/MySQL-python-0.3.3# cd /usr/local/zope/2.3.0/
tas:/usr/local/zope/2.3.0# ls
Extensions   README.txt          ZServer   bin  import  install      install.txt~  pcgi   stop       var
z2.pyc
zpasswd.pyc
LICENSE.txt  ZMySQLDA-2.0.4.tar  Zope.cgi  doc  inst    install.txt  lib           start  utilities  z2.py
zpasswd.py
tas:/usr/local/zope/2.3.0# ./stop 
[1]-  Terminated              ./start
tas:/usr/local/zope/2.3.0# ./start &
[3] 9932
tas:/usr/local/zope/2.3.0# ------
2001-03-04T12:16:12 ERROR(200) Zope Couldn't import Products.ZMySQLDA
Traceback (innermost last):
  File /usr/local/zope/2.3.0/lib/python/OFS/Application.py, line 530, in import_products
    (Object: string)
  File /usr/local/zope/2.3.0/lib/python/Products/ZMySQLDA/__init__.py, line 91, in ?
  File /usr/local/zope/2.3.0/lib/python/Products/ZMySQLDA/DA.py, line 91, in ?
  File /usr/local/zope/2.3.0/lib/python/Products/ZMySQLDA/db.py, line 89, in ?
ImportError: No module named _mysql