From: De C. <de...@uc...> - 2002-10-18 23:27:31
|
Greetings all. I am a Python newbie but a Sybase hacker of old (also a Tcl hacker). I want to learn python and since databases are my favourite play-toy and I have several sybase servers, I thought I would get sybase-python and try it out. I downloaded from the website http://www.object-craft.com.au/projects/sybase/download.html and installed using the install command suggested for linux systems python setup.py install I downloaded the sample script (cut and pasted from http://www.object-craft.com.au/projects/sybase/examples.html and edited it slightly to refer to one of my servers. I then ran an interactive python session and pasted in commands one at a time. the first thing I noticed was that the libct.so was not automatically found, I had to add /opt/sybase/lib to my LD_LIBRARY_PATH envar before the Sybase.py module would work. Python 1.5.2 (#1, Apr 3 2002, 18:16:26) [GCC 2.96 20000731 (Red Hat Linux 7.2 2 on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import sys, string, Sybase Traceback (innermost last): File "<stdin>", line 1, in ? File "/usr/lib/python1.5/site-packages/Sybase.py", line 15, in ? from sybasect import * ImportError: libct.so: cannot open shared object file: No such file or directory >>> adding /opt/sybase/lib to the LD_LIBRARY_PATH envar gets us past this error, but... Python 1.5.2 (#1, Apr 3 2002, 18:16:26) [GCC 2.96 20000731 (Red Hat Linux 7.2 2 on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import sys, string, Sybase Segmentation fault (core dumped) this is not encouraging :-) just to make sure Python 1.5.2 (#1, Apr 3 2002, 18:16:26) [GCC 2.96 20000731 (Red Hat Linux 7.2 2 on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import sys >>> import string >>> import Sybase Segmentation fault (core dumped) it is definitely the sybase module that is croaking. I am running this sybase server (in this instance): SQL Server/11.0.3.3/P/Linux Intel/Linux 2.0.36 i586/1/OPT/Thu Sep 10 13:42:44 CEST 1998 the home page for the Sybase.py project says that 11.0.3 is supported, so I hope I will be able to talk to my server if I can ever get the module to load. the rest of the environment: gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110) can anyone give me a clue please, so I can get started? tia de -- ............................................................................. :De Clarke, Software Engineer UCO/Lick Observatory, UCSC: :Mail: de...@uc... | : :Web: www.ucolick.org | Don't Fear the Penguins : :1024D/B9C9E76E F892 5F17 8E0A F095 05CD EE8B D169 EDAA B9C9 E76E: |