AW: [Zope] one step closer to connecting Zope to MySQL
Hi Horst, were you using the precompiled Zope package or not ? If you use the precompiled package you should find the following directory: /usr/zope/lib/python1.5/ You hav (successfully) installed the MySQL-python package to /usr/lib/python1.5/site-packages (even without noticing that fact ....) now all you need to do is this: cd /usr/zope/lib/python1.5 ln -s /usr/lib/python1.5/site-packages . # mark the dot ! restart your zope - Holle
-----Ursprüngliche Nachricht----- Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im Auftrag von Horst Wald Gesendet: Donnerstag, 7. Juni 2001 13:41 An: zope@zope.org; website-talk-admin@list.ora.com Betreff: [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 )
participants (1)
-
Tobias Laabs