[zope] : installation of MySQL

Andy Dustman andy@dustman.net
Wed, 17 Jan 2001 14:46:31 -0500 (EST)


On Wed, 17 Jan 2001, K H Subrahmanyan wrote:

> 
> hi,
> 
>   I am using ZOPE in Linux.
> Now I want to install MySQL to that.
> I have installed MySQLDA and MySQLdb to that.
> but still that is giving the following error.
> kindly help me.
> 
> 
> 
> 
> 
> ZMySQLDA Import Traceback
> 
> Traceback (innermost last):
>   File "/zope/zope-linux/lib/python/OFS/Application.py", line 397, in
> import_products
>     product=__import__(pname, global_dict, global_dict, silly)
>   File "/zope/zope-linux/lib/python/Products/ZMySQLDA/__init__.py", line
> 106, in ?
>     import sys, os, Globals, DA
>   File "/zope/zope-linux/lib/python/Products/ZMySQLDA/DA.py", line 108, in ?
>     from db import DB
>   File "/zope/zope-linux/lib/python/Products/ZMySQLDA/db.py", line 106, in ?
>     import MySQL, regex, sys
> ImportError: Bad magic number in /zope/zope-linux/lib/python1.5/MySQL.pyc

Well, for starters, there's no MySQL.py (or .pyc) in MySQLdb.

SO: You are using an old ZMySQLDA. Judging from the traceback, you are
using 1.1.3. Please read http://www.zope.org/Members/adustman/MySQL_Updates 
for more information.

ZMySQLDA-2.0.2 is about to be pushed out the door (waiting on some user
feedback). I'm going to send that to you off-list, along with
MySQLdb-0.3.0.

-- 
Andy Dustman         PGP: 0xC72F3F1D
    @       .net     http://dustman.net/andy