Re: [Zope] ZPyGreSQLDA on Tru64?
On Friday 24 November 2000, at 22 h 1, the keyboard of Dieter Maurer [EMAIL PROTECTED] wrote: Try "import _pg" in an interactive Python interpreter. I remember that in some cases I got a better error message that indicated precisely, what was missing. Not here: wallis:~ python Python 2.0c1 (#2, Nov 24 2000, 11:08:10) [C] on osf1V4 Type "copyright", "credits" or "license" for more information. import _pg Traceback (most recent call last): File "stdin", line 1, in ? ImportError: dlopen: cannot load /usr/local/lib/python2.0/site-packages/_pgmodu le.so If it does not, then you may try "ldd _pgmodule.so" This program does not exist on Tru64, v4. (It appeared on v5 but I don't plan to upgrade right now.) I hope, that one of these approaches will reveal what is wrong. Otherwise, it would probably be a missing symbol. But it is quite difficult to detect which one. OK, I'll try Zope another time. ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] ZPyGreSQLDA on Tru64?
On Friday 24 November 2000, at 16 h 1, the keyboard of Stephane Bortzmeyer [EMAIL PROTECTED] wrote: Zope tells me that my ZPyGreSQLDA (PostgreSQL interface) is broken No longer : the path to the PostgreSQL library was not put in the shared library object so I had to add: # PostgreSQL LD_LIBRARY_PATH=/local/pgsql/lib export LD_LIBRARY_PATH to the Zope start script and now it works fine. Thanks for those who searched. Suggestion: to improve the error message: "libpq not found" would have been more than enough to diagnose the problem. ___ Zope maillist - [EMAIL PROTECTED] 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 )
[Zope] ZPyGreSQLDA on Tru64?
Zope tells me that my ZPyGreSQLDA (PostgreSQL interface) is broken and yields the following trace: ZPyGreSQLDA Import Traceback Traceback (most recent call last): File "/local/src/Zope-2.2.2-src/lib/python/OFS/Application.py", line 397, in import_products product=__import__(pname, global_dict, global_dict, silly) File "/local/zope/lib/python/Products/ZPyGreSQLDA/__init__.py", line 89, in ? import sys, os, Globals, DA File "/local/zope/lib/python/Products/ZPyGreSQLDA/DA.py", line 91, in ? from db import DB File "/local/zope/lib/python/Products/ZPyGreSQLDA/db.py", line 89, in ? import _pg, regex, sys, types ImportError: dlopen: cannot load /usr/local/lib/python2.0/site-packages/_pgmodu le.so but : wallis:/local/zope ls -l /usr/local/lib/python2.0/site-packages/_pgmodule.so -r-xr-xr-x 1 root system 65536 Nov 24 15:50 /usr/local/lib/python2.0/site-packages/_pgmodule.so Zope version: Zope 2.2.2 (source release, python 1.5.2, linux2) Python version: 2.0c1 (#2, Nov 24 2000, 11:08:10) [C] System Platform: osf1V4 Process ID: 9128 (5381388672) Running for: 1 min 52 sec ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] ZPyGreSQLDA on Tru64?
Stephane Bortzmeyer writes: ImportError: dlopen: cannot load /usr/local/lib/python2.0/site-packages/_pgmodu le.so I expect, that "_pgmodule.so" needs some other shared object or symbol that is unavailable. Try "import _pg" in an interactive Python interpreter. I remember that in some cases I got a better error message that indicated precisely, what was missing. If it does not, then you may try "ldd _pgmodule.so" to list the shared objects required by "_pg". It will tell you, when there are some missing. I hope, that one of these approaches will reveal what is wrong. Otherwise, it would probably be a missing symbol. But it is quite difficult to detect which one. Dieter ___ Zope maillist - [EMAIL PROTECTED] 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 )