[python-sybase] Python Sybase-0.36 module with SUSE Linux 9.0

"Döring, Markus" m.doering at BGBM.org
Wed, 9 Jun 2004 15:11:48 +0200


Hi Skip,

thanks a lot!
Works immediately and a lot easier than using ldconfig.

I am still stuck with what seems to be an Sybase error though:

>>> db = Sybase.connect('LINUX', 'sa', 'XXX')
>>> c=db.cursor()
>>> c.callproc('sp_help')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.3/site-packages/Sybase.py", line 653, in callproc
    self.description = fetcher.start(self.arraysize, out_params)
  File "/usr/lib/python2.3/site-packages/Sybase.py", line 338, in start
    return _FetchNow.start(self, arraysize)
  File "/usr/lib/python2.3/site-packages/Sybase.py", line 262, in start
    self._raise_error(Error, 'ct_send')
  File "/usr/lib/python2.3/site-packages/Sybase.py", line 287, in _raise_error
    raise exc(text)
Sybase.Error: ct_send



thanks,
Markus


-----Original Message-----
From: Skip Montanaro [mailto:skip@pobox.com]
Sent: Mittwoch, 9. Juni 2004 15:00
To: Döring, Markus
Cc: python-sybase@www.object-craft.com.au
Subject: Re: [python-sybase] Python Sybase-0.36 module with SUSE Linux
9.0


Try running 

    python setup.py build_ext --help

There is a --rpath flag you can give when building extensions.  I think
something like

    python setup.py clean -a
    python setup.py build_ext --rpath=$SYBASE_OCS/lib
    python setup.py install

would probably do the trick.

-- 
Skip Montanaro
Got gigs? http://www.musi-cal.com/submit.html
Got spam? http://www.spambayes.org/
skip@pobox.com