[Zope-DB] ImportError: No module named _mysql

Alex Cowan alex@funcom.com
Fri, 16 May 2003 08:55:03 +0200


Have you installed the MySQLdb properly?

You need to install it in the command line, unpack it and run setup.py using
the python instance in your zope/bin directory

If you just go in there and type python setup.py then chances are you're
installing it on the wrong instance of python

Alex

----- Original Message -----
From: "Shanmugam Srinivasan" <seenu78@infovation.com>
To: <Zope-DB@zope.org>
Sent: Friday, May 16, 2003 7:40 AM
Subject: [Zope-DB] ImportError: No module named _mysql


> Hi Sir,
>
> When i am trying to integrate MySQLdb into my Zopeserver i am getting
> this error info.
>
> Traceback (most recent call last):
>   File "C:\PROGRA~1\openflow\lib\python\OFS\Application.py", line 541,
> in import_product
>     product=__import__(pname, global_dict, global_dict, silly)
>   File "C:\PROGRA~1\openflow\lib\python\Products\MySQLdb\__init__.py",
> line 27, in ?
>     import _mysql
> ImportError: No module named _mysql
>
> The OS i am using is Win 2000 Server.
> Python version 2.2
> Zope 2.6.1
> MySql-python package -0.9.1
> ZMySql-DB 2.0.8
>
> Is this ZMySql-DB 2.0.8 version compatible with others? Help me to get
> overcome from this problem...
>
> Regards,
> Seenu
>
>
> _______________________________________________
> Zope-DB mailing list
> Zope-DB@zope.org
> http://mail.zope.org/mailman/listinfo/zope-db
>