[Zope] problem authenticating, even with emergency user

Ben Bartrum bba at inbox.com
Tue Jan 29 11:51:18 EST 2008


> -----Original Message-----
> From: dieter at handshake.de

> This looks like a broken "UserFolder" instance (one that cannot
> be loaded).
> As a consequence, its "validate" method cannot be found and
> "old_validation" (usually no longer used in modern Zope versions)
> is tried.
> 
> Check your logfile for warnings about not being able to load a class.

Yes, thanks - you are right.

2008-01-29T16:25:00 ERROR Zope Could not import Products.ZMySQLDA
Traceback (most recent call last):
  File "/www/Zope-2.9.1/lib/python/OFS/Application.py", line 714, in import_product
    product=__import__(pname, global_dict, global_dict, silly)
  File "/www/zope/instance2.9.1/Products/ZMySQLDA/__init__.py", line 91, in ?
    import DA
  File "/www/zope/instance2.9.1/Products/ZMySQLDA/DA.py", line 92, in ?
    from db import DB
  File "/www/zope/instance2.9.1/Products/ZMySQLDA/db.py", line 89, in ?
    import _mysql
ImportError: ld.so.1: python2.4: fatal: libmysqlclient.so.12: open failed: No such file or directory

If on the command line I do: python2.4 -c 'import _mysql' I get: 
ImportError: ld.so.1: python2.4: fatal: libmysqlclient.so.12:
open failed: No such file or directory

But if I do:
setenv LD_LIBRARY_PATH /usr/local/lib/
and then
python2.4 -c 'import _mysql'
it returns no error.

So to get the same effect for Zope, I have tried this in the zope.conf:

 <environment>
     LD_LIBRARY_PATH /usr/local/lib/
</environment>

Unfortunately, this has no effect.  Any ideas?




More information about the Zope mailing list