dynamic module does not define init function (initpsycopgmodule)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kickslop

    #1

    dynamic module does not define init function (initpsycopgmodule)

    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
    (initpsycopgmod ule)
    >>>
    psycopg-1.1.21 % nm -a psycopgmodule.s o | grep init
    000000000000474 8 T _init
    000000000000500 0 T initpsycopg
    000000000000977 0 T psyco_DBAPIType Object_init
    000000000000958 0 T psyco_init_type s
    U pthread_mutex_i nit@@GLIBC_2.2. 5

  • Gabriel Genellina

    #2
    Re: dynamic module does not define init function (initpsycopgmod ule)

    En Wed, 28 Mar 2007 17:16:43 -0300, kickslop <kickslop@yahoo .comescribió:
    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
    (initpsycopgmod ule)
    I've never used it, but the module appears to be called psycopg.
    Try `import psycopg` instead
    psycopg-1.1.21 % nm -a psycopgmodule.s o | grep init
    000000000000474 8 T _init
    000000000000500 0 T initpsycopg
    ....should work.

    --
    Gabriel Genellina

    Comment

    Working...