On Wed, 02 Jan 2008 10:59:27 +0800
Michael Bibby <[EMAIL PROTECTED]> wrote:

> Hi, all.
> 
> I use OpenBSD 4.2 -release and the default chrooted apache.
> 
> I copied all files python needed, and it works. but the modules
> py-ldap doesn't work.
> 
> ----
> # tail -f /var/www/logs/error_log
> Traceback (most recent call last):
>   File "/cgi-bin/msm/domain_list", line 5, in ?
>     import ldapoperation
>   File "/cgi-bin/msm/ldapoperation.py", line 4, in ?
>     import ldap
>   File "/usr/local/lib/python2.4/site-packages/ldap/__init__.py",
> line 23, in ?
>     from _ldap import *
> ImportError: Cannot load specified object
> [Wed Jan  2 19:05:44 2008] [error] [client 172.16.252.1] Premature
> end of script headers: /cgi-bin/msm/domain_list
> ----

did you copied openldap libs/files too?
afaik, py-ldap module is linked against them.

regards,

joerg

Reply via email to