ZMySQLDA problem after following HOW TO...
I followed the directions in the How-To by alanpog. Everything seemed to go along well. I restarted and checked the control panel only to find a 'broken' installation... Here is the Traceback... Product at /Control_Panel / Products / ZMySQLDA ZMySQLDA Import Traceback Traceback (innermost last): File "/pub/Zope/lib/python/OFS/Application.py", line 387, in import_products product=__import__(pname, global_dict, global_dict, silly) File "lib/python/Products/ZMySQLDA/__init__.py", line 106, in ? import sys, os, Globals, DA File "/pub/Zope/lib/python/Products/ZMySQLDA/DA.py", line 108, in ? from db import DB File "/pub/Zope/lib/python/Products/ZMySQLDA/db.py", line 106, in ? import _mysql, regex, sys ImportError: No module named _mysql The How-To was excellent and I thank alan. Thank you in advance for any assistance with this problem. Robert
1. You may have forgotten the "python build.py" step during MySQLDB installation. It's not mentioned in the howto but in the README the howto refers to. 2. Your MySQL libraries and includes may not be where they are beeing looked for. Here is what I did (I posted this earlier): The solution that FINALLY WORKED for Suse 6.3, Zope 2.1.3, ZMySQLDA 1.1.3, MySQLDB 0.1.1 and MySQL 2.2.30 (installed in /usr/local/mysql): Added two links: ln -s /usr/local/mysql/include/mysql /usr/include/mysql ln -s /usr/local/mysql/lib/mysql /usr/lib/mysql Added the following line to /etc/ld.so.conf: /usr/local/mysql/lib/mysql And then ran "ldconfig" HTH, Ragnar
I followed the directions in the How-To by alanpog. Everything seemed to go along well. I restarted and checked the control panel only to find a 'broken' installation...
Here is the Traceback...
Product at /Control_Panel / Products / ZMySQLDA
ZMySQLDA Import Traceback
Traceback (innermost last): File "/pub/Zope/lib/python/OFS/Application.py", line 387, in import_products product=__import__(pname, global_dict, global_dict, silly) File "lib/python/Products/ZMySQLDA/__init__.py", line 106, in ? import sys, os, Globals, DA File "/pub/Zope/lib/python/Products/ZMySQLDA/DA.py", line 108, in ? from db import DB File "/pub/Zope/lib/python/Products/ZMySQLDA/db.py", line 106, in ? import _mysql, regex, sys ImportError: No module named _mysql
Well, just to update the readers, I went back and deleted everything installed by the "How-To..." and tried it just using the directions for the "Software Product: ZMySQLDA" by MikeP. That worked perfectly. I am using SuSE 6.2 on my server and did not need any other files. Just followed the directions. Recommended. Someone with more experience than I might want to figure out when one really needs to use the How-To, rather than the product instructions. Even though people tried to save me some trouble, and it looked like a good thing given the dates on the how-to vs the instructions, there were subtle differences that made my experience different from some others. Perhaps the List party line should be: if the instructions do not work for you, then check out this how-to. Of course, I outsmarted myself, too, by not trying those instructions first! Thanks again to all. -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Robert Geiger Sent: Saturday, January 29, 2000 8:18 PM To: Zope; Zope-Dev Subject: [Zope] ZMySQLDA problem after following HOW TO... I followed the directions in the How-To by alanpog. Everything seemed to go along well. I restarted and checked the control panel only to find a 'broken' installation... Here is the Traceback... Product at /Control_Panel / Products / ZMySQLDA ZMySQLDA Import Traceback Traceback (innermost last): File "/pub/Zope/lib/python/OFS/Application.py", line 387, in import_products product=__import__(pname, global_dict, global_dict, silly) File "lib/python/Products/ZMySQLDA/__init__.py", line 106, in ? import sys, os, Globals, DA File "/pub/Zope/lib/python/Products/ZMySQLDA/DA.py", line 108, in ? from db import DB File "/pub/Zope/lib/python/Products/ZMySQLDA/db.py", line 106, in ? import _mysql, regex, sys ImportError: No module named _mysql The How-To was excellent and I thank alan. Thank you in advance for any assistance with this problem. Robert _______________________________________________ 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 (2)
-
Ragnar Beer -
Robert Geiger