On Thu, 29 Jan 2004 11:03:39 -0500 (EST)
Something went horribly wrong when installing MySQL-python-0.9.3b1. Many of the*.so files were deleted. I replaced them from source and now get the following error.
Please explain how you can replace .so files from source, these are compiled object files!
The reality is that I don't understand how zope/python works at this level, although I am trying to learn. The fact that I can build zope from a tarball is a small miracle :-) I found the .so files at /Zope-2.7.0-rc1/build-base/python-2.3/build-lib/
Sounds like you need to recompile your C extensions. This is easily done from your SOFTWARE_HOME directory:
% python setup.py build_ext -if
This worked perfectly, I actually ran it from the ZOPE_HOME. Now getting back to solving my original problem of connecting to MySQL. When I put ZMySQLDA in the products directory and start zope I get the following error: 2004-01-29T17:37:34 ERROR(200) Zope Could not import Products.ZMySQLDA Traceback (most recent call last): File "/opt/Zope-2.7.0-rc1/lib/python/OFS/Application.py", line 654, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/opt/Zope-2.7.0-rc1/lib/python/Products/ZMySQLDA/__init__.py", line 91, in ? def panic(self, msg): File "/opt/Zope-2.7.0-rc1/lib/python/Products/ZMySQLDA/DA.py", line 92, in ? File "/opt/Zope-2.7.0-rc1/lib/python/Products/ZMySQLDA/db.py", line 89, in ? ImportError: No module named _mysql Traceback (most recent call last): File "/opt/Zope-2.7.0-rc1/lib/python/Zope/Startup/run.py", line 49, in ? run() File "/opt/Zope-2.7.0-rc1/lib/python/Zope/Startup/run.py", line 19, in run start_zope(opts.configroot) File "/opt/Zope-2.7.0-rc1/lib/python/Zope/Startup/__init__.py", line 51, in start_zope starter.startZope() File "/opt/Zope-2.7.0-rc1/lib/python/Zope/Startup/__init__.py", line 230, in startZope Zope.startup() File "/opt/Zope-2.7.0-rc1/lib/python/Zope/__init__.py", line 46, in startup _startup() File "/opt/Zope-2.7.0-rc1/lib/python/Zope/App/startup.py", line 45, in startup OFS.Application.import_products() File "/opt/Zope-2.7.0-rc1/lib/python/OFS/Application.py", line 631, in import_products import_product(product_dir, product_name, raise_exc=debug_mode) File "/opt/Zope-2.7.0-rc1/lib/python/OFS/Application.py", line 654, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/opt/Zope-2.7.0-rc1/lib/python/Zope/Startup/__init__.py", line 91, in ? def panic(self, msg): File "/opt/Zope-2.7.0-rc1/lib/python/Products/ZMySQLDA/DA.py", line 92, in ? File "/opt/Zope-2.7.0-rc1/lib/python/Products/ZMySQLDA/db.py", line 89, in ? ImportError: No module named _mysql