[Zope] one step closer to connecting Zope to MySQL

Robert Rottermann robert@redcor.ch
Thu, 7 Jun 2001 14:36:13 +0200


I did an installation more or less like you did.
My mysql executable is in
/usr/lib/python1.5/site-packages/_mysql.so

robert
----- Original Message -----
From: "Horst Wald" <horstwald@hotmail.com>
To: <zope@zope.org>; <website-talk-admin@list.ora.com>
Sent: Thursday, June 07, 2001 1:41 PM
Subject: [Zope] one step closer to connecting Zope to MySQL


> Hi,
>
> thanks to all the help I got, I'm a lot closer to connecting Zope to MySQL
> now and I think I know where the problem is. I have:
>
> - started with Suse Linux 7.0
> - installed Zope 2.3.2
> - installed MySQL 3.22.32 and Python 1.5.2-something with YAST
> - downloaded and installed MySQL-python-0.3.5, ZMySQLDA-2.0.6 as stated
>   in the ebook I bought myself
> - downloaded and installed Distutils-1.0.2
> - tried to compile the MySQL-python-0.3.5
> - got the error message:
>
> Traceback (innermost last):
>   File "/usr/zope/lib/python/OFS/Application.py", line 528, in
> import_products
>     product=__import__(pname, global_dict, global_dict, silly)
>   File "/usr/zope/lib/python/Products/ZMySQLDA/__init__.py", line 91, in ?
>     import DA
>   File "/usr/zope/lib/python/Products/ZMySQLDA/DA.py", line 91, in ?
>     from db import DB
>   File "/usr/zope/lib/python/Products/ZMySQLDA/db.py", line 89, in ?
>     import _mysql
> ImportError: No module named _mysql
>
> I took a look at /usr/zope/lib/python/Products/ZMySQLDA/db.py and it says
in
> line 89: "import _mysql", hard coded. Which explains the error: I found no
> such file on my computer. So it seems, I still have to install something,
> right? What is it?
>
> I'll have a beer on you all when it works, promise!
>
> Horst
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>