[Zope-DB] ZMySQLDA and MySQL-python

Ed Leafe ed at leafe.com
Fri Sep 5 08:40:31 EDT 2003


On Thursday, September 4, 2003, at 03:27  AM, Alessio Beltrame wrote:

> - I installed MySQL-python using the Zope version of the interpreter, 
> the usual way (<zope dir>/bin/python setup.py build/install) with no 
> reported errors (just to be sure, I renamed the distro original 
> interpreter to python-dist, so that I'm sure I run the installation 
> using the Zope version of python)
>
> - MySQL-python DO work when run from the interpreter (I just can do 
> import _mysql, db=_mysql.connect(...), etc..)
>
> - ZMySQLDA does not work, giving the error message "ImportError: No 
> module named _mysql"

	Did you install ZMySQLDA with the Zope python? I made that mistake 
once. If you can access MySQL from the "regular" Python but not from 
the Zope version, you need to re-install ZMySQLDA using the Zope Python.

      ___/
     /
    __/
   /
  ____/
  Ed Leafe
  http://leafe.com/
  http://opentech.leafe.com




More information about the Zope-DB mailing list