I'm currently running two similary equipped Linux boxes with Zope 2.6 and MySQL 3.23.40 (only differences are HW equipment and MySQL install directories). I also installed MySQL-python 0.9.2 and ZMySQLDA-2.0.8: on the first machine (standard MySQL install) everything is fine, on the second I get the "common" error "ImportError: No module named _mysql" on ZMySQLDA product.
I installed everything according to docs. In particular, I used the Zope's version of python interpreter to install MySQL-python and everything went OK. In fact, from <ZOPE-DIR>/bin/python I can run the interpreter and do the usual:
I'm currently running two similary equipped Linux boxes with Zope 2.6 and MySQL 3.23.40 (only differences are HW equipment and MySQL install directories). I also installed MySQL-python 0.9.2 and ZMySQLDA-2.0.8: on the first machine (standard MySQL install) everything is fine, on the second I get the "common" error "ImportError: No module named _mysql" on ZMySQLDA product.
I installed everything according to docs. In particular, I used the Zope's version of python interpreter to install MySQL-python and everything went OK. In fact, from <ZOPE-DIR>/bin/python I can run the interpreter and do the usual:
import _mysql
db=_mysql.connect(unix_socket="...", ..., ...)
...
However, Zope seems not to be able to use MySQLdb (I tried a python script but I had got the same results: ImportError: No module named _mysql)
Can anybody suggest a solution or a hint what to look for (permissions, paths. ...)?
Thank you in advance for your time