Hi folks, I need to connect my Zope-instance to MySQL. I have installed Zope (2.6) with a working adapter to MySQL. Now I have installed Zope 2.7, too. I have downloaded the adapter as a src.rpm-component and have installed it with the konquerer. I believe that I have done it. At least Yast opened and did something. But nothing appeared in the products-list of Zope 2.7. Then, I have copied the product "ZMySQLDA" from version 2.6 to version 2.7. Now, of course the product appears in the list. But it is marked as 'broken' and produces the following error: Traceback (most recent call last): File "/opt/zope2.7/zope2.7/lib/python/OFS/Application.py", line 660, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/opt/zope2.7/zope_instance/Products/ZMySQLDA/__init__.py", line 91, in ? import DA File "/opt/zope2.7/zope_instance/Products/ZMySQLDA/DA.py", line 92, in ? from db import DB File "/opt/zope2.7/zope_instance/Products/ZMySQLDA/db.py", line 89, in ? import _mysql ImportError: No module named _mysql Bye, Holger ----------------------------------------------------- Butschek IT Consulting Holger Butschek Hellenstrasse 27 56179 Vallendar Telefon: 02 61 / 96 34 98 8 Fax : 02 61 / 96 37 75 7 Handy : 01 79 / 24 18 70 2 eMail : h.butschek@butschek-consult.de Web : http://www.butschek-consult.de Anfahrt: http://mail.map24.com/butschek-consult ----------------------------------------------------- Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
--On Donnerstag, 22. Juli 2004 10:44 Uhr +0200 Holger Butschek <h.butschek@butschek-consult.de> wrote:
Hi folks,
I need to connect my Zope-instance to MySQL. I have installed Zope (2.6) with a working adapter to MySQL. Now I have installed Zope 2.7, too. I have downloaded the adapter as a src.rpm-component and have installed it with the konquerer. I believe that I have done it. At least Yast opened and did something. But nothing appeared in the products-list of Zope 2.7. Then, I have copied the product "ZMySQLDA" from version 2.6 to version 2.7. Now, of course the product appears in the list. But it is marked as 'broken' and produces the following error:
Traceback (most recent call last): File "/opt/zope2.7/zope2.7/lib/python/OFS/Application.py", line 660, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/opt/zope2.7/zope_instance/Products/ZMySQLDA/__init__.py", line 91, in ? import DA File "/opt/zope2.7/zope_instance/Products/ZMySQLDA/DA.py", line 92, in ? from db import DB File "/opt/zope2.7/zope_instance/Products/ZMySQLDA/db.py", line 89, in ? import _mysql ImportError: No module named _mysql
Best to get the sources and install the DA from scratch..either the extension modules was installed in the wrong place or with wrong permissions or compiled with the wrong Python interpreter. -aj
ZMySQLDA requires MySQL-python, so u have to install MySQL-python. Please read INSTALL.txt and README.txt for more info. -- cn ======================= ZeOmega Southend road Bangalore, India Ph: 26632589 http://www.zeomega.com ====================== Holger Butschek wrote:
Hi folks,
I need to connect my Zope-instance to MySQL. I have installed Zope (2.6) with a working adapter to MySQL. Now I have installed Zope 2.7, too. I have downloaded the adapter as a src.rpm-component and have installed it with the konquerer. I believe that I have done it. At least Yast opened and did something. But nothing appeared in the products-list of Zope 2.7. Then, I have copied the product "ZMySQLDA" from version 2.6 to version 2.7. Now, of course the product appears in the list. But it is marked as 'broken' and produces the following error:
Traceback (most recent call last): File "/opt/zope2.7/zope2.7/lib/python/OFS/Application.py", line 660, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/opt/zope2.7/zope_instance/Products/ZMySQLDA/__init__.py", line 91, in ? import DA File "/opt/zope2.7/zope_instance/Products/ZMySQLDA/DA.py", line 92, in ? from db import DB File "/opt/zope2.7/zope_instance/Products/ZMySQLDA/db.py", line 89, in ? import _mysql ImportError: No module named _mysql
Bye, Holger
----------------------------------------------------- Butschek IT Consulting
Holger Butschek Hellenstrasse 27 56179 Vallendar
Telefon: 02 61 / 96 34 98 8 Fax : 02 61 / 96 37 75 7 Handy : 01 79 / 24 18 70 2
eMail : h.butschek@butschek-consult.de Web : http://www.butschek-consult.de Anfahrt: http://mail.map24.com/butschek-consult
-----------------------------------------------------
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
But I should already have installed it, because of Zope 2.6, don't I? It works in version 2.6. Holger -----Ursprüngliche Nachricht----- Von: Chandrakantha Nagaraja [mailto:cnagaraj@zeomega.com] Gesendet: Donnerstag, 22. Juli 2004 11:27 An: h.butschek@butschek-consult.de; zope@zope.org Betreff: Re: [Zope] ZMySQLDA ZMySQLDA requires MySQL-python, so u have to install MySQL-python. Please read INSTALL.txt and README.txt for more info. -- cn ======================= ZeOmega Southend road Bangalore, India Ph: 26632589 http://www.zeomega.com ====================== Holger Butschek wrote:
Hi folks,
I need to connect my Zope-instance to MySQL. I have installed Zope (2.6) with a working adapter to MySQL. Now I have installed Zope 2.7, too. I have downloaded the adapter as a src.rpm-component and have installed it with the konquerer. I believe that I have done it. At least Yast opened and did something. But nothing appeared in the products-list of Zope 2.7. Then, I have copied the product "ZMySQLDA" from version 2.6 to version 2.7. Now, of course the product appears in the list. But it is marked as 'broken' and produces the following error:
Traceback (most recent call last): File "/opt/zope2.7/zope2.7/lib/python/OFS/Application.py", line 660, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/opt/zope2.7/zope_instance/Products/ZMySQLDA/__init__.py", line
91, in ? import DA File "/opt/zope2.7/zope_instance/Products/ZMySQLDA/DA.py", line 92, in ? from db import DB File "/opt/zope2.7/zope_instance/Products/ZMySQLDA/db.py", line 89, in ? import _mysql ImportError: No module named _mysql
Bye, Holger
----------------------------------------------------- Butschek IT Consulting
Holger Butschek Hellenstrasse 27 56179 Vallendar
Telefon: 02 61 / 96 34 98 8 Fax : 02 61 / 96 37 75 7 Handy : 01 79 / 24 18 70 2
eMail : h.butschek@butschek-consult.de Web : http://www.butschek-consult.de Anfahrt: http://mail.map24.com/butschek-consult
-----------------------------------------------------
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in
this e-mail is strictly forbidden.
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Even I had installed it in 2.6 and when I moved them to 2.7.x it did not work, not sure where exactly it installs dependent modules, in older versions I use to compile and copy _mysql to either Products or lib/python folder HTH -- cn ======================= ZeOmega Southend road Bangalore, India Ph: 26632589 http://www.zeomega.com ====================== Holger Butschek wrote:
But I should already have installed it, because of Zope 2.6, don't I? It works in version 2.6.
Holger
-----Ursprüngliche Nachricht----- Von: Chandrakantha Nagaraja [mailto:cnagaraj@zeomega.com] Gesendet: Donnerstag, 22. Juli 2004 11:27 An: h.butschek@butschek-consult.de; zope@zope.org Betreff: Re: [Zope] ZMySQLDA
ZMySQLDA requires MySQL-python, so u have to install MySQL-python. Please read INSTALL.txt and README.txt for more info.
-- cn ======================= ZeOmega Southend road Bangalore, India Ph: 26632589 http://www.zeomega.com ======================
Holger Butschek wrote:
Hi folks,
I need to connect my Zope-instance to MySQL. I have installed Zope (2.6) with a working adapter to MySQL. Now I have installed Zope 2.7, too. I have downloaded the adapter as a src.rpm-component and have installed it with the konquerer. I believe that I have done it. At least Yast opened and did something. But nothing appeared in the products-list of Zope 2.7. Then, I have copied the product "ZMySQLDA"
from version 2.6 to version 2.7. Now, of course the product appears in
the list. But it is marked as 'broken' and produces the following error:
Traceback (most recent call last): File "/opt/zope2.7/zope2.7/lib/python/OFS/Application.py", line 660, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/opt/zope2.7/zope_instance/Products/ZMySQLDA/__init__.py", line
91, in ? import DA File "/opt/zope2.7/zope_instance/Products/ZMySQLDA/DA.py", line 92, in ? from db import DB File "/opt/zope2.7/zope_instance/Products/ZMySQLDA/db.py", line 89, in ? import _mysql ImportError: No module named _mysql
Bye, Holger
----------------------------------------------------- Butschek IT Consulting
Holger Butschek Hellenstrasse 27 56179 Vallendar
Telefon: 02 61 / 96 34 98 8 Fax : 02 61 / 96 37 75 7 Handy : 01 79 / 24 18 70 2
eMail : h.butschek@butschek-consult.de Web : http://www.butschek-consult.de Anfahrt: http://mail.map24.com/butschek-consult
-----------------------------------------------------
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in
this e-mail is strictly forbidden.
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
You probably have multiple copies of Python. The Python you use for Zope 2.6 may have the extension, the one you use for Zope 2.7 does not. On Thu, 22 Jul 2004, Holger Butschek wrote:
But I should already have installed it, because of Zope 2.6, don't I? It works in version 2.6.
Holger
-----Urspr�ngliche Nachricht----- Von: Chandrakantha Nagaraja [mailto:cnagaraj@zeomega.com] Gesendet: Donnerstag, 22. Juli 2004 11:27 An: h.butschek@butschek-consult.de; zope@zope.org Betreff: Re: [Zope] ZMySQLDA
ZMySQLDA requires MySQL-python, so u have to install MySQL-python. Please read INSTALL.txt and README.txt for more info.
-- cn ======================= ZeOmega Southend road Bangalore, India Ph: 26632589 http://www.zeomega.com ======================
On Thu, 22 Jul 2004 10:44:09 +0200, Holger Butschek <h.butschek@butschek-consult.de> wrote:
I need to connect my Zope-instance to MySQL. I have installed Zope (2.6) with a working adapter to MySQL. Now I have installed Zope 2.7, too. I have downloaded the adapter as a src.rpm-component and have installed it with the konquerer. I believe that I have done it. At least Yast opened and did something. But nothing appeared in the products-list of Zope 2.7. Then, I have copied the product "ZMySQLDA" from version 2.6 to version 2.7. Now, of course the product appears in the list. But it is marked as 'broken' and produces the following error:
ImportError: No module named _mysql
This can only mean that MySQLdb is not installed for the version of Python you are using. Didn't the recommended Python version change from Zope 2.6 to 2.7? Get MySQLdb-1.0.0.tar.gz (from http://sourceforge.net/projects/mysq-python), unpack it, and read README; there are specific hints for Zope there.
participants (5)
-
Andreas Jung -
Andy Dustman -
Chandrakantha Nagaraja -
Dennis Allison -
Holger Butschek