[Zope-DB] MySQLdb problem
prabuddha ray
buddha_2001 at rediffmail.com
Thu Feb 10 02:18:02 EST 2005
I gave up the oracleDA idea coz cudnt arrange a oracle client
for my SuSE n went for mysql.Folllowing prob faced.
after giving follwing commands
$ tar xfz MySQL-python-1.0.1.tar.gz
$ cd MySQL-python-1.0.0
$ export mysqlversion="4.0.20"
$ export mysqlclient="mysqlclient"
$ export mysqloptlibs="ssl crypto"
$ python setup.py build
$ su
# python setup.py install
and copying the mysqldb directory to zope's instance;s Products
dir i started zope.
the follwing error came up...
-----------
2005-02-10T12:38:00 ERROR(200) Zope Could not import
Products.MySQLdb
Traceback (most recent call last):
File "/opt/Zope-2.7/lib/python/OFS/Application.py", line 660,
in import_product
product=__import__(pname, global_dict, global_dict, silly)
File "/home/zope/Products/MySQLdb/__init__.py", line 27, in ?
import _mysql
ImportError: No module named _mysql
Traceback (most recent call last):
File "/opt/Zope-2.7/lib/python/Zope/Startup/run.py", line 50,
in ?
run()
File "/opt/Zope-2.7/lib/python/Zope/Startup/run.py", line 19,
in run
start_zope(opts.configroot)
File "/opt/Zope-2.7/lib/python/Zope/Startup/__init__.py", line
51, in start_zope
starter.startZope()
File "/opt/Zope-2.7/lib/python/Zope/Startup/__init__.py", line
230, in startZope
Zope.startup()
File "/opt/Zope-2.7/lib/python/Zope/__init__.py", line 47, in
startup
_startup()
File "/opt/Zope-2.7/lib/python/Zope/App/startup.py", line 45,
in startup
OFS.Application.import_products()
File "/opt/Zope-2.7/lib/python/OFS/Application.py", line 637,
in import_products
import_product(product_dir, product_name,
raise_exc=debug_mode)
File "/opt/Zope-2.7/lib/python/OFS/Application.py", line 660,
in import_product
product=__import__(pname, global_dict, global_dict, silly)
File "/home/zope/Products/MySQLdb/__init__.py", line 27, in ?
import _mysql
ImportError: No module named _mysql
----------
the building part was ok but while giving install python command
thru su, no file was copied giving something like this for every
file of MySQLdb dir :"not copying CompatMysqldb.py (output
up-to-date)"
and "skipping byte-compilation of
/usr/lib/python2.2/site-packages/CompatMysqldb.py to
CompatMysqldb.pyc"
Kindly help out...
More information about the Zope-DB
mailing list