[python-sybase] ImportError: comn_free ?

Harri Pasanen harri.pasanen at trema.com
Mon, 9 Dec 2002 09:05:08 +0100


On Friday 06 December 2002 18:51, Tony Burger wrote:
> This is kinda wierd. This works just fine when run from the command lin=
e
> using "python script_name.py" but blows up when run in a CGI fashion. A=
ny
> ideas why it can't find "comn_free"?
[SNIP|
> [error] from sybasect import *
> [error] ImportError: /usr/local/sybase/lib/libcomn.so: undefined symbol=
:
> comn_free

LD_LIBRARY_PATH?

Problem is most likely that it picks up /usr/lib/libintl.so  (gettext=20
library), and not the sybase version (probably in your environment in=20
/usr/local/sybase/lib/libintl.so).

-Harri