dynamic module does not define init function (initpsycopgmodule)

K

kickslop

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.Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: dynamic module does not define init function
(initpsycopgmodule)
psycopg-1.1.21 % nm -a psycopgmodule.so | grep init
0000000000004748 T _init
0000000000005000 T initpsycopg
0000000000009770 T psyco_DBAPITypeObject_init
0000000000009580 T psyco_init_types
U pthread_mutex_init@@GLIBC_2.2.5
 
G

Gabriel Genellina

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.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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top