[Zope] ZMySQLDA install problem

Alex Rice alrice@swcp.com
Sun, 2 May 1999 14:51:22 -0600 (MDT)


Hi, I have followed the installation instructions for the MySQL adapter,
but Zope can't find the module.

I compiled MySQLmodule.so and copied it into
/usr/share/zope/lib/python/Products/ZMySQLDA

% cd /usr/share/zope/lib/python/Products/ZMySQLDA
% python 
Python 1.5.1 (#2, Apr 22 1999, 10:16:31)  [GCC 2.7.2] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import MySQL
>>> MySQL
<module 'MySQL'>
>>> 

That's the correct location for the module, right?

The permissions are correct everything under /usr/share/zope. (I have
got into the habit of running chown -R and chgrp -R every time I start
messing around with Zope).

I have killed the Zope process in the "control panel" after installing
the .so file.

When I hit Traceback, I see this:

  Traceback (innermost last):
    File "/usr/share/zope/lib/python/OFS/Application.py", line 395, in import_products
      product=__import__(pname, global_dict, global_dict, silly)
    File "lib/python/Products/ZMySQLDA/__init__.py", line 106, in ?
    File "lib/python/Products/ZMySQLDA/DA.py", line 108, in ?
    File "lib/python/Products/ZMySQLDA/db.py", line 106, in ?
  ImportError: No module named MySQL

My setup is:

Linux/CobaltRaQ
Python 1.5.1
Zope 1.10.2
MySQL 3.22.21
Python lib is /usr/local/lib/python1.5/

Any suggestions would be muchly appreciated.


Alex Rice    |    alrice@swcp.com    |    http://www.swcp.com/~alrice
    Current Location: N. Rio Grande Bioregion, Southwestern USA