Zope + Zap + ZOracleDA
Hello all, I am trying to connect Zope to an oracle database. All 3 packages compiled successfully. Zope+Medusa is able to initialize ZOracleDA. But when I try Zope with Zap, ZOracleDA is reported broken with the following traceback: ---------------------- Traceback (innermost last): File "/mnt/spare1/pub/webDevel/Zope-2.1.1/lib/python/OFS/Application.py", line 387, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/mnt/spare1/pub/webDevel/Zope-2.1.1/lib/python/Products/ZOracleDA/__ini t__.py", line 103, in ? import DA File "/mnt/spare1/pub/webDevel/Zope-2.1.1/lib/python/Products/ZOracleDA/DA.py ", line 103, in ? from db import DB File "/mnt/spare1/pub/webDevel/Zope-2.1.1/lib/python/Products/ZOracleDA/db.py ", line 101, in ? import DCOracle, DateTime File "/mnt/spare1/pub/webDevel/Zope-2.1.1/lib/python/Products/ZOracleDA/DCOra cle/__init__.py", line 66, in ? from ocidb import Connect, error File "/mnt/spare1/pub/webDevel/Zope-2.1.1/lib/python/Products/ZOracleDA/DCOra cle/ocidb.py", line 50, in ? import oci_, ociCurs, ociProc ImportError: libclntsh.so.8.0: cannot open shared object file: No such file or directory ---------------------- Can somebody point out what I missed during the configuration? packages used: ZOracleDA-2.1.0-nonbin.tgz Zap-1.1.0-linux-x86.tgz Zope-2.1.1-linux2-x86.tgz TIA, Laurent -- Laurent Chane-Chuen-Kee A X I O M (Cambridge) Ltd. Tel: +44 (0)1223 810 305 Fax: +44 (0)1223 812 889
Laurent Chane-Chuen-Kee wrote:
Hello all,
I am trying to connect Zope to an oracle database. All 3 packages compiled successfully. Zope+Medusa is able to initialize ZOracleDA. But when I try Zope with Zap, ZOracleDA is reported broken with the following traceback:
----------------------
Traceback (innermost last): ImportError: libclntsh.so.8.0: cannot open shared object file: No such file or directory
----------------------
Can somebody point out what I missed during the configuration?
<guess> You must still use medusa (ZServer, in this case) even if you want to use PCGI (which is what Zap uses). ZServer listens to many protocols, like HTTP, FTP, and PCGI. If you don't use medusa, PCGI will try to fire up Zope the OLD way, and it will probably work but it's not the right way. The problem is, now your process environment has the wrong LD_LIBRARY_PATH (and a whole slew of other problems related to running Zope the old way, like no concurrency) and cannot find your Oracle dynamic libraries. Run ZServer first. Then Zap. Then it should work. -Michel
participants (2)
-
Laurent Chane-Chuen-Kee -
Michel Pelletier