pyPgSQL giving error!

Discussion in 'Python' started by Gurpreet Sachdeva, Jan 13, 2005.

  1. I am using Redhat 9.0/python2.3. I installed pyPgSQL-2.4.tar.gz and it
    was successfull. Now when I am trying to import that module, I got:

    Python 2.3.3 (#1, Jan 11 2005, 15:24:09)
    [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from pyPgSQL import PgSQL

    Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    File "pyPgSQL/PgSQL.py", line 391, in ?
    from libpq import *
    File "pyPgSQL/libpq/__init__.py", line 23, in ?
    from libpq import *
    ImportError: No module named libpq

    I tried googling also but couldn't get the answere.
    Please help...

    ~Garry
     
    Gurpreet Sachdeva, Jan 13, 2005
    #1
    1. Advertising

  2. Gurpreet Sachdeva

    Harald Massa Guest

    > I am using Redhat 9.0/python2.3. I installed pyPgSQL-2.4.tar.gz and it
    > was successfull. Now when I am trying to import that module, I got:
    > Type "help", "copyright", "credits" or "license" for more information.
    >>>> from pyPgSQL import PgSQL

    > Traceback (most recent call last):
    > File "<stdin>", line 1, in ?
    > File "pyPgSQL/PgSQL.py", line 391, in ?
    > from libpq import *
    > File "pyPgSQL/libpq/__init__.py", line 23, in ?
    > from libpq import *
    > ImportError: No module named libpq


    did you really do ./configure, make and make install?

    where is libpq.*

    was a postgres installation present while doing ./configure et all?
     
    Harald Massa, Jan 13, 2005
    #2
    1. Advertising

  3. > did you really do ./configure, make and make install?
    No, I did python setup.py build and python setup.py install

    > where is libpq.*

    linpq is there in /usr/lib/python2.3/site-packages/pyPgSQL/

    > was a postgres installation present while doing ./configure et all?


    No, But I installed postgresql-libs before installing pyPgSQL

    Regards,
    Garry
     
    Gurpreet Sachdeva, Jan 14, 2005
    #3
  4. And now when I did...

    cd /usr/local/lib/python2.3/site-packages/pyPgSQL/libpq/

    [root@linux libpq]# python __init__.py
    Traceback (most recent call last):
    File "__init__.py", line 23, in ?
    from libpq import *
    ImportError: ./libpqmodule.so: undefined symbol: PyUnicodeUCS2_EncodeDecimal

    What is this error??? I saw this error sometimes back... Please help...

    Thanks,
    Garry
     
    Gurpreet Sachdeva, Jan 14, 2005
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paolo Alexis Falcone
    Replies:
    3
    Views:
    1,096
    Paolo Alexis Falcone
    Jun 29, 2003
  2. Timo Virkkala

    Problems with pyPgSQL

    Timo Virkkala, Sep 13, 2003, in forum: Python
    Replies:
    0
    Views:
    359
    Timo Virkkala
    Sep 13, 2003
  3. Rene Pijlman
    Replies:
    2
    Views:
    688
    Rene Pijlman
    Nov 3, 2003
  4. Manuel Huesser

    PyPGSQL - OID

    Manuel Huesser, May 27, 2004, in forum: Python
    Replies:
    1
    Views:
    406
    Michael Fuhr
    May 27, 2004
  5. sixteenmillion

    The giving that keeps on giving

    sixteenmillion, Nov 19, 2007, in forum: C Programming
    Replies:
    0
    Views:
    444
    sixteenmillion
    Nov 19, 2007
Loading...

Share This Page