Python-Sybase instalation problems
MichaĆ Sawicz <[email protected]> Tue, 25 Jan 2011 22:40:43 +0100
| Newsgroups | gmane.comp.python.sybase |
|---|---|
| Message-ID | <[email protected]> |
--===============4465015120976040744==
Content-Type: multipart/signed; micalg="pgp-sha1";
protocol="application/pgp-signature";
boundary="=-+qoAZPMtdpVEY96D2cLl"
--=-+qoAZPMtdpVEY96D2cLl
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Hi, I'm trying to get Python to work with a ASA 9.0.1 server and having
not much luck...
Just to confirm the server's working and such, the following in Perl
works fine:
DBI->connect('DBI:Sybase:server=3Dasademo;database=3Dasademo', 'DBA',
'SQL');
First I tried python-mssql as it's supposed to work with Sybase, too,
but I couldn't get connected to the database at all, getting "Could not
set connection properties" errors when I was able to connect at last.
I also tried tsql itself, which seemed to connect (I got a 1> prompt)
but regardless of what query I tried to execute, I got no response,
dropping me to another prompt (2>).
After some googling I found out that I should be using python-sybase. I
tried both 0.39 and 0.40pre1, yielding the same results:
> ctx.c:242: error: expected =E2=80=98=3D=E2=80=99, =E2=80=98,=E2=
=80=99, =E2=80=98;=E2=80=99, =E2=80=98asm=E2=80=99 or
> =E2=80=98__attribute__=E2=80=99 before =E2=80=98clientmsg_cb=E2=
=80=99
> ctx.c:287: error: expected =E2=80=98=3D=E2=80=99, =E2=80=98,=E2=
=80=99, =E2=80=98;=E2=80=99, =E2=80=98asm=E2=80=99 or
> =E2=80=98__attribute__=E2=80=99 before =E2=80=98servermsg_cb=E2=
=80=99
> ctx.c: In function =E2=80=98CS_CONTEXT_ct_callback=E2=80=99:
> ctx.c:364: error: =E2=80=98clientmsg_cb=E2=80=99 undeclared (firs=
t use in this
> function)
> ctx.c:364: error: (Each undeclared identifier is reported only
> once
> ctx.c:364: error: for each function it appears in.)
> ctx.c:370: error: =E2=80=98servermsg_cb=E2=80=99 undeclared (firs=
t use in this
> function)
> error: command 'gcc' failed with exit status 1
when built without -DHAVE_FREETDS. It built and installed fine with
either of -DHAVE_FREETDS and -DHAVE_FREETDS=3D82 (I've freetds 0.82 from
Debian lenny), but then trying to import the Sybase module results in:
> /usr/local/lib/python2.6/dist-packages/python_sybase-0.39-py2.6-l=
inux-i686.egg/sybasect.so: undefined symbol: cs_config
And now I give up :/
Am I doing something wrong or do I simply have to drop that and go some
other route?
Best regards,
--=20
Micha=C5=82 Sawicz <[email protected]>
--=-+qoAZPMtdpVEY96D2cLl
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
iEYEABECAAYFAk0/Q1sACgkQzQlUjpZYlbf/7QCdFBjVjR8PnFgN0Fx+Yfeu45O7
FvAAoMxnqfjULGxO3tlCIpGvjZVef9B5
=iF0C
-----END PGP SIGNATURE-----
--=-+qoAZPMtdpVEY96D2cLl--
--===============4465015120976040744==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
--===============4465015120976040744==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Python-sybase-misc mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-sybase-misc
--===============4465015120976040744==--