En Wed, 28 Mar 2007 17:16:43 -0300, kickslop <[EMAIL PROTECTED]> escribió:
> Clearly I am doing something braindead here with psycopg 1.1.21 > (psycopg2 is not an option). > > Any ideas? I get the same results when I build it with Red Hat's GCC > 3.4.6 setup as well as our in-house GCC 3.3.5 setup. > > Linux rcf-temp3 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 > x86_64 x86_64 x86_64 GNU/Linux > > Python 2.3.4 (#1, Sep 26 2006, 17:25:54) > [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> import psycopgmodule > Traceback (most recent call last): > File "<stdin>", line 1, in ? > ImportError: dynamic module does not define init function > (initpsycopgmodule) I've never used it, but the module appears to be called psycopg. Try `import psycopg` instead > psycopg-1.1.21 % nm -a psycopgmodule.so | grep init > 0000000000004748 T _init > 0000000000005000 T initpsycopg ...should work. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list