From: Gerhard <ger...@gm...> - 2002-10-02 00:21:02
|
* Don Robertson <dcr...@pa...> [2002-10-02 11:12 +1200]: > Quoting Brian Lenihan <br...@ma...>: > > > The autoconf (2.52) which comes with Jaguar is broken on BSDish > > systems. Either install the autoconf from Fink, or install the latest > > version from GNU (2.54+). An alternative which may work is to edit > > line 7294 of your /usr/share/autoconf.autoconf.m4f like so: > > > > exit (setpgrp (1,1) == -1 ? 0 : 1);])] > > > I have installed autoconf 2.52, and have rebuilt and reinstalled the pypgsql module. > > I am still getting : > pgversion.c: In function `PgVersion_New': > pgversion.c:125: warning: `c1' might be used uninitialized in this function > pgversion.c:125: warning: `c2' might be used uninitialized in this function > pgversion.c:125: warning: `c1' might be used uninitialized in this function > pgversion.c:125: warning: `c2' might be used uninitialized in this function > pgversion.c:125: warning: `c1' might be used uninitialized in this function > pgversion.c:125: warning: `c2' might be used uninitialized in this function > > and > pglargeobject.c: In function `PgLo_pickle': > pglargeobject.c:1201: warning: unused variable `cnx' > pglargeobject.c:1202: warning: unused variable `fd' > > while building. These are just gcc warnings. I believe I've eliminated all of them in the CVS version already. > I am still getting ImportError: Failure linking new module when I try use the module > > eg: > > /Users/don/Documents/archive/Applications/pypgsql/test# python > Python 2.2 (#1, 07/14/02, 23:25:09) > [GCC Apple cpp-precomp 6.14] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import sys, os, string > >>> from pyPgSQL import PgSQL > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/lib/python2.2/site-packages/pyPgSQL/PgSQL.py", line 356, in ? > from libpq import * > File "/usr/lib/python2.2/site-packages/pyPgSQL/libpq/__init__.py", line 23, in ? > from libpq import * > ImportError: Failure linking new module > >>> from pyPgSQL import * > >>> from pyPgSQL import PgSQL > >>> from libpq import * > Traceback (most recent call last): > File "<stdin>", line 1, in ? > ImportError: No module named libpq > >>> from pyPgSQL.libpq import * > >>> from libpq import * > Traceback (most recent call last): > File "<stdin>", line 1, in ? > ImportError: No module named libpq > >>> Sorry, at this point I'm not able to help, as the error message is one that is MacOS specific. I'd recommend you resend this to the PythonMac SIG's mailing list (does your webmail MUA not allow a group reply?). -- Gerhard |