Problem with Oracle DA on Solaris / Sparc
Hi Folks, We're getting this traceback from the "ZOracleDA (Broken product ZOracleDA)" item under the Product Management folder of the Zope Control Panel. ZOracleDA Import Traceback Traceback (innermost last): File "/i01/Zope-2.1.3-solaris-2.6-sparc/lib/python/OFS/Application.py", line 387, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/i01/Zope-2.1.3-solaris-2.6-sparc/lib/python/Products/ZOracleDA/__init__.py ", line 103, in ? import DA File "/i01/Zope-2.1.3-solaris-2.6-sparc/lib/python/Products/ZOracleDA/DA.py", line 103, in ? from db import DB File "/i01/Zope-2.1.3-solaris-2.6-sparc/lib/python/Products/ZOracleDA/db.py", line 101, in ? import DCOracle, DateTime File "/i01/Zope-2.1.3-solaris-2.6-sparc/lib/python/Products/ZOracleDA/DCOracle/__ init__.py", line 66, in ? from ocidb import Connect, error File "/i01/Zope-2.1.3-solaris-2.6-sparc/lib/python/Products/ZOracleDA/DCOracle/oc idb.py", line 50, in ? import oci_, ociCurs, ociProc ImportError: No module named oci_ The Oracle DA test script seemed to work fine, connecting with no error message. Since the test script also calls oci_ it seems that linking and compiling have been successful. Still, Zope that fails to find the module on startup. I did notice that there are lots of mudules, both .py files and source code that start with "oci_", but none that I could find named just "oci_". Thanks for any suggestions, Jerry S.
"Spicklemire, Jerry" wrote:
Hi Folks,
We're getting this traceback from the "ZOracleDA (Broken product ZOracleDA)" item under the Product Management folder of the Zope Control Panel.
[...]
ImportError: No module named oci_
The oci code is built into a shared library named oci_.so. The Makefile leaves the file in the src directory, which is where the test script is located. Since the two files are in the same place the test script works fine. For production, though, you need to copy/move *.so from the src directory to the DCOracle directory so that it will be found when ZOracleDA imports DCOracle. Doug -- ----------------------------------------------------------------------------- Doug Hellmann Healtheon / WebMD Software Engineer http://www.webmd.com
participants (2)
-
Doug Hellmann -
Spicklemire, Jerry